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/TOrderAftersalesMapper.xml | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/manage/src/main/resources/mapping/TOrderAftersalesMapper.xml b/manage/src/main/resources/mapping/TOrderAftersalesMapper.xml index 3bfaa97..fb3332b 100644 --- a/manage/src/main/resources/mapping/TOrderAftersalesMapper.xml +++ b/manage/src/main/resources/mapping/TOrderAftersalesMapper.xml @@ -24,20 +24,24 @@ </sql> <select id="pageList" resultType="com.jilongda.manage.vo.TOrderAftersalesVO"> select toa.id, toa.code, toa.sysId, toa.optometristId, toa.orderId, toa.reason, toa.handleResult, toa.createTime, toa.updateTime, - toa.createBy, toa.updateBy, toa.isDelete,tau.name, tau.phone, tau.realName, ts.name as storeName, o.orderMoney + toa.createBy, toa.updateBy, toa.isDelete, ts.name as storeName, o.orderMoney,tau.`name` as `name`, + o.realName from t_order_aftersales toa - left join t_app_user tau on toa.sysId = tau.id left join t_order o on toa.orderId = o.id left join t_store ts on o.storeId = ts.id + left join t_app_user tau on o.userId = tau.id <where> - <if test="query.name != null and query.name != ''"> - and tau.name like concat('%',#{query.name},'%') - </if> <if test="query.phone != null and query.phone != ''"> - and tau.phone like concat('%',#{query.phone},'%') + and o.phone like concat('%',#{query.phone},'%') + </if> + <if test="query.userIds != null and query.userIds.size()>0"> + AND o.userId IN + <foreach collection="query.userIds" close=")" open="(" item="id" separator=","> + #{id} + </foreach> </if> <if test="query.storeId != null"> - and o.storeId = #{query.phone} + and o.storeId = #{query.storeId} </if> <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> and toa.createTime between #{query.startTime} and #{query.endTime} -- Gitblit v1.7.1