fix:材料校验提交

dev
wangxy 12 months ago
parent 3ce787aa67
commit ddff2f4308

@ -6,7 +6,6 @@ import com.hyp.common.core.domain.AjaxResult;
import com.hyp.common.utils.file.FileUploadUtils;
import com.hyp.common.utils.file.FileUtils;
import com.hyp.framework.config.ServerConfig;
import com.hyp.system.domain.RewFileRelation;
import com.hyp.web.controller.manager.FileRelationManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -22,7 +21,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.util.Objects;
/**
@ -47,29 +45,6 @@ public class FileRelationController extends BaseController {
@Autowired
private ServerConfig serverConfig;
@ApiOperation("材料删除")
@GetMapping("/delFile/{fileId}")
public AjaxResult delFile(@PathVariable String fileId){
return toAjax(fileRelationManager.delFile(fileId));
}
@ApiOperation("材料审核")
@GetMapping("/filePass")
public AjaxResult filePass(@RequestParam String applyId,
@RequestParam String fileCode,
@RequestParam Integer fileState){
return toAjax(fileRelationManager.filePass(applyId,fileCode,fileState));
}
@ApiOperation("材料校验")
@GetMapping("/checkFile/{applyId}")
public AjaxResult checkFile(@PathVariable String applyId){
return fileRelationManager.checkFile(applyId);
}
@ApiOperation("文件上传")
@PostMapping("/upload")
public AjaxResult uploadFile(MultipartFile file,
@ -116,7 +91,7 @@ public class FileRelationController extends BaseController {
try {
in.close();
} catch (IOException e) {
log.error(e.getMessage(), e);
log.error(e.getMessage(), e);
} finally {
if (out != null) {
out.close();
@ -126,5 +101,30 @@ public class FileRelationController extends BaseController {
}
}
@ApiOperation("材料删除")
@GetMapping("/delFile/{fileId}")
public AjaxResult delFile(@PathVariable String fileId){
return toAjax(fileRelationManager.delFile(fileId));
}
@ApiOperation("材料审核")
@GetMapping("/filePass")
public AjaxResult filePass(@RequestParam String applyId,
@RequestParam String fileCode,
@RequestParam Integer fileState){
return toAjax(fileRelationManager.filePass(applyId,fileCode,fileState));
}
@ApiOperation("材料校验")
@GetMapping("/checkFile/{applyId}")
public AjaxResult checkFile(@PathVariable String applyId){
return fileRelationManager.checkFile(applyId);
}
}

Loading…
Cancel
Save