AppOrgSMapper.xml 2.22 KB
<?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.AppOrgSMapper">
  <resultMap id="BaseResultMap" type="com.zteits.pay.domain.AppOrg">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="org_id" jdbcType="VARCHAR" property="orgId" />
    <result column="org_name" jdbcType="VARCHAR" property="orgName" />
    <result column="sort_num" jdbcType="INTEGER" property="sortNum" />
    <result column="org_level" jdbcType="INTEGER" property="orgLevel" />
    <result column="lon_id" jdbcType="DECIMAL" property="lonId" />
    <result column="lat_id" jdbcType="DECIMAL" property="latId" />
    <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" />
    <result column="charge_account_judge" jdbcType="INTEGER" property="chargeAccountJudge" />
    <result column="judge_fee" jdbcType="BIGINT" property="judgeFee" />
    <result column="lon_id_max" jdbcType="VARCHAR" property="lonIdMax" />
    <result column="lon_id_min" jdbcType="VARCHAR" property="lonIdMin" />
    <result column="lat_id_max" jdbcType="VARCHAR" property="latIdMax" />
    <result column="lat_id_min" jdbcType="VARCHAR" property="latIdMin" />
    <result column="show_third_park" jdbcType="INTEGER" property="showThirdPark" />
    <result column="phone" jdbcType="VARCHAR" property="phone" />
  </resultMap>
  <sql id="Base_Column_List">
    id, org_id, org_name, sort_num, org_level, lon_id, lat_id, data_state, create_empid, 
    create_date, modfiy_empid, modfiy_date, charge_account_judge, judge_fee, lon_id_max,
    lon_id_min, lat_id_max, lat_id_min, show_third_park, phone
  </sql>
  <select id="selectAppOrgByVO" parameterType="com.zteits.pay.domain.AppOrg" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from app_org
    where data_state = 1
  </select>

</mapper>