|
@@ -741,14 +741,16 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public boolean reviewReturn(PmDemandReqVo pmDemandReqVo) {
|
|
|
- PmDemand pmDemand = new PmDemand();
|
|
|
- pmDemand.setDemandId(pmDemandReqVo.getDemandId());
|
|
|
- pmDemand.setProjectStatus(PmProjectStatus.DEMAND_AUDIT_RETURN.getCode());
|
|
|
- pmDemand.setAdjustReason(pmDemandReqVo.getRefuseReason());
|
|
|
- pmDemand.setUpdateBy(pmDemandReqVo.getUpdateBy());
|
|
|
- pmDemand.setUpdateTime(DateUtils.getNowDate());
|
|
|
- pmDemand.setAuditTime(DateUtils.getNowDate());
|
|
|
- return this.updateById(pmDemand);
|
|
|
+ UpdateWrapper<PmDemand> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.lambda().eq(PmDemand::getDemandId,pmDemandReqVo.getDemandId())
|
|
|
+ .set(PmDemand::getProjectStatus,PmProjectStatus.DEMAND_AUDIT_RETURN.getCode())
|
|
|
+ .set(PmDemand::getAdjustReason,pmDemandReqVo.getRefuseReason())
|
|
|
+ .set(PmDemand::getRealDemandCommitTime,null)
|
|
|
+ .set(PmDemand::getUpdateBy,pmDemandReqVo.getUpdateBy())
|
|
|
+ .set(PmDemand::getUpdateTime,DateUtils.getNowDate())
|
|
|
+ .set(PmDemand::getAuditTime,DateUtils.getNowDate());
|
|
|
+
|
|
|
+ return this.update(updateWrapper);
|
|
|
}
|
|
|
|
|
|
/**
|