From 84fd23e5e865bd5529441a0c318809a00362f44c Mon Sep 17 00:00:00 2001 From: wjli <591616088@qq.com> Date: 星期一, 18 三月 2024 16:15:03 +0800 Subject: [PATCH] 添加签收图片对比功能 --- xboot-modules/xboot-your/src/main/resources/mapper/OrderTask2Mapper.xml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/resources/mapper/OrderTask2Mapper.xml b/xboot-modules/xboot-your/src/main/resources/mapper/OrderTask2Mapper.xml index ba0a32b..49e7b5a 100644 --- a/xboot-modules/xboot-your/src/main/resources/mapper/OrderTask2Mapper.xml +++ b/xboot-modules/xboot-your/src/main/resources/mapper/OrderTask2Mapper.xml @@ -2,4 +2,50 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="cn.exrick.xboot.your.mapper.OrderTask2Mapper"> + <select id="getTask2Images" resultType="cn.exrick.xboot.your.entity.OrderTask2Imgs"> + SELECT + a.code as code, + a.area_id as areaId, + b.name as areaName, + a.area_section_id as areaSectionId, + c.name as areaSectionName, + a.car_id as carId, + d.car_no as carNo, + a.customer_id as customerId, + a.customer_name as customerName, + a.customer_receive_id as customerReceiveId, + a.update_time as receiveTime, + e.name as customerReceiveName, + a.user_id as userId, + a.user_name as userName, + e.img as receiveImg, + a.img as imgs, + a.send_date as sendDate, + a.order_date as orderDate + FROM t_order_task2 a,t_area b,t_area_ection c,t_car d,t_customer_receive e + WHERE a.status = 1 + <if test="bo.sendDateStart != null and bo.sendDateStart != ''"> + AND send_date >= #{bo.sendDateStart} + </if> + <if test="bo.sendDateEnd != null and bo.sendDateEnd != ''"> + AND send_date <= #{bo.sendDateEnd} + </if> + <if test="bo.userName != null and bo.userName != ''" > + AND a.user_name = #{bo.userName} + </if> + <if test="bo.carNo != null and bo.carNo != ''" > + AND d.car_no = #{bo.carNo} + </if> + <if test="bo.customerName != null and bo.customerName != ''" > + AND a.customer_name like CONCAT ('%',#{bo.customerName},'%') + </if> + + and a.img is not null + and a.area_id = b.id + and a.area_section_id = c.id + and a.car_id = d.id + and a.customer_receive_id = e.id + order by a.order_date desc + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.1