feiyu02
2024-01-10 30a53b41f09d2eefd33513a409d472c2166ba1ea
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?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 &lt;= #{eTime}
      </if>
    </where>
  </select>
</mapper>