| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectDeviceList" resultType="java.util.Map"> |
| | | <select id="selectDeviceListByIds" resultType="java.util.Map"> |
| | | select device_name, |
| | | en_device_name, |
| | | specification_model, |
| | | management_number, |
| | | factory_no, |
| | | 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"> |
| | |
| | | from (select io2.id insOrderId, |
| | | io2.sample_view, |
| | | io2.production, |
| | | io2.send_time, |
| | | io2.sample_date, |
| | | GROUP_CONCAT(DISTINCT isa.model SEPARATOR ' ') AS sample_model, |
| | | io2.prepare_user, |
| | | io2.entrust_code, |