This commit is contained in:
linfso 2024-06-21 15:20:42 +08:00
parent b3d9dd3b5d
commit e5e5bb8407

View File

@ -233,14 +233,14 @@
</select>
<!-- 检查主运单号是否存在 -->
<select id="checkWaybillIsExists" resultType="int">
<select id="checkDbWaybillIsExists" resultType="int">
select count(1) as cnt from emis_waybill
where bill_code=#{billCode}
limit 1
</select>
<!-- 检查子单号是否存在 -->
<select id="checkSubBillIsExists" resultType="int">
<select id="checkDbSubBillIsExists" resultType="int">
select count(1) as cnt from emis_waybill
where bill_code=#{billCode} and bl_gen_subbill='1' and #{subNum} <![CDATA[ <= ]]> parcel_qty
limit 1