<?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>
|