From 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 28 三月 2025 19:57:56 +0800 Subject: [PATCH] 修改bug --- DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/IncomeMapper.xml | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 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 741cde0..9b1bb90 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,16 +20,20 @@ incomeId as incomeId, orderType as orderType, money as money, - DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time - from t_income where 1 = 1 + DATE_FORMAT(insertTime, '%Y-%m-%d') as time, + type + from t_income where money > 0 <if test="null != userType"> and userType = #{userType} </if> <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