Blame view

parking-module-system/src/main/resources/mybatis/smapper/SysCodeSMapper.xml 1.24 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
  <?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.sys.mapper.smapper.SysCodeSMapper">
    <resultMap id="BaseResultMap" type="com.zteits.sys.domain.SysCode">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="sys_code" jdbcType="VARCHAR" property="sysCode" />
      <result column="sys_name" jdbcType="VARCHAR" property="sysName" />
      <result column="data_state" jdbcType="TINYINT" 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, sys_code, sys_name, data_state, create_empid, create_date, modfiy_empid, modfiy_date
    </sql>
    <select id="selectSysBySysCode" parameterType="java.lang.String" resultMap="BaseResultMap">
      select 
      <include refid="Base_Column_List" />
      from sys_code
      where sys_code = #{sysCode}
      and data_state=1
    </select>
    
    
    
  </mapper>