| | |
| | | md.longitude, |
| | | md.latitude, |
| | | md.location, |
| | | md.device_type, |
| | | bd.dept_name as device_dept_name |
| | | from |
| | | ja_gd_manage_device md |
| | |
| | | <where> |
| | | and md.is_deleted = 0 |
| | | <if test="param2.deviceName != null and param2.deviceName != ''"> |
| | | and md.device_name like concat('%',#{param2.deviceName},'%') |
| | | </if> |
| | | <if test="param2.nickname != null and param2.nickname != ''"> |
| | | and md.nickname like concat('%',#{param2.nickname},'%') |
| | | and md.nickname like concat('%',#{param2.deviceName},'%') |
| | | </if> |
| | | <if test="param2.deptId != null"> |
| | | and md.create_dept = #{param2.deptId} |