兼容一下赵玉松"他的测量值和测量图片不能放在一个表单请求里,得给他两个接口,一个传数值,一个传图片"的需求!!!

This commit is contained in:
liuchengqian 2022-03-17 20:53:21 +08:00
parent 1e6c1143da
commit 72a1c46c21

View File

@ -16,10 +16,18 @@ public class QcSourceController {
private QcSourceService qcSourceService;
/**
* 添加检验数据
* 添加检验数据只能用Json接收字符串数据
*/
@PostMapping("/insertQcSource")
public String insertQcSource(QcSourceQoInsert insertQo, @RequestParam(required = false, value = "picture") MultipartFile picture) {
public String insertQcSource(@RequestBody QcSourceQoInsert insertQo, @RequestParam(required = false, value = "picture") MultipartFile picture) {
return qcSourceService.insertQcSource(insertQo, picture);
}
/**
* 添加检验数据只能用表单接收图片
*/
@PostMapping("/insertQcSourceOnlyPicture")
public String insertQcSourceOnlyPicture(QcSourceQoInsert insertQo, @RequestParam(value = "picture") MultipartFile picture) {
return qcSourceService.insertQcSource(insertQo, picture);
}