From 6b84067eba7ed899956423ab5d9ab487ae4cbac0 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期三, 31 一月 2024 15:38:28 +0800
Subject: [PATCH] 更新接口

---
 DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/IncomeMapper.xml |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/IncomeMapper.xml b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/IncomeMapper.xml
index 4fa0e96..13f6083 100644
--- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/IncomeMapper.xml
+++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/IncomeMapper.xml
@@ -20,7 +20,8 @@
         incomeId as incomeId,
         orderType as orderType,
         money as money,
-        DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time
+        DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time,
+        type
         from t_income where money > 0
         <if test="null != userType">
             and userType = #{userType}
@@ -28,8 +29,11 @@
         <if test="null != objectId">
           and objectId = #{objectId}
         </if>
-        <if test="null != type">
-          and `type` = #{type}
+        <if test="null != type and type.size() > 0">
+          and `type` in
+          <foreach collection="type" item="item" index="index" open="(" separator="," close=")">
+              #{item}
+          </foreach>
         </if>
         order by insertTime desc limit #{pageNum}, #{size}
     </select>

--
Gitblit v1.7.1