Browse Source

中台待办处理逻辑修改

zhangchen 3 months ago
parent
commit
994c52f346

+ 1 - 1
alien-store/src/main/java/shop/alien/store/service/impl/LifeGroupBuyServiceImpl.java

@@ -190,7 +190,7 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
     public boolean updateStatus(String id, String status, String approvalComments) {
         lifeGroupBuyMainMapper.update(null, new LambdaUpdateWrapper<LifeGroupBuyMain>().eq(LifeGroupBuyMain::getId, id).set(LifeGroupBuyMain::getStatus, status).set(LifeGroupBuyMain::getApprovalComments, approvalComments));
         //处理中台审核记录
-        if(StringUtils.isNotEmpty(id) && StringUtils.isNotEmpty(status) && status.equals("2")){
+        if(StringUtils.isNotEmpty(id) && StringUtils.isNotEmpty(status) && (status.equals("2") || status.equals("3"))){
             LambdaUpdateWrapper<WebAudit> wrapper = new LambdaUpdateWrapper<>();
             wrapper.eq(WebAudit::getLifeGroupPackageId, id);
             wrapper.set(WebAudit::getStatus, "1");