xiewenjie преди 3 години
родител
ревизия
4ee4bba02a

+ 2 - 2
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/ModelUploadServiceImpl.java

@@ -138,8 +138,8 @@ public class ModelUploadServiceImpl extends BaseServiceImpl<IModelUploadMapper,
         boolean updateById = super.updateById(entity);
         ModelUploadEntity byId = super.findById(entity.getId());
         if (updateById && ObjectUtil.isNotNull(byId)) {
-            cacheChannel.set(region, "id::" + entity.getId(), entity, 60 * 30);
-            cacheChannel.set(region, "fileId::" + entity.getFileId(), entity, 60 * 30);
+            cacheChannel.set(region, "id::" + entity.getId(), byId, 60 * 30);
+            cacheChannel.set(region, "fileId::" + entity.getFileId(), byId, 60 * 30);
         } else {
             cacheChannel.evict(region, "id::" + entity.getId());
             cacheChannel.evict(region, "fileId::" + entity.getFileId());

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/RenovationPartsAttachingServiceImpl.java

@@ -76,7 +76,7 @@ public class RenovationPartsAttachingServiceImpl extends BaseServiceImpl<IRenova
         if (updateById && ObjectUtil.isNotNull(byId)) {
             cacheChannel.evict(region, "responseId::" + byId.getPartsDetailId());
             cacheChannel.set(region, "detailId::" + byId.getPartsDetailId(), byId, 60 * 30);
-            cacheChannel.set(region, "id::" + byId.getId(), entity, 60 * 30);
+            cacheChannel.set(region, "id::" + byId.getId(), byId, 60 * 30);
         } else {
             cacheChannel.evict(region, "responseId::" + entity.getPartsDetailId());
             cacheChannel.evict(region, "detailId::" + entity.getPartsDetailId());

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/RenovationPartsBrandServiceImpl.java

@@ -41,7 +41,7 @@ public class RenovationPartsBrandServiceImpl extends BaseServiceImpl<IRenovation
         boolean updateById = super.updateById(entity);
         RenovationPartsBrandEntity byId = super.findById(entity.getId());
         if (updateById && ObjectUtil.isNotNull(byId)) {
-            cacheChannel.set(region, "id::" + entity.getId(), entity, 60 * 30);
+            cacheChannel.set(region, "id::" + entity.getId(), byId, 60 * 30);
         } else {
             cacheChannel.evict(region, "id::" + entity.getId());
         }

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/RenovationPartsColorServiceImpl.java

@@ -43,7 +43,7 @@ public class RenovationPartsColorServiceImpl extends BaseServiceImpl<IRenovation
         boolean updateById = super.updateById(entity);
         RenovationPartsColorEntity byId = super.findById(entity.getId());
         if (updateById && ObjectUtil.isNotNull(byId)) {
-            cacheChannel.set(region, "id::" + entity.getId(), entity, 60 * 30);
+            cacheChannel.set(region, "id::" + entity.getId(), byId, 60 * 30);
         } else {
             cacheChannel.evict(region, "id::" + entity.getId());
         }

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/RenovationPartsServiceImpl.java

@@ -64,7 +64,7 @@ public class RenovationPartsServiceImpl extends BaseServiceImpl<IRenovationParts
         boolean updateById = super.updateById(entity);
         RenovationPartsEntity byId = super.findById(entity.getId());
         if (updateById && ObjectUtil.isNotNull(byId)) {
-            cacheChannel.set(region, "id::" + entity.getId(), entity, 60 * 30);
+            cacheChannel.set(region, "id::" + entity.getId(), byId, 60 * 30);
         } else {
             cacheChannel.evict(region, "id::" + entity.getId());
         }

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/RenovationPartsSizeServiceImpl.java

@@ -54,7 +54,7 @@ public class RenovationPartsSizeServiceImpl extends BaseServiceImpl<IRenovationP
         RenovationPartsSizeEntity byId = super.findById(entity.getId());
         if (updateById && ObjectUtil.isNotNull(byId)) {
             cacheChannel.evict(region, "responseId::" + entity.getPartsDetailId());
-            cacheChannel.set(region, "id::" + entity.getId(), entity, 60 * 30);
+            cacheChannel.set(region, "id::" + entity.getId(), byId, 60 * 30);
         } else {
             cacheChannel.evict(region, "responseId::" + entity.getPartsDetailId());
             cacheChannel.evict(region, "id::" + entity.getId());

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/RenovationPartsTypeServiceImpl.java

@@ -51,7 +51,7 @@ public class RenovationPartsTypeServiceImpl extends BaseServiceImpl<IRenovationP
         boolean updateById = super.updateById(entity);
         RenovationPartsTypeEntity byId = super.findById(entity.getId());
         if (updateById && ObjectUtil.isNotNull(byId)) {
-            cacheChannel.set(region, "id::" + entity.getId(), entity, 60 * 30);
+            cacheChannel.set(region, "id::" + entity.getId(), byId, 60 * 30);
 
         } else {
             cacheChannel.evict(region, "id::" + entity.getId());