24 lines
1.1 KiB
XML
24 lines
1.1 KiB
XML
|
|
<?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.gunshi.project.xyt.mapper.StGateRepairRecordMapper">
|
||
|
|
|
||
|
|
|
||
|
|
<select id="page" resultType="com.gunshi.project.xyt.entity.vo.GateRepairRecordVo">
|
||
|
|
select a.RECORD_ID,a.REPAIR_TYPE,a.RECORD_USER_NAME,a.REPAIR_TM,group_concat(b.GATE_NM) as gateNm
|
||
|
|
from ST_GATE_REPAIR_RECORD a left join ST_GATE_REPAIR_DETAIL b on a.RECORD_ID = b.RECORD_ID
|
||
|
|
<where>
|
||
|
|
<if test="param.gateNm != null and param.gateNm != ''">
|
||
|
|
and gateNm like concat('%',#{param.gateNm},'%')
|
||
|
|
</if>
|
||
|
|
<if test="param.repairType != null">
|
||
|
|
and a.REPAIR_TYPE = #{param.repairType}
|
||
|
|
</if>
|
||
|
|
<if test="startTime != null and startTime != ''">
|
||
|
|
and a.REPAIR_TM <![CDATA[ >= ]]> #{startTime}
|
||
|
|
</if>
|
||
|
|
<if test="endTime != null and endTime != ''">
|
||
|
|
and a.REPAIR_TM <![CDATA[ <= ]]> #{endTime}
|
||
|
|
</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
</mapper>
|