TbTailNumberLimitedCitySMapper.xml
1.88 KB
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.bill.mapper.smapper.TbTailNumberLimitedCitySMapper">
<resultMap id="BaseResultMap" type="com.zteits.bill.domain.TbTailNumberLimitedCity">
<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="city_rule" jdbcType="INTEGER" property="cityRule" />
<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, city_rule, data_state, create_empid, create_name, create_date,
modify_empid, modify_name, modify_date
</sql>
<!-- 查询城市是否存在限号 -->
<select id="queryTbTailNumberLimitedCity" parameterType="com.zteits.bill.domain.TbTailNumberLimitedCity" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_tail_number_limited_city
where data_state = 1
and city_code = #{cityCode,jdbcType=BIGINT}
</select>
<!-- 查询存在限号的城市 -->
<select id="queryTbTailNumberLimitedCityList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_tail_number_limited_city
where data_state = 1
</select>
</mapper>