| | |
| | | </if> |
| | | </select> |
| | | <select id="selectDeviceList" resultType="java.util.Map"> |
| | | select device_name,specification_model,factory_no,date_format(next_calibration_date, '%Y-%m-%d') |
| | | latest_traceability from device |
| | | where factory_no in |
| | | select device_name,specification_model,management_number,DATE_ADD(date_format(last_calibration_date, '%Y-%m-%d'),INTERVAL calibration_date month) latest_traceability |
| | | from device |
| | | where device.management_number in |
| | | <foreach collection="names" index="index" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | |
| | | </if> |
| | | ) temp |
| | | </select> |
| | | <select id="getEnumLabelByValue" resultType="java.lang.String"> |
| | | select label from `center-lims`.enums |
| | | where value = #{value} |
| | | </select> |
| | | </mapper> |