Merge pull request 'demand: 定时扫描漏组批次从未组批次运单统计不准确的问题' (#104) from develop into master

Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/104
This commit is contained in:
heyu 2025-07-09 09:33:41 +08:00
commit ee2ecd2339
2 changed files with 9 additions and 6 deletions

View File

@ -190,7 +190,7 @@ public class EmisTmsSiteBatchMissServiceImpl extends EmisBaseService implements
try { try {
List<EmisWaybill> waybills = future.get(); List<EmisWaybill> waybills = future.get();
allWaybills.addAll(waybills); allWaybills.addAll(waybills);
totalProcessed += waybills.size(); // totalProcessed += waybills.size();
} catch (Exception e) { } catch (Exception e) {
log.error("Error getting waybill results", e); log.error("Error getting waybill results", e);
} }
@ -225,6 +225,8 @@ public class EmisTmsSiteBatchMissServiceImpl extends EmisBaseService implements
.filter(wb -> !Objects.equals(wb.getProblemType(), 170)) .filter(wb -> !Objects.equals(wb.getProblemType(), 170))
.collect(Collectors.toList()); .collect(Collectors.toList());
totalProcessed = allWaybills.size();
// 按1000条数据分组处理 // 按1000条数据分组处理
List<List<EmisWaybill>> batches = new ArrayList<>(); List<List<EmisWaybill>> batches = new ArrayList<>();
for (int i = 0; i < allWaybills.size(); i += pageSize) { for (int i = 0; i < allWaybills.size(); i += pageSize) {

View File

@ -3812,7 +3812,8 @@
</insert> </insert>
<select id="selectWaybillListBySiteBatchStatus" resultMap="EmisWaybillResult"> <select id="selectWaybillListBySiteBatchStatus" resultMap="EmisWaybillResult">
select a.id, a.bill_code,a.trans_line_type, a.product_type,a.start_site_code,a.send_site_code,a.problem_type select a.id, a.bill_code,a.trans_line_type,
a.product_type,a.start_site_code,a.send_site_code,a.problem_type,a.virtual_remark
from emis_waybill a from emis_waybill a
left join emis_waybill_batch_status b on a.bill_code = b.bill_code left join emis_waybill_batch_status b on a.bill_code = b.bill_code
where a.del_flag = '0' where a.del_flag = '0'