李宇
2021-02-25 dd29fcb8eff0fe9d442b98bd47738c79f3db136a
src/main/java/com/nanometer/smartlab/dao/OpeReagentStatusDao.xml
@@ -223,7 +223,6 @@
    from ope_reagent_status as oa
   <include refid="queryJoins3"/>
    where oa.valid_flag = 1
         and (oa.status = -1 or oa.status = 0 )
    <include refid="queryWhereSql3"/>
   <if   test="applyPerson != null and applyPerson != ''"  >
      and su.name like concat("%",#{applyPerson},"%")
@@ -263,7 +262,6 @@
   <include refid="queryJoins2"/>
   left  join sys_user su on su.id = oa.user_id
    where oa.valid_flag = 1
          and (oa.status = -1 or oa.status = 0 )
    <include refid="queryWhereSql2"/>
     <if   test="applyPerson != null and applyPerson != ''"  >
        and su.name like concat("%",#{applyPerson},"%")
@@ -427,8 +425,12 @@
   <update id="updateByReId" parameterType="java.util.Map">
        update ope_reagent_status set reagent_id=#{newReId} where reagent_id=#{oldReId}
    </update>
    <update id="updateArticleNumberByRCode">
      update ope_reagent_status set article_number = #{1}
      where reagent_code = #{0}
   </update>
<select id="selectReagentCodesByReId" parameterType="java.lang.String" resultType="java.lang.String">
    <select id="selectReagentCodesByReId" parameterType="java.lang.String" resultType="java.lang.String">
   select reagent_code from ope_reagent_status WHERE
   reagent_id = #{reagentId}
   and valid_flag = 1