Blame view

parking-module-pay/src/main/resources/mybatis/smapper/TdBWxConfigSMapper.xml 2 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.TdBWxConfigSMapper">
      <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdBWxConfig">
          <id column="id" property="id" jdbcType="BIGINT"/>
          <result column="appid" property="appid" jdbcType="VARCHAR"/>
          <result column="app_secret" property="appSecret" jdbcType="VARCHAR"/>
          <result column="is_encrypt_message" property="isEncryptMessage" jdbcType="INTEGER"/>
          <result column="encoding_aes_key" property="encodingAesKey" jdbcType="VARCHAR"/>
          <result column="mchid" property="mchid" jdbcType="INTEGER"/>
          <result column="pay_api_secret" property="payApiSecret" jdbcType="VARCHAR"/>
          <result column="data_state" property="dataState" jdbcType="INTEGER"/>
          <result column="is_pay_noCredit" property="isPayNocredit" jdbcType="INTEGER"/>
          <result column="remark" property="remark" jdbcType="VARCHAR"/>
          <result column="create_op" property="createOp" jdbcType="INTEGER"/>
          <result column="create_date" property="createDate" jdbcType="TIMESTAMP"/>
          <result column="modify_op" property="modifyOp" jdbcType="INTEGER"/>
          <result column="modify_date" property="modifyDate" jdbcType="TIMESTAMP"/>
      </resultMap>
      <sql id="Base_Column_List">
      id, appid, app_secret, is_encrypt_message, encoding_aes_key, mchid, pay_api_secret, 
      data_state, is_pay_noCredit, remark, create_op, create_date, modify_op, modify_date
    </sql>
  
      <select id="queryWxConfigByAppid" resultMap="BaseResultMap">
          SELECT
          <include refid="Base_Column_List"/>
          FROM td_b_wx_config
          WHERE data_state = 1
          AND appid = #{appid}
  
      </select>
  
      <select id="queryAllWxConfigs" resultMap="BaseResultMap">
          SELECT
          <include refid="Base_Column_List"/>
          FROM td_b_wx_config
          WHERE data_state = 1
      </select>
  
  </mapper>