解决序列号在采购入库后再删除,序列号还存在的bug

This commit is contained in:
季圣华
2023-05-15 23:38:19 +08:00
parent 5baab7fe48
commit 8a255839b7
4 changed files with 32 additions and 7 deletions

View File

@@ -1077,4 +1077,11 @@
where dh.id=#{id}
and ifnull(dh.delete_flag,'0') !='1'
</update>
<select id="getSerialNumberBySell" resultType="java.lang.Integer">
select count(s.id) from jsh_depot_head dh
left join jsh_serial_number s on dh.number=s.in_bill_no
where dh.number = #{number}
and (s.out_bill_no is not null or s.out_bill_no!='')
</select>
</mapper>