From f3ed1f9e98e13b9fb631e2fab851be15b7dde206 Mon Sep 17 00:00:00 2001
From: wang..123 <brook_w@163.com>
Date: 星期五, 25 三月 2022 08:41:48 +0800
Subject: [PATCH] Merge branch 'zypms' of http://47.97.1.152:5880/r/wms_saas into zypms

---
 src/main/resources/mapper/ItemMapper.xml |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/ItemMapper.xml b/src/main/resources/mapper/ItemMapper.xml
index 9a1ed85..de06595 100644
--- a/src/main/resources/mapper/ItemMapper.xml
+++ b/src/main/resources/mapper/ItemMapper.xml
@@ -54,7 +54,29 @@
         <result column="realFADate" property="realFADate" />
         <result column="planLADate" property="planLADate" />
         <result column="realLADate" property="realLADate" />
+        <result column="planCarnumber" property="planCarnumber"/>
     </resultMap>
-
-
+    <select id="chaoPrice" resultMap="BaseResultMap">
+        select * from man_item where 1=1 and realdeAmt>plandeAmt
+        <if test="uuid!=null  and uuid!=''">
+          and uuid=#{uuid}
+        </if>
+    </select>
+    <select id="chaoTime" resultMap="BaseResultMap">
+         SELECT
+        *
+    FROM
+        (
+            SELECT
+                *,
+                DateDiff(DAY, planinDate,realinDate) AS time_diff
+            FROM
+                man_item
+        ) t1
+    WHERE
+        t1.time_diff > 0
+        <if test="uuid!=null  and uuid!=''">
+            and uuid=#{uuid}
+        </if>
+    </select>
 </mapper>

--
Gitblit v1.9.1