Browse Source

设备台账后端接口

Zimo 2 ngày trước cách đây
mục cha
commit
a338ae6cfc

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

@@ -154,4 +154,8 @@ public class IotDevicePageReqVO extends PageParam {
     private String exportFields;
     private String deviceNo;
     private String carNo;
+    private String chargeName;
+    private String useProject;
+    private String assetOwnership;
+    private String address;
 }

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

@@ -38,8 +38,10 @@ public interface IotDeviceMapper extends BaseMapperX<IotDeviceDO> {
                 .likeIfPresent(IotDeviceDO::getYfDeviceCode, reqVO.getYfDeviceCode())
                 .likeIfPresent(IotDeviceDO::getDeviceCode, reqVO.getDeviceCode())
                 .likeIfPresent(IotDeviceDO::getDeviceName, reqVO.getDeviceName())
+                .likeIfPresent(IotDeviceDO::getAssetOwnership, reqVO.getAssetOwnership())
+                .likeIfPresent(IotDeviceDO::getAddress, reqVO.getAddress())
                 .eqIfPresent(IotDeviceDO::getBrand, reqVO.getBrand())
-                .eqIfPresent(IotDeviceDO::getModel, reqVO.getModel())
+                .likeIfPresent(IotDeviceDO::getModel, reqVO.getModel())
                         .likeIfPresent(IotDeviceDO::getBrandName, reqVO.getBrandName())
                 //.eqIfPresent(IotDeviceDO::getOrgId, reqVO.getOrgId())
                 .inIfPresent(IotDeviceDO::getDeptId, deptIds)
@@ -67,6 +69,8 @@ public interface IotDeviceMapper extends BaseMapperX<IotDeviceDO> {
                 .eqIfPresent(IotDeviceDO::getInfoRemark, reqVO.getInfoRemark())
                 .eqIfPresent(IotDeviceDO::getInfoUrl, reqVO.getInfoUrl())
                 .eqIfPresent(IotDeviceDO::getTemplateJson, reqVO.getTemplateJson())
+                .likeIfPresent(IotDeviceDO::getChargeName, reqVO.getChargeName())
+                .likeIfPresent(IotDeviceDO::getUseProject, reqVO.getUseProject())
                 .eqIfPresent(IotDeviceDO::getBomSyncStatus, reqVO.getBomSyncStatus()));
 //                .orderByAsc(IotDeviceDO::getSortColumn));
     }