From 65b7bc39dc8b56f7a3b01980038cbfa92f1bc58d Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 31 八月 2026 19:11:18 +0800
Subject: [PATCH] feat(inspectiontask): 添加状态字段用于表示巡检任务状态
---
src/main/resources/mapper/production/ProductionOrderMapper.xml | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductionOrderMapper.xml b/src/main/resources/mapper/production/ProductionOrderMapper.xml
index 8e64413..74e80a9 100644
--- a/src/main/resources/mapper/production/ProductionOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductionOrderMapper.xml
@@ -134,7 +134,7 @@
<include refid="ProductionOrderVoColumns" />
<include refid="ProductionOrderVoFrom" />
<include refid="ProductionOrderWhere" />
- order by po.id desc
+ order by po.status , po.plan_complete_time desc
</select>
<select id="listProductionOrder" resultMap="ProductionOrderVoResultMap">
@@ -233,7 +233,9 @@
</if>
</where>
order by po.id desc
- limit #{offset}, #{size}
+ <if test="size != null and size >= 0">
+ limit #{offset}, #{size}
+ </if>
</select>
<select id="countHomeOrderProgress" resultType="java.lang.Long">
--
Gitblit v1.9.3