Forráskód Böngészése

sz 添加查询条件

xiao547607 5 éve
szülő
commit
60cdce16b1

+ 3 - 0
common/src/main/resources/mapper/base/PersonDeviceRelation.xml

@@ -161,6 +161,9 @@ id_,device_id,person_id,del_flag,create_by,create_time,update_by,update_time		fr
 			<if test="searchParams.faceBound != null">
 				and c.face_bound = #{searchParams.faceBound}
 			</if>
+			<if test="searchParams.isBound != null">
+				and a.is_bound = #{searchParams.isBound}
+			</if>
 			<if test="'1'.toString() == searchParams.isUploadPhoto and null != searchParams.isUploadPhoto">
 				and c.face_image_url is not null
 			</if>

+ 3 - 3
web/src/main/java/com/jpsoft/smart/modules/base/controller/PersonDeviceRelationController.java

@@ -824,7 +824,7 @@ public class PersonDeviceRelationController {
             @RequestParam(value="position5",defaultValue="") String position5,
             @RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
             @RequestParam(value="pageSize",defaultValue="20") int pageSize,
-            @RequestParam(value="faceBound",defaultValue="") Integer faceBound,
+            @RequestParam(value="isBound",defaultValue="") Integer isBound,
             @RequestParam(value="isUploadPhoto",defaultValue="") String isUploadPhoto,
             @RequestAttribute String subject){
 
@@ -906,8 +906,8 @@ public class PersonDeviceRelationController {
             searchParams.put("position5","%" + position5 + "%");
         }
 
-        if(faceBound != null){
-            searchParams.put("faceBound",faceBound);
+        if(isBound != null){
+            searchParams.put("isBound",isBound);
         }
 
         if(StringUtils.isNotEmpty(isUploadPhoto)){