| | |
| | | <if test="param2.sceneType != null and param2.sceneType != ''"> |
| | | and scene_type = #{param2.sceneType} |
| | | </if> |
| | | <if test="param2.longitude != null and param2.longitude != ''"> |
| | | and longitude = #{param2.longitude} |
| | | </if> |
| | | <if test="param2.latitude != null and param2.latitude != ''"> |
| | | and latitude = #{param2.latitude} |
| | | </if> |
| | | <if test="param2.defenseLeader != null and param2.defenseLeader != ''"> |
| | | and defense_leader like concat('%', #{param2.defenseLeader}, '%') |
| | | </if> |
| | | <if test="param2.leaderPhone != null and param2.leaderPhone != ''"> |
| | | and leader_phone = #{param2.leaderPhone} |
| | | </if> |
| | | <if test="param2.defenseArea != null and param2.defenseArea != ''"> |
| | | and defense_area = #{param2.defenseArea} |
| | | </if> |
| | | <if test="param2.deviceMode != null and param2.deviceMode != ''"> |
| | | and device_mode = #{param2.deviceMode} |
| | | </if> |
| | | <if test="param2.areaDivideIds != null and param2.areaDivideIds != ''"> |
| | | and area_divide_ids = #{param2.areaDivideIds} |
| | | </if> |
| | | <if test="param2.areaCode != null and param2.areaCode != ''"> |
| | | and area_code = #{param2.areaCode} |
| | | </if> |
| | | <if test="param2.createUser != null and param2.createUser != ''"> |
| | | and create_user = #{param2.createUser} |
| | | </if> |
| | | <if test="param2.createDept != null and param2.createDept != ''"> |
| | | and create_dept = #{param2.createDept} |
| | | </if> |
| | | <if test="param2.createTime != null and param2.createTime != ''"> |
| | | and create_time = #{param2.createTime} |
| | | </if> |
| | | <if test="param2.updateUser != null and param2.updateUser != ''"> |
| | | and update_user = #{param2.updateUser} |
| | | </if> |
| | | <if test="param2.updateTime != null and param2.updateTime != ''"> |
| | | and update_time = #{param2.updateTime} |
| | | </if> |
| | | <if test="param2.status != null and param2.status != ''"> |
| | | and status = #{param2.status} |
| | | </if> |
| | | <if test="param2.deptList != null and param2.deptList.size > 0"> |
| | | and create_dept in |
| | | <foreach collection="param2.deptList" item="deptId" open="(" separator="," close=")"> |