This commit is contained in:
linfso 2024-06-14 17:17:45 +08:00
parent 8c9089670b
commit 3f6915c39d

View File

@ -190,7 +190,7 @@
<!-- 检查扫描唯一性 -->
<select id="checkSiteScanUnique" parameterType="EmisTmsScanRecord" resultType="int">
select count(1) from emis_tms_scan_record
where bill_code = #{billCode} and scan_type=#{scanType}
where del_flag='0' and bill_code = #{billCode} and scan_type=#{scanType}
and scan_site_code=#{scanSiteCode}
and to_days(scan_date) = to_days(#{scanDate})
limit 1