This commit is contained in:
linfso 2024-06-02 17:31:39 +08:00
parent 8f3d87320f
commit 5c04ff9100

View File

@ -80,15 +80,6 @@
</resultMap>
<!-- <result property="billCodeStr" column="bill_code_str" />-->
<!-- <association property="signCount"-->
<!-- column="bill_code_str"-->
<!-- select="selectSignCountByBillCodeStr"-->
<!-- fetchType="lazy"-->
<!-- />-->
<!-- 根据获取签收数量统计 -->
<select id="selectSignCountByBillCodeStr" parameterType="string" resultType="int">
select count(DISTINCT bill_code) as sign_cnt from emis_tms_scan_record
@ -115,6 +106,15 @@
and scan_date <![CDATA[ <= ]]> #{params.endScanDate}
</if>
<if test="params.thisSiteScanType != null and params.thisSiteScanType !=''">
scan_type=#{params.thisSiteScanType}
</if>
<if test="params.thisSiteCode != null and params.thisSiteCode !=''">
scan_site_code=#{params.thisSiteCode}
</if>
GROUP BY scan_site_code
</select>