From 4ef2de7aa7fc24ee19020330e781bae0b51b956c Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期一, 30 十二月 2024 10:23:58 +0800
Subject: [PATCH] 小程序

---
 manage/src/main/resources/mapping/TWarehousingMapper.xml |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/manage/src/main/resources/mapping/TWarehousingMapper.xml b/manage/src/main/resources/mapping/TWarehousingMapper.xml
index 880a630..96710bd 100644
--- a/manage/src/main/resources/mapping/TWarehousingMapper.xml
+++ b/manage/src/main/resources/mapping/TWarehousingMapper.xml
@@ -18,7 +18,43 @@
 
     <!-- 通用查询结果列 -->
     <sql id="Base_Column_List">
-        id, status, type, storeId, remark, createTime, updateTime, createBy, updateBy, isDelete
+        id, status, `type`, storeId, remark, createTime, updateTime, createBy, updateBy, isDelete
     </sql>
+    <select id="inventoryReceiptList" resultType="com.jilongda.manage.vo.TWarehousingVO">
+        select <include refid="Base_Column_List"></include>
+        from t_warehousing
+        <where>
+            <if test="query.storeId != null">
+                and storeId = #{query.storeId}
+            </if>
+            <if test="query.status != null">
+                and status = #{query.status}
+            </if>
+            <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
+                and createTime between #{query.startTime} and #{query.endTime}
+            </if>
+            and isDelete =  ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()}
+            and `type` = 1
+        </where>
+        ORDER BY createTime DESC
+    </select>
+    <select id="inventoryReceiptLensList" resultType="com.jilongda.manage.vo.TWarehousingLensVO">
+        select <include refid="Base_Column_List"></include>
+        from t_warehousing
+        <where>
+            <if test="query.storeId != null">
+                and storeId = #{query.storeId}
+            </if>
+            <if test="query.status != null">
+                and status = #{query.status}
+            </if>
+            <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
+                and createTime between #{query.startTime} and #{query.endTime}
+            </if>
+        and `type` = 2
+            and isDelete =  ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()}
+        </where>
+        ORDER BY createTime DESC
+    </select>
 
 </mapper>

--
Gitblit v1.7.1