<?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="cn.flightfeather.supervision.domain.ds2.mapper.ComplaintMapper" >
|
<resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds2.entity.Complaint" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
<id column="CP_GUID" property="cpGuid" jdbcType="VARCHAR" />
|
<result column="CP_Name" property="cpName" jdbcType="VARCHAR" />
|
<result column="CP_Time" property="cpTime" jdbcType="TIMESTAMP" />
|
<result column="CP_Reason" property="cpReason" jdbcType="VARCHAR" />
|
<result column="CP_Appeal" property="cpAppeal" jdbcType="VARCHAR" />
|
<result column="CP_Source" property="cpSource" jdbcType="VARCHAR" />
|
<result column="CP_SceneId" property="cpSceneid" jdbcType="VARCHAR" />
|
<result column="CP_Mediate_Time" property="cpMediateTime" jdbcType="TIMESTAMP" />
|
<result column="CP_Mediate_Unit" property="cpMediateUnit" jdbcType="VARCHAR" />
|
<result column="CP_Mediate_Result" property="cpMediateResult" jdbcType="VARCHAR" />
|
<result column="CP_Extension1" property="cpExtension1" jdbcType="VARCHAR" />
|
<result column="CP_Extension2" property="cpExtension2" jdbcType="VARCHAR" />
|
<result column="CP_Extension3" property="cpExtension3" jdbcType="VARCHAR" />
|
<result column="CP_Remark" property="cpRemark" jdbcType="VARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
CP_GUID, CP_Name, CP_Time, CP_Reason, CP_Appeal, CP_Source, CP_SceneId, CP_Mediate_Time,
|
CP_Mediate_Unit, CP_Mediate_Result, CP_Extension1, CP_Extension2, CP_Extension3,
|
CP_Remark
|
</sql>
|
|
<resultMap id="ComplaintVo" type="cn.flightfeather.supervision.lightshare.vo.ComplaintVo" extends="BaseResultMap">
|
<association property="baseInfo" resultMap="cn.flightfeather.supervision.domain.ds2.mapper.BaseInfoMapper.BaseResultMap" />
|
</resultMap>
|
|
<select id="findComplaint" resultMap="ComplaintVo">
|
select
|
*
|
from ea_t_complaint as a
|
left join ea_t_baseinfo as b
|
on a.CP_SceneId = b.BI_GUID
|
<where>
|
a.CP_SceneId in #{tzUserIdList}
|
<if test="sTime != null">
|
and a.CP_Time >= #{sTime}
|
</if>
|
<if test="eTime != null">
|
and a.CP_Time <= #{eTime}
|
</if>
|
</where>
|
</select>
|
</mapper>
|