zouyu
2023-09-27 75b2904fbaf4fab6a9fb3baf065d2c927cc7a7a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yuanchu.mom.mapper.ReceiptMapper">
    <select id="selectAllRece" resultType="java.util.Map">
        select id,
        order_code,
        customer_code,
        proname,
        adress,
        name,
        phone,
        escort_code,
        DATE_FORMAT(deliver_time,'%Y-%m-%d'),
        user_name,
        type
        from mom_ocean.receipt
        where state=1
        <if test="name!=null and name!=''">
            and name like concat('%',#{name},'%')
        </if>
        <if test="orderCode!=null and orderCode!=''">
            and order_code like concat('%',#{orderCode},'%')
        </if>
        <if test="type!=null and type!=''">
            and type=#{type}
        </if>
        <if test="deliverTime!=null and deliverTime!=''">
            and deliver_time=#{deliverTime}
        </if>
        order by id desc
    </select>
</mapper>