gdg
2021-01-29 f675672004af0ff9071d21546a0eee0a0c8f3092
src/main/java/com/nanometer/smartlab/dao/SysLaboratoryContainerDao.xml
@@ -67,6 +67,12 @@
    <if test="laboratoryName != null and laboratoryName != ''">
      and ss.name like #{laboratoryName}
    </if>
    <if test="project != null and project != ''">
      and su.project like concat("%",#{project},"%")
    </if>
    <if test="controllerName != null and controllerName != ''">
      and sc.controller_name like concat("%",#{controllerName},"%")
    </if>
    order by ss.name ASC,sc.controller_name,su.container_code,su.name
    <if test="first != null and pageSize != null">
      limit #{first}, #{pageSize}
@@ -126,6 +132,12 @@
    </if>
    <if test="editId != null and editId != ''">
      and su.id != #{editId}
    </if>
    <if test="project != null and project != ''">
      and su.project like concat("%",#{project},"%")
    </if>
    <if test="controllerName != null and controllerName != ''">
      and sc.controller_name like concat("%",#{controllerName},"%")
    </if>
  </select>
@@ -213,4 +225,11 @@
  and slc.valid_flag = 1
  </select>
    <select id="selectProjectsByContainerCode" resultType="java.lang.String">
        select project
        from sys_laboratory_container
        where container_code = #{0}
        and valid_flag = 1
    </select>
</mapper>