|
|
|
@ -50,14 +50,11 @@ public class DataInstructController {
|
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
public R<IPage<DataInstructEntity>> listPage(Query query, DataInstructEntity req) { |
|
|
|
|
QueryWrapper<DataInstructEntity> 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()); |
|
|
|
|