diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java index 1d0dfa5..999e572 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java @@ -50,14 +50,11 @@ public class DataInstructController { @ApiOperationSupport(order = 3) public R> listPage(Query query, DataInstructEntity req) { QueryWrapper wrapper = new QueryWrapper<>(); - if (StringUtils.isNotBlank(req.getItemId())) { - wrapper.lambda().eq(DataInstructEntity::getItemId, req.getItemId()); + if (StringUtils.isNotBlank(req.getStationName())) { + wrapper.lambda().like(DataInstructEntity::getStationName, req.getStationName()); } - if (StringUtils.isNotBlank(req.getStationId())) { - wrapper.lambda().eq(DataInstructEntity::getStationId, req.getStationId()); - } - if (StringUtils.isNotBlank(req.getDeviceId())) { - wrapper.lambda().eq(DataInstructEntity::getDeviceId, req.getDeviceId()); + if (StringUtils.isNotBlank(req.getDeviceName())) { + wrapper.lambda().like(DataInstructEntity::getDeviceName, req.getDeviceName()); } if (StringUtils.isNotBlank(req.getYkName())) { wrapper.lambda().like(DataInstructEntity::getYkName, req.getYkName()); diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java index a34fd0a..820dd90 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java @@ -52,11 +52,11 @@ public class DataRecordService extends BaseServiceImpl