add
gdg
2021-01-25 8fca402ad743c884d106c0977cb792ca26bd5617
src/main/java/com/nanometer/smartlab/dao/OpeReagentStatusDao.xml
@@ -281,6 +281,10 @@
        insert into ope_reagent_status(id, reagent_id, article_number, reagent_code, status, house_id, container_id, user_id, remainder, place, store_type, valid_flag, update_time,project_num)
        values (#{id}, #{reagentId}, #{articleNumber}, #{reagentCode}, #{status}, #{houseId}, #{containerId}, #{userId}, #{remainder}, #{place}, #{storeType}, 1, now(),#{projectNum})
    </insert>
    <insert id="insertOpeReagentStatus2" parameterType="com.nanometer.smartlab.entity.OpeReagentStatus">
      insert into ope_reagent_status(id, reagent_id, article_number, reagent_code, status, house_id, container_id, user_id, remainder, place, store_type, valid_flag, update_time,project_num,apply_code,order_code)
        values (#{id}, #{reagentId}, #{articleNumber}, #{reagentCode}, #{status}, #{houseId}, #{containerId}, #{userId}, #{remainder}, #{place}, #{storeType}, 1, now(),#{projectNum},#{applyCode},#{orderCode})
   </insert>
    <select id="getOpeReagentStatusByReagentCode" parameterType="java.lang.String" resultMap="OpeReagentStatus">
        select *
@@ -430,4 +434,18 @@
   and valid_flag = 1
   ORDER BY update_time
</select>
    <select id="countReagentByArticleAndWarehouse" resultType="java.lang.Integer">
      select count(*)
      from ope_reagent_status
      WHERE status = 1
      <if test="reagentId != null and reagentId !=''">
         and reagent_id = #{reagentId}
      </if>
      <if test="articleNumber != null and articleNumber !=''">
         and article_number = #{articleNumber}
      </if>
      <if test="warehouseId != null and warehouseId !=''">
         and house_id = #{warehouseId}
      </if>
   </select>
</mapper>