|
@@ -17,6 +17,7 @@ import com.jeeplus.assess.program.configuration.projectList.domain.ProgramProjec
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.domain.ReimbursementInfo;
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.domain.ReimbursementInfo;
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.service.ReimbursementInfoService;
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.service.ReimbursementInfoService;
|
|
import com.jeeplus.logging.annotation.ApiLog;
|
|
import com.jeeplus.logging.annotation.ApiLog;
|
|
|
|
+import com.jeeplus.sys.domain.WorkAttachmentInfo;
|
|
import com.jeeplus.sys.feign.IDictApi;
|
|
import com.jeeplus.sys.feign.IDictApi;
|
|
import com.jeeplus.utils.StringUtils;
|
|
import com.jeeplus.utils.StringUtils;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -57,6 +58,12 @@ public class ReimbursementInfoController {
|
|
@ApiOperation(value = "新增、修改")
|
|
@ApiOperation(value = "新增、修改")
|
|
@PostMapping("/save")
|
|
@PostMapping("/save")
|
|
public ResponseEntity<String> save(@RequestBody SaveInfoDto dto) throws Exception{
|
|
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);
|
|
ReimbursementInfo s = service.save(dto);
|
|
return ResponseUtil.newInstance().add("businessTable", "reimbursement_info")
|
|
return ResponseUtil.newInstance().add("businessTable", "reimbursement_info")
|
|
.add("businessId", s.getId())
|
|
.add("businessId", s.getId())
|