Blame view

parking-module-pay/src/main/resources/mybatis/smapper/TdCCustSuggestSMapper.xml 2.03 KB
55f68655   王彪总   新项目
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
  <?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.zteits.pay.mapper.smapper.TdCCustSuggestSMapper">
      <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdCCustSuggest">
          <id column="id" jdbcType="BIGINT" property="id" />
          <result column="cust_id" jdbcType="VARCHAR" property="custId" />
          <result column="user_phone" jdbcType="VARCHAR" property="userPhone" />
          <result column="feedback_id" jdbcType="BIGINT" property="feedbackId" />
          <result column="feedback_code" jdbcType="INTEGER" property="feedbackCode" />
          <result column="suggest_desc" jdbcType="VARCHAR" property="suggestDesc" />
          <result column="is_answer" jdbcType="INTEGER" property="isAnswer" />
          <result column="org_id" jdbcType="BIGINT" property="orgId" />
          <result column="state" jdbcType="INTEGER" property="state" />
          <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
          <result column="modify_date" jdbcType="TIMESTAMP" property="modifyDate" />
      </resultMap>
      <sql id="Base_Column_List">
      id, cust_id, user_phone, feedback_id, feedback_code, suggest_desc, is_answer, org_id,
      state, create_date, modify_date
      </sql>
      <!-- app查询用户提出建议及回复 -->
      <select id="queryTdCCustSuggestForAPP" resultType="com.zteits.clouds.api.dto.owner.dto.TdCCustSuggestDTO"
              parameterType="com.zteits.clouds.api.dto.pay.param.QueryTdCCustSuggestRequest" >
          select
              s.id as id,
              s.cust_id as custId,
              s.user_phone as userPhone,
              s.feedback_code as feedbackCode,
              s.suggest_desc as suggestDesc,
              s.is_answer as isAnswer,
              s.org_id as orgId,
              s.create_date as suggestDate
          from td_c_cust_suggest s
          where
          s.cust_id = #{custId,jdbcType=VARCHAR}
          and
          s.state = 1
          order by
          s.create_date desc
      </select>
  </mapper>