给单据的序列号和批号增加重复的校验

This commit is contained in:
季圣华
2022-05-22 23:13:57 +08:00
parent a86893a75f
commit 2f6eb27168
5 changed files with 37 additions and 7 deletions

View File

@@ -635,4 +635,14 @@
and ifnull(dh.delete_flag,'0') !='1'
group by di.material_extend_id
</select>
<select id="getCountByMaterialAndBatchNumber" resultType="java.lang.Long">
select count(di.id) from
jsh_depot_head dh
left join jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1'
where 1=1
and ifnull(dh.delete_flag,'0') !='1'
and di.material_extend_id=#{meId}
and di.batch_number=#{batchNumber}
</select>
</mapper>