Browse Source

2023-10-13 plm提交

master
杨奉源 2 years ago
parent
commit
711dad3b9d
  1. 13
      src/main/java/com/spring/modules/proofing/controller/ProofingInformationController.java
  2. 2
      src/main/java/com/spring/modules/proofing/service/ProofingInformationService.java
  3. 20
      src/main/java/com/spring/modules/proofing/service/impl/ProofingInformationServiceImpl.java

13
src/main/java/com/spring/modules/proofing/controller/ProofingInformationController.java

@ -227,4 +227,17 @@ public class ProofingInformationController {
proofingInformationService.closeModalDeleteFile(data);
return R.ok();
}
/**
* @description: 批量文件删除
* @author: fengyuan_yang
* @date: 2023/10/13 9:03
* @param: [data]
* @return: com.spring.common.utils.R
**/
@PostMapping("/batchDeleteProofingFile")
public R batchDeleteProofingFile(@RequestBody SysOssVo data){
proofingInformationService.batchDeleteProofingFile(data);
return R.ok();
}
}

2
src/main/java/com/spring/modules/proofing/service/ProofingInformationService.java

@ -42,4 +42,6 @@ public interface ProofingInformationService extends IService<ProofingInformation
List<CustomerInformationVo> getCustomerInformation(CustomerInformationVo data);
void closeModalDeleteFile(SysOssVo data);
void batchDeleteProofingFile(SysOssVo data);
}

20
src/main/java/com/spring/modules/proofing/service/impl/ProofingInformationServiceImpl.java

@ -313,4 +313,24 @@ public class ProofingInformationServiceImpl extends ServiceImpl<ProofingInformat
}
}
/**
* @description: 批量文件删除
* @author: fengyuan_yang
* @date: 2023/10/13 9:03
* @param: [data]
* @return: void
**/
@Override
public void batchDeleteProofingFile(SysOssVo data) {
// 根据文件名site打样单删除
SysOssVo sov = new SysOssVo();
sov.setOrderRef1(data.getOrderRef1());
sov.setFileName(data.getFileName());
// 拿到选中的打样单
for (String proofingNo : data.getProofingNo().split(";")) {
sov.setOrderRef2(proofingNo);
quotationInformationMapper.batchDeleteQuotationFile(sov);
}
}
}
Loading…
Cancel
Save