修改SQL请求
This commit is contained in:
		| @@ -45,7 +45,7 @@ public class QcInspectionDataSourceController { | ||||
|      * 查询某一产品的测量信息 | ||||
|      * 根据 批次号、机器号、物料号、模具号、零件号 | ||||
|      */ | ||||
|     @GetMapping("/selectDataSource") | ||||
|     @PostMapping("/selectDataSource") | ||||
|     public String selectDataSource(@RequestBody QcInspectionDataSourceQo inspectionDataSourceQo) { | ||||
|         String lotNo = inspectionDataSourceQo.getLotNo(); | ||||
|         String machineNo = inspectionDataSourceQo.getMachineNo(); | ||||
| @@ -69,7 +69,7 @@ public class QcInspectionDataSourceController { | ||||
|     public String selectAllSource() { | ||||
|         Locale locale = LocaleContextHolder.getLocale(); | ||||
|         List<QcInspectionDataSource> dataSourceAll = inspectionDataSourceDao.findAll(); | ||||
|         if (dataSourceAll == null || dataSourceAll.isEmpty()) { | ||||
|         if (dataSourceAll.isEmpty()) { | ||||
|             return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "暂时没有该产品的测量信息!", locale); | ||||
|         } | ||||
|         return outputEncapsulationObject(PromptMessageEnum.SUCCESS, dataSourceAll, locale); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user