Blame view

parking-module-bill/src/main/resources/mybatis/smapper/TbTailNumberLimitedRuleSMapper.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
  <?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.bill.mapper.smapper.TbTailNumberLimitedRuleSMapper">
    <resultMap id="BaseResultMap" type="com.zteits.bill.domain.TbTailNumberLimitedRule">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="city_code" jdbcType="BIGINT" property="cityCode" />
      <result column="city_name" jdbcType="VARCHAR" property="cityName" />
      <result column="limit_date" jdbcType="TIMESTAMP" property="limitDate" />
      <result column="is_limit" jdbcType="INTEGER" property="isLimit" />
      <result column="num" jdbcType="VARCHAR" property="num" />
      <result column="region" jdbcType="VARCHAR" property="region" />
      <result column="penalty" jdbcType="VARCHAR" property="penalty" />
      <result column="remarks" jdbcType="VARCHAR" property="remarks" />
      <result column="data_state" jdbcType="INTEGER" property="dataState" />
      <result column="create_empid" jdbcType="BIGINT" property="createEmpid" />
      <result column="create_name" jdbcType="VARCHAR" property="createName" />
      <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
      <result column="modify_empid" jdbcType="BIGINT" property="modifyEmpid" />
      <result column="modify_name" jdbcType="VARCHAR" property="modifyName" />
      <result column="modify_date" jdbcType="TIMESTAMP" property="modifyDate" />
    </resultMap>
    <sql id="Base_Column_List">
      id, city_code, city_name, limit_date, is_limit, num, region, penalty, remarks, data_state,
      create_empid, create_name, create_date, modify_empid, modify_name, modify_date
    </sql>
    <select id="queryTbTailNumberLimitedRule" parameterType="com.zteits.bill.domain.TbTailNumberLimitedRule" resultMap="BaseResultMap">
      select 
      <include refid="Base_Column_List" />
      from tb_tail_number_limited_rule
      where data_state = 1
      and city_code = #{cityCode}
      and limit_date = #{limitDate}
    </select>
  
  
  </mapper>