| | |
| | | <result column="update_user" property="updateUser"/> |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="status" property="status"/> |
| | | <result column="use_date" property="useDate"/> |
| | | <result column="service_life" property="serviceLife"/> |
| | | <!-- <result column="is_deleted" property="isDeleted"/>--> |
| | | </resultMap> |
| | | |
| | |
| | | ja_fw_device |
| | | <where> |
| | | is_deleted = 0 |
| | | <if test="param2.trackStatus != null "> |
| | | and track_status::text = #{param2.trackStatus}::text |
| | | </if> |
| | | <if test="param2.id != null and param2.id != ''"> |
| | | and id::text = #{param2.id}::text |
| | | </if> |
| | |
| | | </if> |
| | | <if test="param2.belongDept != null and param2.belongDept != ''"> |
| | | and belong_dept::text = #{param2.belongDept}::text |
| | | </if> |
| | | <if test="param2.useDate != null"> |
| | | and use_date = #{param2.useDate} |
| | | </if> |
| | | <if test="param2.serviceLife != null"> |
| | | and service_life = #{param2.serviceLife} |
| | | </if> |
| | | <if test="param2.deviceStatusList != null and param2.deviceStatusList != ''"> |
| | | and status::text in |
| | |
| | | ja_fw_device d |
| | | WHERE |
| | | d.is_deleted = 0 |
| | | AND d.is_enabled = 1 |
| | | AND d.track_status = 1 |
| | | AND d.final_outbound_area IS NOT NULL |
| | | <if test="effectiveRangeKmIsNotNull != null and effectiveRangeKmIsNotNull == 2"> |
| | | and (d.effective_range_km is null or d.effective_range_km = 0) |
| | |
| | | d.update_time, |
| | | d.status, |
| | | d.is_deleted, |
| | | d.use_date, |
| | | d.service_life, |
| | | NULLIF(trim(d.latitude::text), '')::double precision AS latitude, |
| | | NULLIF(trim(d.longitude::text), '')::double precision AS longitude, |
| | | min(ad.id) as area_divide_id, |
| | |
| | | AND ad.is_deleted = 0 |
| | | WHERE |
| | | d.is_deleted = 0 |
| | | AND d.is_enabled = 1 |
| | | AND d.track_status = 1 |
| | | <if test="isEnabled != null"> |
| | | AND d.is_enabled = #{isEnabled} |
| | | </if> |
| | | AND d.track_status = 1 |
| | | AND d.final_outbound_area IS NOT NULL |
| | | <if test="regionCode != null and regionCode != ''"> |
| | | and ( d.final_outbound_area_code::text LIKE concat(#{regionCode}, '%') |