| | |
| | | } |
| | | if(dispatchUnitMapper.selectCount(new QueryWrapper<DispatchUnit>().lambda() |
| | | .ne(DispatchUnit::getId,saveDispatchUnitDTO.getId()) |
| | | .ne(DispatchUnit::getBaseId,saveDispatchUnitDTO.getId()) |
| | | .eq(DispatchUnit::getCompanyId,loginUserInfo.getCompanyId()) |
| | | .eq(DispatchUnit::getName,saveDispatchUnitDTO.getName()) |
| | | .eq(DispatchUnit::getIsdeleted,Constants.ZERO) |
| | |
| | | dispatchUnit.setEditor(loginUserInfo.getId()); |
| | | dispatchUnitMapper.updateById(dispatchUnit); |
| | | |
| | | dispatchUnitMapper.update(null,new UpdateWrapper<DispatchUnit>().lambda().set(DispatchUnit::getDataType,Constants.ONE).eq(DispatchUnit::getBaseId,dispatchUnit.getId()) |
| | | .eq(DispatchUnit::getDataType,Constants.TWO) |
| | | ); |
| | | |
| | | |
| | | //存储操作记录 |
| | | this.saveDuLog(dispatchUnit,Constants.DispatchUnitLogType.EDIT_UNIT,null); |
| | | |