| | |
| | | <update id="updateInfo" parameterType="java.util.Map"> |
| | | update sys_laboratory_container set temp=#{temp},humidity=#{humidity},voc1=#{voc1},flag=#{flag} where id=#{containerId} |
| | | </update> |
| | | |
| | | <update id="delSlcIds" parameterType="java.util.List"> |
| | | update sys_laboratory_container set valid_flag=0, update_time=now() |
| | | where laboratory_id in |
| | | <foreach collection="list" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </update> |
| | | <select id="getSysLaboratoryContainerInfoList" parameterType="java.util.Map" resultMap="SysLaboratoryContainer" > |
| | | select container_code,name,valid_flag,type,character_left,character_right from sys_laboratory_container where update_time >= #{startTime} and #{endTime} > update_time |
| | | </select> |
| | |
| | | AND slc.valid_flag = 1 |
| | | AND sl.valid_flag = 1 |
| | | </select> |
| | | <select id="getSysLaboratoryContainerExist" resultType="java.lang.Integer"> |
| | | select count(1) |
| | | from sys_laboratory_container as su |
| | | where su.valid_flag = 1 |
| | | <if test="containerCode != null and containerCode != ''"> |
| | | and su.container_code = #{containerCode} |
| | | </if> |
| | | <if test="editId != null and editId != ''"> |
| | | and su.id != #{editId} |
| | | </if> |
| | | </select> |
| | | </mapper> |