优化请求格式
This commit is contained in:
parent
12ea3d9293
commit
e78392efdc
@ -45,7 +45,7 @@ public class QcItemController {
|
|||||||
* 查询检验项目
|
* 查询检验项目
|
||||||
*/
|
*/
|
||||||
@GetMapping("/queryQcItem")
|
@GetMapping("/queryQcItem")
|
||||||
public String queryQcItem(@RequestParam(value = "no") String no, @RequestParam(value = "name") String name) {
|
public String queryQcItem(@RequestParam(required = false, value = "no") String no, @RequestParam(required = false, value = "name") String name) {
|
||||||
return qcItemService.queryQcItem(no, name);
|
return qcItemService.queryQcItem(no, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ public class QcSourceController {
|
|||||||
* 查询检验数据
|
* 查询检验数据
|
||||||
*/
|
*/
|
||||||
@GetMapping("/queryQcSource")
|
@GetMapping("/queryQcSource")
|
||||||
public String queryQcSource(@RequestParam(value = "batchNo") String batchNo, @RequestParam(value = "machineNo") String machineNo, @RequestParam(value = "materialNo") String materialNo, @RequestParam(value = "mouldNo") String mouldNo, @RequestParam(value = "varietyNo") String varietyNo) {
|
public String queryQcSource(@RequestParam(required = false, value = "batchNo") String batchNo, @RequestParam(required = false, value = "machineNo") String machineNo, @RequestParam(required = false, value = "materialNo") String materialNo, @RequestParam(required = false, value = "mouldNo") String mouldNo, @RequestParam(required = false, value = "varietyNo") String varietyNo) {
|
||||||
return qcSourceService.queryQcSource(batchNo, machineNo, materialNo, mouldNo, varietyNo);
|
return qcSourceService.queryQcSource(batchNo, machineNo, materialNo, mouldNo, varietyNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ public class QcSpecController {
|
|||||||
* 查询检验规格
|
* 查询检验规格
|
||||||
*/
|
*/
|
||||||
@GetMapping("/queryQcSpec")
|
@GetMapping("/queryQcSpec")
|
||||||
public String queryQcSpec(@RequestParam(value = "varietyNo") String varietyNo, @RequestParam(value = "qcItemNo") String qcItemNo) {
|
public String queryQcSpec(@RequestParam(required = false, value = "varietyNo") String varietyNo, @RequestParam(required = false, value = "qcItemNo") String qcItemNo) {
|
||||||
return qcSpecService.queryQcSpec(varietyNo, qcItemNo);
|
return qcSpecService.queryQcSpec(varietyNo, qcItemNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ public class ExcelUploadUtil {
|
|||||||
//实现上传
|
//实现上传
|
||||||
fileInput.transferTo(new File(path));
|
fileInput.transferTo(new File(path));
|
||||||
// return path;
|
// return path;
|
||||||
return "http://118.24.27.47:2088/" + subDir + newName;
|
return subDir + newName;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -95,7 +95,6 @@ public class ExcelUploadUtil {
|
|||||||
return fireTaskPhotos;
|
return fireTaskPhotos;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除本地或服务器储存的图片
|
* 删除本地或服务器储存的图片
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user