| | |
| | | <include refid="deviceFields"/>,a.* |
| | | from |
| | | ja_fw_device_scrap a |
| | | left join ja_fw_device b on (a.device_id = b.id::VARCHAR) |
| | | left join ja_fw_device b on (a.device_id::VARCHAR = b.id::VARCHAR) |
| | | <where> |
| | | a.is_deleted = 0 |
| | | <if test="id != null and id != ''"> |
| | |
| | | <include refid="deviceFields"/>,a.* |
| | | from |
| | | ja_fw_device_scrap a |
| | | left join ja_fw_device b on (a.device_id = b.id::VARCHAR) |
| | | left join ja_fw_device b on (a.device_id::VARCHAR = b.id::VARCHAR) |
| | | <where> |
| | | a.is_deleted = 0 |
| | | <if test="param2.deviceId != null and param2.deviceId != ''"> |