修改SQL请求

This commit is contained in:
2022-02-28 16:48:02 +08:00
parent d3b6998ea1
commit c82714f206
7 changed files with 16 additions and 13 deletions

View File

@ -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);