| | |
| | | CONCAT(location1,'-',location2) |
| | | END |
| | | location, |
| | | bm2.meta_value department |
| | | bm2.meta_value department, |
| | | sl.project |
| | | from sys_laboratory as sl |
| | | LEFT JOIN base_meta bm1 on bm1.id = sl.type |
| | | left JOIN base_meta bm2 on bm2.id = sl.department |
| | |
| | | </if> |
| | | <if test="type != null and type != ''"> |
| | | and sl.type = #{type}; |
| | | </if> |
| | | <if test="project != null and project != ''"> |
| | | and sl.project like concat("%",#{project},"%") |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | WHERE |
| | | sl.project LIKE CONCAT('%',#{project},'%') |
| | | </select> |
| | | <select id="getSysLaboratoryByName" resultMap="SysLaboratory"> |
| | | select * |
| | | from sys_laboratory |
| | | where name = #{0} |
| | | and valid_flag = 1 |
| | | </select> |
| | | <update id="updateLabExport" parameterType="com.nanometer.smartlab.entity.SysLaboratory"> |
| | | update sys_laboratory set |
| | | type=#{type}, |