Browse Source

增加算法ID参数

hechunping 1 năm trước cách đây
mục cha
commit
06c3135513

+ 4 - 1
device-api-service/src/main/resources/mapper/DeviceInfoMapper.xml

@@ -98,7 +98,7 @@
     </resultMap>
 
     <select id="listByAdminName" resultType="com.xy.dto.DeviceInfoDto$ListByAdminName">
-        SELECT d.device_id, d.device_name, p.admin_name, d.device_type
+        SELECT d.device_id, d.device_name, p.admin_name, d.device_type,d.algorithm_id
         FROM device_info d
         left join merc_place p on p.id = d.place_id
         <where>
@@ -113,6 +113,9 @@
             <if test="dto.searchKey != null and dto.searchKey != ''">
                 and CONCAT(IFNULL(d.device_name, ''), IFNULL(p.admin_name, '')) like CONCAT('%', #{dto.searchKey}, '%')
             </if>
+            <if test="dto.algorithmId != null">
+                and d.algorithm_id = #{dto.algorithmId}
+            </if>
         </where>
     </select>
 

+ 6 - 0
device-api/src/main/java/com/xy/dto/DeviceInfoDto.java

@@ -159,6 +159,9 @@ public class DeviceInfoDto {
 
         @ApiModelProperty(value = "设备名/设备ID/管理员名")
         private String searchKey;
+
+        @ApiModelProperty("算法ID")
+        private Long algorithmId;
     }
 
 
@@ -212,6 +215,9 @@ public class DeviceInfoDto {
 
         @ApiModelProperty("商户编号")
         private String mercCode;
+
+        @ApiModelProperty("算法ID")
+        private Long algorithmId;
     }