Browse Source

中台待办处理逻辑修改

zhangchen 3 months ago
parent
commit
c2d5329fa6

+ 8 - 0
alien-store/src/main/java/shop/alien/store/service/impl/StoreCommentAppealServiceImpl.java

@@ -57,6 +57,8 @@ public class StoreCommentAppealServiceImpl extends ServiceImpl<StoreCommentAppea
 
     private final FileUploadUtil fileUploadUtil;
 
+    private final WebAuditMapper webAuditMapper;
+
     private final StoreDictionaryMapper storeDictionaryMapper;
 
     @Autowired
@@ -411,6 +413,12 @@ public class StoreCommentAppealServiceImpl extends ServiceImpl<StoreCommentAppea
                 break;
         }
         //商家申诉
+        //处理中台审核记录
+        LambdaUpdateWrapper<WebAudit> wrapper = new LambdaUpdateWrapper<>();
+        wrapper.eq(WebAudit::getStoreCommentAppealId, storeCommentAppeal.getId());
+        wrapper.set(WebAudit::getStatus, "1");
+        webAuditMapper.update(null, wrapper);
+
         StoreCommentAppealLog storeCommentAppealLog = new StoreCommentAppealLog();
         storeCommentAppealLog.setAppealId(storeCommentAppeal.getId());
         if (appealStatus == 1) {

+ 8 - 0
alien-store/src/main/java/shop/alien/store/service/impl/StoreInfoServiceImpl.java

@@ -89,6 +89,8 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
 
     private final NearMeService nearMeService;
 
+    private final WebAuditMapper webAuditMapper;
+
     private final EssentialCityCodeMapper essentialCityCodeMapper;
 
     private final LifeCouponMapper lifeCouponMapper;
@@ -1061,6 +1063,12 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
         lifeNotice.setIsRead(0);
         lifeNoticeMapper.insert(lifeNotice);
         storeInfoMapper.updateById(storeInfo);
+
+        //处理中台审核记录
+        LambdaUpdateWrapper<WebAudit> wrapper = new LambdaUpdateWrapper<>();
+        wrapper.eq(WebAudit::getStoreInfoId, storeId);
+        wrapper.set(WebAudit::getStatus, "1");
+        webAuditMapper.update(null, wrapper);
     }
 
     @Override