fix(delivery-plan): 移除收货报表中的计划日期分组

- 移除了查询结果中不必要的计划日期字段
- 删除了按计划日期进行分组的逻辑
- 简化了统计查询以提高性能
This commit is contained in:
2026-01-14 14:23:29 +08:00
parent 3624426259
commit 9403803ac3

View File

@@ -168,7 +168,6 @@
<!-- 收货报表汇总统计基于钢卷待操作action_type=401统计全量收货计划 -->
<select id="selectReceivingReportSummary" resultType="com.klp.domain.vo.WmsReceivingReportSummaryVo">
SELECT
dp.plan_date AS planDate,
COUNT(wcpa.action_id) AS taskCount,
COUNT(DISTINCT wcpa.coil_id) AS coilCount,
COALESCE(SUM(mc.net_weight), 0) AS totalWeight,
@@ -195,7 +194,6 @@
<if test="endTime != null">
AND wcpa.create_time &lt;= #{endTime}
</if>
GROUP BY dp.plan_date
</select>
</mapper>