From 67647a9bdb5ca2c0acf5c5f635ec28d2e4d6c9db Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 08 十月 2026 13:58:51 +0800
Subject: [PATCH] fix:countTodayByCreateTime方法加上null值判断

---
 src/main/resources/mapper/production/ProductionOperationTaskMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml b/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml
index bdcfa4b..493706f 100644
--- a/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml
+++ b/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml
@@ -218,10 +218,13 @@
     <select id="listProcessStatusByOrderIds" resultType="com.ruoyi.production.bean.vo.ProductionOrderProcessTaskVo">
         select pot.production_order_id as productionOrderId,
                poro.operation_name as operationName,
+               topo.color as operationColor,
                ROUND(IFNULL(pot.complete_quantity, 0) / NULLIF(pot.plan_quantity, 0) * 100, 2) AS completionStatus
         from production_operation_task pot
                  left join production_order_routing_operation poro
                            on pot.production_order_routing_operation_id = poro.id
+                 left join technology_operation topo
+                           on poro.technology_operation_id = topo.id
         where pot.production_order_id in
         <foreach collection="orderIds" item="orderId" open="(" separator="," close=")">
             #{orderId}

--
Gitblit v1.9.3