Blame view

parking-module-pay/src/main/resources/mybatis/smapper/TdCCouponRuleParkSMapper.xml 1.56 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
  <?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.TdCCouponRuleParkSMapper">
      <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdCCouponRulePark">
          <id column="id" jdbcType="BIGINT" property="id" />
          <result column="card_no" jdbcType="VARCHAR" property="cardNo" />
          <result column="pl_no" jdbcType="VARCHAR" property="plNo" />
          <result column="data_state" jdbcType="INTEGER" property="dataState" />
          <result column="create_empid" jdbcType="VARCHAR" property="createEmpid" />
          <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
          <result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
          <result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
      </resultMap>
      <sql id="Base_Column_List">
          id, card_no, pl_no, data_state, create_empid, create_date, modfiy_empid, modfiy_date
      </sql>
  
      <!-- 根据卡券编码查询卡券与停车场关系 lanlw 2017-12-28-->
      <!--  The relationship between the card coupon and the parking lot based on the card coupon code-->
       <select id="queryCouponRuleParkByCardNo" parameterType="com.zteits.clouds.api.dto.pay.param.QueryCouponRuleParkByCardNoRequest"
              resultMap="BaseResultMap">
          select
          <include refid="Base_Column_List" />
          from td_c_coupon_rule_park
          where card_no = #{cardNo,jdbcType=VARCHAR}
      </select>
  
  
  </mapper>