| | |
| | | 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},"%") |
| | |
| | | <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},"%") |
| | |
| | | <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 |
| | | 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> |