|
|
@@ -44,6 +44,8 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
|
|
|
|
|
|
private final LifeCollectMapper lifeCollectMapper;
|
|
|
|
|
|
+ private final WebAuditMapper webAuditMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public boolean saveThali(LifeGroupBuyDto lifeGroupBuyDto) {
|
|
|
JSONObject currentUserInfo = JwtUtil.getCurrentUserInfo();
|
|
|
@@ -187,6 +189,13 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
|
|
|
@Override
|
|
|
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")){
|
|
|
+ LambdaUpdateWrapper<WebAudit> wrapper = new LambdaUpdateWrapper<>();
|
|
|
+ wrapper.eq(WebAudit::getLifeGroupPackageId, id);
|
|
|
+ wrapper.set(WebAudit::getStatus, "1");
|
|
|
+ webAuditMapper.update(null, wrapper);
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|