上传关联优化

dev_no_inv
zane 9 months ago
parent 73c5b8940c
commit 9a9dafa28c

@ -64,4 +64,6 @@ public interface RedissonCacheKey {
*/ */
String RM_WORK_BUS_TYPE = "rmWorkBusType"; String RM_WORK_BUS_TYPE = "rmWorkBusType";
String XML_UPLOAD="xml_upload";
} }

@ -34,10 +34,11 @@ public class RelCodeBatchController extends BaseController {
private RelCodeBatchService relCodeBatchService; private RelCodeBatchService relCodeBatchService;
@RepeatSubmit() @RepeatSubmit()
@CusRedissonAnnotation(cacheName = RedissonCacheKey.XML_UPLOAD, key = {"#uuid"}, timeOutMsg = "系统正在处理,请勿重复上传")
@PostMapping("/udiwms/relCode/batch/xmlUpload") @PostMapping("/udiwms/relCode/batch/xmlUpload")
public BaseResponse xmlUpload(@RequestBody RelCodeBatchRequest relCodeBatchRequest, @RequestParam("file") MultipartFile file) { public BaseResponse xmlUpload(@RequestParam("uuid") String uuid,@RequestParam("file") MultipartFile file) {
relCodeBatchService.xmlUpload(file); relCodeBatchService.xmlUpload(file);
return ResultVOUtils.success("保存成功!"); return ResultVOUtils.successMsg("上传成功!");
} }
@GetMapping("/udiwms/relCode/batch/filter") @GetMapping("/udiwms/relCode/batch/filter")

Loading…
Cancel
Save