| | |
| | | <sql id="Base_Column_List"> |
| | | id, code, sysId, optometristId, orderId, reason, handleResult, createTime, updateTime, createBy, updateBy, isDelete |
| | | </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.storeName, o.orderMoney |
| | | from t_order_aftersales toa |
| | | left join t_app_user tau on toa.sysId = tau.id |
| | | left join t_store ts on toa.storeId = ts.id |
| | | left join t_order o on toa.orderId = o.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},'%') |
| | | </if> |
| | | <if test="query.storeId != null"> |
| | | and toa.storeId = #{query.phone} |
| | | </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} |
| | | </if> |
| | | and toa.isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY toa.createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |