| | |
| | | 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())); |
| | | } |
| | |
| | | @Override |
| | | public CommonResult deletedCalibrationMonitoringEquipment(Long id) { |
| | | int i = calibrationMonitoringEquipmentMapper.update(new CalibrationMonitoringEquipment(), |
| | | new LambdaUpdateWrapper<CalibrationMonitoringEquipment>().eq(CalibrationMonitoringEquipment::getId, id).set(CalibrationMonitoringEquipment::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<CalibrationMonitoringEquipment>().eq(CalibrationMonitoringEquipment::getId, id).set(CalibrationMonitoringEquipment::getDelFlag, UserConstant.DISENABLE) |
| | | .set(CalibrationMonitoringEquipment::getUpdateTime, LocalDateTime.now()).set(CalibrationMonitoringEquipment::getUpdateBy, SecurityUtils.getUsername()) |
| | | ); |
| | | |
| | |
| | | private void batchSave(Long id, List<DocumentBorrowCopyRecord> documentBorrowCopyRecordList,List<Long> delIds) { |
| | | if (ObjectUtils.isNotEmpty(delIds)) { |
| | | int update = documentBorrowCopyRecordMapper.update(new DocumentBorrowCopyRecord(), |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentBorrowCopyRecord::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentBorrowCopyRecord::getUpdateBy, SecurityUtils.getUsername()).in(DocumentBorrowCopyRecord::getId, delIds) |
| | | ); |
| | |
| | | @Transactional |
| | | public CommonResult deletedDocumentBorrowCopy(Long id) { |
| | | int i = documentBorrowCopyMapper.update(new DocumentBorrowCopy(), |
| | | new LambdaUpdateWrapper<DocumentBorrowCopy>().set(DocumentBorrowCopy::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentBorrowCopy>().set(DocumentBorrowCopy::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentBorrowCopy::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentBorrowCopy::getUpdateBy, SecurityUtils.getUsername()).eq(DocumentBorrowCopy::getId, id) |
| | | ); |
| | | if (i > 0){ |
| | | documentBorrowCopyRecordMapper.update(new DocumentBorrowCopyRecord(), |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentBorrowCopyRecord::getUpdateTime, LocalDateTime.now()).set(DocumentBorrowCopyRecord::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentBorrowCopyRecord::getDocumentBorrowId, id)); |
| | | } |
| | |
| | | if (ObjectUtils.isNotEmpty(delEvaluateIds)){ |
| | | |
| | | int update = documentChangesInvalidatedEvaluateMapper.update(new DocumentChangesInvalidatedEvaluate(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedEvaluate::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedEvaluate::getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(DocumentChangesInvalidatedEvaluate::getId, delEvaluateIds) |
| | | ); |
| | |
| | | if (ObjectUtils.isNotEmpty(delInvalidatedIssueIds)){ |
| | | |
| | | int update = documentChangesInvalidatedIssueMapper.update(new DocumentChangesInvalidatedIssue(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedIssue::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedIssue:: getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(DocumentChangesInvalidatedIssue::getId, delInvalidatedIssueIds) |
| | | ); |
| | |
| | | @Transactional |
| | | public CommonResult deletedDocumentChangesInvalidated(Long id) { |
| | | int i = documentChangesInvalidatedMapper.update(new DocumentChangesInvalidated(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidated>().set(DocumentChangesInvalidated::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidated>().set(DocumentChangesInvalidated::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidated::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidated::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentChangesInvalidated::getId, id) |
| | | ); |
| | | if (i > 0){ |
| | | documentChangesInvalidatedIssueMapper.update(new DocumentChangesInvalidatedIssue(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedIssue::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedIssue::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentChangesInvalidatedIssue::getDocumentChangesId, id) |
| | | ); |
| | | documentChangesInvalidatedEvaluateMapper.update(new DocumentChangesInvalidatedEvaluate(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedEvaluate::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedEvaluate::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentChangesInvalidatedEvaluate::getDocumentChangesId, id) |
| | | ); |
| | |
| | | @Override |
| | | public CommonResult deletedDocumentDestructionApply(Long id) { |
| | | destructionApplyMapper.update(new DocumentDestructionApply(), new LambdaUpdateWrapper<DocumentDestructionApply>().eq(DocumentDestructionApply::getId, id) |
| | | .set(DocumentDestructionApply::getDelFlag, UserConstant.DEPT_DISABLE).set(DocumentDestructionApply::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentDestructionApply::getDelFlag, UserConstant.DISENABLE).set(DocumentDestructionApply::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentDestructionApply::getUpdateBy, SecurityUtils.getUsername())); |
| | | return CommonResult.success(); |
| | | } |
| | |
| | | private void batchSave(Long id, List<DocumentDistributionCollectionRecord> documentDistributionCollectionRecordList,List<Long> delIds) { |
| | | if (ObjectUtils.isNotEmpty(delIds)) { |
| | | int update = documentDistributionCollectionRecordMapper.update(new DocumentDistributionCollectionRecord(), |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentDistributionCollectionRecord::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentDistributionCollectionRecord::getUpdateBy, SecurityUtils.getUsername()).in(DocumentDistributionCollectionRecord::getId, delIds) |
| | | ); |
| | |
| | | @Transactional |
| | | public CommonResult deletedDocumentDistributionCollection(Long id) { |
| | | int i = documentDistributionCollectionMapper.update(new DocumentDistributionCollection(), |
| | | new LambdaUpdateWrapper<DocumentDistributionCollection>().set(DocumentDistributionCollection::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentDistributionCollection>().set(DocumentDistributionCollection::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentDistributionCollection::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentDistributionCollection::getUpdateBy, SecurityUtils.getUsername()).eq(DocumentDistributionCollection::getId, id) |
| | | ); |
| | | if (i > 0){ |
| | | documentDistributionCollectionRecordMapper.update(new DocumentDistributionCollectionRecord(), |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentDistributionCollectionRecord::getUpdateTime, LocalDateTime.now()).set(DocumentDistributionCollectionRecord::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentDistributionCollectionRecord::getDocumentId, id)); |
| | | } |
| | |
| | | public CommonResult deletedInternalKnowledge(Integer id) { |
| | | internalKnowledgeMapper.update(new InternalKnowledge(), |
| | | new LambdaUpdateWrapper<InternalKnowledge>().eq(InternalKnowledge::getId, id) |
| | | .set(InternalKnowledge::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | .set(InternalKnowledge::getDelFlag, UserConstant.DISENABLE) |
| | | .set(InternalKnowledge::getUpdateTime, LocalDateTime.now()) |
| | | .set(InternalKnowledge::getUpdateBy, SecurityUtils.getUsername())); |
| | | return CommonResult.success(); |
| | |
| | | List<Long> delProblemIds, List<Long> delContentIds, List<SixInspectionProblem> sixInspectionProblemList) { |
| | | if (ObjectUtils.isNotEmpty(delProblemIds)) { |
| | | int update = sixInspectionProblemMapper.update(new SixInspectionProblem(), |
| | | new LambdaUpdateWrapper<SixInspectionProblem>().set(SixInspectionProblem::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<SixInspectionProblem>().set(SixInspectionProblem::getDelFlag, UserConstant.DISENABLE) |
| | | .set(SixInspectionProblem::getUpdateTime, LocalDateTime.now()).set(SixInspectionProblem::getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(SixInspectionProblem::getId, delProblemIds) |
| | | ); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(delContentIds)) { |
| | | int update = sixInspectionContentMapper.update(new SixInspectionContent(), |
| | | new LambdaUpdateWrapper<SixInspectionContent>().set(SixInspectionContent::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<SixInspectionContent>().set(SixInspectionContent::getDelFlag, UserConstant.DISENABLE) |
| | | .set(SixInspectionContent::getUpdateTime, LocalDateTime.now()).set(SixInspectionContent::getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(SixInspectionContent::getId, delContentIds) |
| | | ); |
| | |
| | | public CommonResult deletedSixInspection(Long id) { |
| | | int update = sixInspectionMapper.update(new SixInspection(), |
| | | new LambdaUpdateWrapper<SixInspection>().eq(SixInspection::getId, id) |
| | | .set(SixInspection::getDelFlag, UserConstant.DEPT_DISABLE).set(SixInspection::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspection::getDelFlag, UserConstant.DISENABLE).set(SixInspection::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspection::getUpdateBy, SecurityUtils.getUsername())); |
| | | if (update > 0) { |
| | | sixInspectionContentMapper.update(new SixInspectionContent(), |
| | | new LambdaUpdateWrapper<SixInspectionContent>().eq(SixInspectionContent::getSixInspectionId, id) |
| | | .set(SixInspectionContent::getDelFlag, UserConstant.DEPT_DISABLE).set(SixInspectionContent::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionContent::getDelFlag, UserConstant.DISENABLE).set(SixInspectionContent::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionContent::getUpdateBy, SecurityUtils.getUsername()) |
| | | ); |
| | | sixInspectionProblemMapper.update(new SixInspectionProblem(), |
| | | new LambdaUpdateWrapper<SixInspectionProblem>().eq(SixInspectionProblem::getSixInspectionId, id) |
| | | .set(SixInspectionProblem::getDelFlag, UserConstant.DEPT_DISABLE).set(SixInspectionProblem::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionProblem::getDelFlag, UserConstant.DISENABLE).set(SixInspectionProblem::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionProblem::getUpdateBy, SecurityUtils.getUsername()) |
| | | ); |
| | | } |