| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectDeviceList" resultType="java.util.Map"> |
| | | <select id="selectDeviceListByIds" resultType="java.util.Map"> |
| | | select device_name, |
| | | en_device_name, |
| | | specification_model, |
| | |
| | | date_format(activation_date,'%Y-%m-%d') |
| | | latest_traceability |
| | | from device |
| | | where device.management_number in |
| | | <foreach collection="managementNumbers" index="index" open="(" separator="," close=")" item="val"> |
| | | where device.id in |
| | | <foreach collection="deviceIds" index="index" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | | order by field(device.id, |
| | | <foreach collection="deviceIds" index="index" separator="," item="val"> |
| | | #{val} |
| | | </foreach>) |
| | | </select> |
| | | |
| | | <update id="updateStatus"> |