lipenghui 3 дней назад
Родитель
Сommit
6fb62b4cd5

+ 2 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/vo/IotDevicePageReqVO.java

@@ -152,4 +152,6 @@ public class IotDevicePageReqVO extends PageParam {
     private List<Long> assetClasses;
 
     private String exportFields;
+    private String deviceNo;
+    private String carNo;
 }

+ 1 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/IotDeviceMapper.java

@@ -52,6 +52,7 @@ public interface IotDeviceMapper extends BaseMapperX<IotDeviceDO> {
                 .eqIfPresent(IotDeviceDO::getNameplate, reqVO.getNameplate())
                 .eqIfPresent(IotDeviceDO::getExpires, reqVO.getExpires())
                 .eqIfPresent(IotDeviceDO::getPlPrice, reqVO.getPlPrice())
+                        .likeIfPresent(IotDeviceDO::getDeviceNo, reqVO.getDeviceNo()).likeIfPresent(IotDeviceDO::getCarNo, reqVO.getCarNo())
                 //.betweenIfPresent(IotDeviceDO::getPlDate, reqVO.getPlDate())
                 //.betweenIfPresent(IotDeviceDO::getManDate, reqVO.getManDate())
                 .eqIfPresent(IotDeviceDO::getPlYear, reqVO.getPlYear())