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/TOrderAccountingMapper.xml | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/manage/src/main/resources/mapping/TOrderAccountingMapper.xml b/manage/src/main/resources/mapping/TOrderAccountingMapper.xml index 0551755..63f5304 100644 --- a/manage/src/main/resources/mapping/TOrderAccountingMapper.xml +++ b/manage/src/main/resources/mapping/TOrderAccountingMapper.xml @@ -29,9 +29,29 @@ id, code, orderId, rLens, lLens, frame, createTime, updateTime, createBy, updateBy, isDelete, commission, rLensProfit, lLensProfit, frameProfit, payMoney, profitMoney, profitRating </sql> <select id="pageList" resultType="com.jilongda.manage.vo.TOrderVO"> - select t1.* from + select t1.*,t2.name as storeName from t_order t1 - left join + left join t_store t2 on t1.storeId = t2.id + where 1=1 + <if test="query.name != null and query.name != ''"> + and t1.name like concat('%',#{query.name},'%') + </if> + <if test="query.phone != null and query.phone != ''"> + and t1.phone like concat('%',#{query.phone},'%') + </if> + <if test="req.startTime != null and req.startTime!=''"> + and (t1.createTime between #{req.startTime} and #{req.endTime}) + </if> + <if test="req.startMoney != null "> + and (t1.payMoney between #{req.startMoney} and #{req.endMoney}) + </if> + <if test="req.isAccounting != null "> + and t1.isAccounting = #{req.isAccounting} + </if> + <if test="req.storeId != null "> + and t1.storeId = #{req.storeId} + </if> + order by t1.isAccounting desc </select> </mapper> -- Gitblit v1.7.1