From bf765893039bc7968b8160a70bda778526dca98c Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期二, 31 十二月 2024 15:28:19 +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..d4d173b 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="query.startTime != null and query.startTime!=''"> + and (t1.createTime between #{query.startTime} and #{query.endTime}) + </if> + <if test="query.startMoney != null "> + and (t1.payMoney between #{query.startMoney} and #{query.endMoney}) + </if> + <if test="query.isAccounting != null "> + and t1.isAccounting = #{query.isAccounting} + </if> + <if test="query.storeId != null "> + and t1.storeId = #{query.storeId} + </if> + order by t1.isAccounting desc </select> </mapper> -- Gitblit v1.7.1