| | |
| | | private void batchSave(Long id, List<AnnualVerificationDevice> annualVerificationDevices, List<Long> delData) { |
| | | if (ObjectUtils.isNotEmpty(delData)){ |
| | | int update = annualVerificationDeviceMapper.update(new AnnualVerificationDevice(), |
| | | new LambdaUpdateWrapper<AnnualVerificationDevice>().set(AnnualVerificationDevice::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<AnnualVerificationDevice>().set(AnnualVerificationDevice::getDelFlag, UserConstant.DISENABLE) |
| | | .set(AnnualVerificationDevice::getUpdateTime, LocalDateTime.now()).set(AnnualVerificationDevice::getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(AnnualVerificationDevice::getId, delData) |
| | | ); |
| | |
| | | public CommonResult deletedAnnualVerificationPlan(Long id) { |
| | | |
| | | int i = annualVerificationPlanMapper.update(new AnnualVerificationPlan(), |
| | | new LambdaUpdateWrapper<AnnualVerificationPlan>().eq(AnnualVerificationPlan::getId, id).set(AnnualVerificationPlan::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<AnnualVerificationPlan>().eq(AnnualVerificationPlan::getId, id).set(AnnualVerificationPlan::getDelFlag, UserConstant.DISENABLE) |
| | | .set(AnnualVerificationPlan::getUpdateTime, LocalDateTime.now()).set(AnnualVerificationPlan::getUpdateBy, SecurityUtils.getUsername()) |
| | | ); |
| | | if (i > 0) { |
| | | annualVerificationDeviceMapper.update(new AnnualVerificationDevice(), |
| | | new LambdaUpdateWrapper<AnnualVerificationDevice>().eq(AnnualVerificationDevice::getAnnualVerificationId, id) |
| | | .set(AnnualVerificationDevice::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | .set(AnnualVerificationDevice::getDelFlag, UserConstant.DISENABLE) |
| | | .set(AnnualVerificationDevice::getUpdateTime, LocalDateTime.now()) |
| | | .set(AnnualVerificationDevice::getUpdateBy, SecurityUtils.getUsername())); |
| | | } |