zss
2023-09-25 5d24aead2d1a45452942ddfc300fe6a232301a99
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
<?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.ImportRepertoryMapper">
    <select id="selectAllImpRep" resultType="java.util.Map">
        select id,
        order_code,
        quality_traceability,
        name,
        specifications,
        unit,
        number,
        user_name,
        DATE_FORMAT(create_time, '%Y-%m-%d')'入库日期'
        from mom_ocean.import_repertory
        where state=1
        <if test="orderCode!=null and orderCode!=''">
            and order_code like concat('%',#{orderCode},'%')
        </if>
        <if test="name!=null and name!=''">
            and name like concat('%',#{name},'%')
        </if>
        <if test="time!=null and time!=''">
            and create_time=#{time}
        </if>
        order by id desc
    </select>
</mapper>