| | |
| | | dispatchUnitMapper.updateById(update); |
| | | if(Constants.equalsInteger(param.getWorktypeStatus(),Constants.ONE)){ |
| | | //审核通过,修改状态,产生历史版本 |
| | | newVersionData(dispatchUnitMapper.selectById(param.getId()),update,false); |
| | | newVersionData(model,update,false); |
| | | //存储操作历史 |
| | | this.saveDuLog(update,Constants.DispatchUnitLogType.WORK_TYPE_AUDIT_PASS,update.getCheckInfo()); |
| | | |
| | | }else{ |
| | | //更新明细数据为审核失败 |
| | | duSolutionMapper.update(null,new UpdateWrapper<DuSolution>().lambda() |
| | |
| | | newVersion = dispatchUnitMapper.selectOne(new QueryWrapper<DispatchUnit>().lambda() |
| | | .eq(DispatchUnit::getIsdeleted,Constants.ZERO) |
| | | .eq(DispatchUnit::getDataType,Constants.TWO) |
| | | .eq(DispatchUnit::getBaseId,model.getId()).last(" limit 1")); |
| | | .eq(DispatchUnit::getBaseId,model.getId()) |
| | | .last(" limit 1")); |
| | | } |
| | | if(Objects.isNull(newVersion)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未查询到派遣单位最新版本"); |
| | |
| | | duWorktypeMapper.insert(duWorktype); |
| | | } |
| | | } |
| | | |
| | | |
| | | //存储待办信息 |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.DISPATCH_UNIT; |