|
|
@@ -198,7 +198,17 @@ 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));
|
|
|
+ LambdaUpdateWrapper<LifeGroupBuyMain> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
|
|
+ lambdaUpdateWrapper.eq(LifeGroupBuyMain::getId, id);
|
|
|
+ lambdaUpdateWrapper.set(LifeGroupBuyMain::getStatus, status);
|
|
|
+ lambdaUpdateWrapper.set(LifeGroupBuyMain::getApprovalComments, approvalComments);
|
|
|
+ if(status.equals("5")){
|
|
|
+ LifeGroupBuyMain lifeGroupBuyMain = lifeGroupBuyMainMapper.selectById(id);
|
|
|
+ if(lifeGroupBuyMain !=null && lifeGroupBuyMain.getStatus()==2){
|
|
|
+ lambdaUpdateWrapper.set(LifeGroupBuyMain::getStartTimeValue, new Date());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ lifeGroupBuyMainMapper.update(null,lambdaUpdateWrapper);
|
|
|
//处理中台审核记录
|
|
|
if(StringUtils.isNotEmpty(id) && StringUtils.isNotEmpty(status) && (status.equals("2") || status.equals("3"))){
|
|
|
LambdaUpdateWrapper<WebAudit> wrapper = new LambdaUpdateWrapper<>();
|