hyingbo
2 天以前 d4d757f2d1a32deecb5e13111d6e753dfa18a58e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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="org.jeecg.modules.eam.mapper.RepairWarehouseMapper">
 
    <select id="getColumnDateList" resultType="java.lang.String">
        select
            distinct ${repairWarehouse.column}
        from eam_repair_warehouse
        where del_flag = '0'
        <if test="repairWarehouse.faultType != null and repairWarehouse.faultType != '' ">
            AND fault_type = #{repairWarehouse.faultType}
        </if>
        <if test="repairWarehouse.faultPart != null and repairWarehouse.faultPart != '' ">
            AND fault_part LIKE CONCAT(CONCAT('%',#{repairWarehouse.faultPart}),'%')
        </if>
        <if test="repairWarehouse.faultChildPart != null and repairWarehouse.faultChildPart != '' ">
            AND fault_child_part LIKE CONCAT(CONCAT('%',#{repairWarehouse.faultChildPart}),'%')
        </if>
        <if test="repairWarehouse.repairDescription != null and repairWarehouse.repairDescription != '' ">
            AND repair_description LIKE CONCAT(CONCAT('%',#{repairWarehouse.repairDescription}),'%')
        </if>
    </select>
</mapper>