兼容一下赵玉松"他的测量值和测量图片不能放在一个表单请求里,得给他两个接口,一个传数值,一个传图片"的需求!!!
This commit is contained in:
parent
1e6c1143da
commit
72a1c46c21
@ -16,10 +16,18 @@ public class QcSourceController {
|
|||||||
private QcSourceService qcSourceService;
|
private QcSourceService qcSourceService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加检验数据
|
* 添加检验数据(只能用Json接收字符串数据)
|
||||||
*/
|
*/
|
||||||
@PostMapping("/insertQcSource")
|
@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);
|
return qcSourceService.insertQcSource(insertQo, picture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user