| | |
| | | where container_code = #{containerCode} and valid_flag = 1 |
| | | </select> |
| | | |
| | | <select id="updateSysLabContainer" parameterType="java.util.Map" > |
| | | update sys_laboratory_container slc |
| | | set slc.controller_code = #{code} |
| | | WHERE slc.controller_code = ( |
| | | SELECT sc.controller_code |
| | | from sys_controller sc |
| | | WHERE sc.id = #{id} |
| | | and sc.valid_flag = 1) |
| | | and slc.valid_flag = 1 |
| | | </select> |
| | | |
| | | <select id="getSysLaboratoryContainerList" parameterType="java.util.Map" resultMap="SysLaboratoryContainer"> |
| | | select su.*,ss.name as laboratoryName, ss.type as laboratoryType,sc.controller_name as controllerName from sys_laboratory_container as su |
| | | left join sys_laboratory as ss on su.laboratory_id = ss.id |