Blame view

parking-module-pay/src/main/resources/mybatis/smapper/AppVersionSMapper.xml 1.58 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.AppVersionSMapper">
    <resultMap id="BaseResultMap" type="com.zteits.pay.domain.AppVersion">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="app_type" jdbcType="INTEGER" property="appType" />
      <result column="app_name" jdbcType="VARCHAR" property="appName" />
      <result column="app_url" jdbcType="VARCHAR" property="appUrl" />
      <result column="down_type" jdbcType="INTEGER" property="downType" />
      <result column="version" jdbcType="VARCHAR" property="version" />
      <result column="remark" jdbcType="VARCHAR" property="remark" />
      <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, app_type, app_name, app_url, down_type, version, remark, data_state, create_empid, 
      create_date, modfiy_empid, modfiy_date
    </sql>
    <select id="checkVersionByAppType" parameterType="java.lang.Integer" resultMap="BaseResultMap">
      select 
      <include refid="Base_Column_List" />
      from app_version
      where data_state = 1
          and app_type = #{appType,jdbcType=INTEGER}
    </select>
  </mapper>