This commit is contained in:
linfso 2024-06-02 17:05:44 +08:00
parent 5dde3394f5
commit 661b9704c9
2 changed files with 16 additions and 15 deletions

View File

@ -81,8 +81,8 @@ public class EmisTmsScanRecordController extends BaseController
* 签收异常数据对比
*/
// @PreAuthorize("@ss.hasPermi('emis:emisTmsScanRecord:signStat')")
@GetMapping("/queryScanStatDataList")
public TableDataInfo queryScanStatDataList(EmisTmsScanRecord emisTmsScanRecord)
@GetMapping("/queryScanStatList")
public TableDataInfo queryScanStatList(EmisTmsScanRecord emisTmsScanRecord)
{
startPage();
emisTmsScanRecord.getParams().put("thisSiteCode",getLoginUser().getUser().getOwnerSiteCode());

View File

@ -57,8 +57,7 @@
</resultMap>
<!-- 扫描统计 com.xdadan.erp.emis.domain.stat.-->
<resultMap type="ScanStatDataInfo" id="ScanStatDataInfoResult" extends="EmisTmsScanRecordResult">
<resultMap type="ScanStatDataInfo" id="ScanStatDataInfoResult">
<result property="scanType" column="scan_type" />
@ -68,12 +67,6 @@
<result property="billCodeStr" column="bill_code_str" />
<association property="signCount"
column="bill_code_str"
select="selectSignCountByBillCodeStr"
fetchType="lazy"
/>
<association property="scanSiteName"
column="scan_site_code"
select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"
@ -83,6 +76,12 @@
</resultMap>
<!-- <association property="signCount"-->
<!-- column="bill_code_str"-->
<!-- select="selectSignCountByBillCodeStr"-->
<!-- fetchType="lazy"-->
<!-- />-->
<!-- 根据获取签收数量统计 -->
<select id="selectSignCountByBillCodeStr" parameterType="string" resultType="int">
@ -109,15 +108,17 @@
<if test="params.endScanDate != null and params.endScanDate != ''">
and scan_date <![CDATA[ <= ]]> #{params.endScanDate}
</if>
<if test="params.thisSiteScanType != null and params.thisSiteScanType !=''">
and bill_code in(
select bill_code from emis_tms_scan_record where scan_site_code=#{params.thisSiteCode} and scan_type=#{params.thisSiteScanType}
)
</if>
GROUP BY scan_site_code
</select>
<!-- <if test="params.thisSiteScanType != null and params.thisSiteScanType !=''">-->
<!-- and bill_code in(-->
<!-- select bill_code from emis_tms_scan_record where scan_site_code=#{params.thisSiteCode} and scan_type=#{params.thisSiteScanType}-->
<!-- )-->
<!-- </if>-->
<select id="queryScanStatRecordList" parameterType="EmisTmsScanRecord" resultMap="EmisTmsScanRecordResult">
select distinct scan_site_code,bill_code
from emis_tms_scan_record