Browse Source

调整上传附件的url限制

huangguoce 5 months atrás
parent
commit
f4a175a9cc

+ 0 - 6
jeeplus-modules/jeeplus-assess/src/main/java/com/jeeplus/assess/reimbursement/reimbursementInfo/controller/ReimbursementInfoController.java

@@ -58,12 +58,6 @@ public class ReimbursementInfoController {
     @ApiOperation(value = "新增、修改")
     @PostMapping("/save")
     public ResponseEntity<String> save(@RequestBody SaveInfoDto dto) throws Exception{
-        List<WorkAttachmentInfo> files = dto.getFiles();
-        for (WorkAttachmentInfo file : files) {
-            if (file.getUrl() == null || file.getUrl().isEmpty()) {
-                return ResponseEntity.badRequest().body( file.getName() + " 的 URL 为空,请检查后重新上传!");
-            }
-        }
         ReimbursementInfo s = service.save(dto);
         return ResponseUtil.newInstance().add("businessTable", "reimbursement_info")
                 .add("businessId", s.getId())

+ 0 - 6
jeeplus-modules/jeeplus-ccpm/src/main/java/com/jeeplus/ccpm/approvalInfo/controller/CcpmReimbursementInfoController.java

@@ -108,12 +108,6 @@ public class CcpmReimbursementInfoController {
     @ApiOperation(value = "新增、修改")
     @PostMapping("/save")
     public ResponseEntity<String> save(@RequestBody CcpmSaveInfoDto dto) throws Exception{
-        List<WorkAttachmentInfo> files = dto.getFiles();
-        for (WorkAttachmentInfo file : files) {
-            if (file.getUrl() == null || file.getUrl().isEmpty()) {
-                return ResponseEntity.badRequest().body( file.getName() + "的 URL 为空,请检查后重新上传!");
-            }
-        }
         CcpmReimbursementInfo s = service.save(dto);
         return ResponseUtil.newInstance().add("businessTable", "ccpm_reimbursement_info")
                 .add("businessId", s.getId())

+ 0 - 6
jeeplus-modules/jeeplus-centrecareful/src/main/java/com/jeeplus/centrecareful/approvalInfo/controller/ZsReimbursementInfoController.java

@@ -107,12 +107,6 @@ public class ZsReimbursementInfoController {
     @ApiOperation(value = "新增、修改")
     @PostMapping("/save")
     public ResponseEntity<String> save(@RequestBody ZsSaveInfoDto dto) throws Exception{
-        List<WorkAttachmentInfo> files = dto.getFiles();
-        for (WorkAttachmentInfo file : files) {
-            if (file.getUrl() == null || file.getUrl().isEmpty()) {
-                return ResponseEntity.badRequest().body( file.getName() + "的 URL 为空,请检查后重新上传!");
-            }
-        }
         ZsReimbursementInfo s = service.save(dto);
         return ResponseUtil.newInstance().add("businessTable", "zs_reimbursement_info")
                 .add("businessId", s.getId())

+ 0 - 6
jeeplus-modules/jeeplus-finance/src/main/java/com/jeeplus/finance/projectRecords/controller/CwProjectRecordsController.java

@@ -198,12 +198,6 @@ public class CwProjectRecordsController {
     @PreAuthorize("hasAnyAuthority('cwProjectRecords:add','cwProjectRecords:edit')")
     @PostMapping("saveForm")
     public ResponseEntity saveForm(@Valid @RequestBody CwProjectRecordsDTO cwProjectRecordsDTO) throws Exception {
-        List<WorkAttachmentInfo> workAttachmentDtoList = cwProjectRecordsDTO.getWorkAttachmentDtoList();
-        for (WorkAttachmentInfo file : workAttachmentDtoList) {
-            if (file.getUrl() == null || file.getUrl().isEmpty()) {
-                return ResponseEntity.badRequest().body( file.getName() + "的 URL 为空,请检查后重新上传!");
-            }
-        }
         String id = cwProjectRecordsService.saveForm(cwProjectRecordsDTO);
         return ResponseUtil.newInstance().add("businessTable", "cw_project_records").add("businessId", id).ok ("操作成功");
     }

+ 0 - 2
jeeplus-modules/jeeplus-finance/src/main/java/com/jeeplus/finance/projectReportArchive/controller/CwProjectReportArchiveController.java

@@ -12,10 +12,8 @@ import com.jeeplus.finance.invoice.util.EasyPoiUtil;
 import com.jeeplus.finance.projectReportArchive.service.CwProjectReportArchiveService;
 import com.jeeplus.finance.projectReportArchive.service.dto.CwProjectReportArchiveDTO;
 import com.jeeplus.finance.projectReportArchive.service.dto.ReportDTO;
-import com.jeeplus.finance.projectReportArchive.service.dto.WorkAttachmentArchiveDto;
 import com.jeeplus.logging.annotation.ApiLog;
 import com.jeeplus.logging.constant.enums.LogTypeEnum;
-import com.jeeplus.sys.domain.WorkAttachmentInfo;
 import com.jeeplus.sys.feign.IDictApi;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;