RopAppAccessMapper.xml 1.88 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="cn.com.glsx.dj.system.mapper.RopAppAccessMapper" >
  <resultMap id="BaseResultMap" type="cn.com.glsx.dj.system.model.RopAppAccess" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="APP_ID" property="appId" jdbcType="VARCHAR" />
    <result column="APP_NAME" property="appName" jdbcType="VARCHAR" />
    <result column="APP_PRINCIPAL" property="appPrincipal" jdbcType="VARCHAR" />
    <result column="APP_KEY" property="appKey" jdbcType="VARCHAR" />
    <result column="APP_SECRET" property="appSecret" jdbcType="VARCHAR" />
    <result column="APP_STATUS" property="appStatus" jdbcType="INTEGER" />
    <result column="created_by" property="createdBy" jdbcType="VARCHAR" />
    <result column="created_date" property="createdDate" jdbcType="TIMESTAMP" />
    <result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
    <result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
    <result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, APP_ID, APP_NAME, APP_PRINCIPAL, APP_KEY, APP_SECRET, APP_STATUS, created_by, 
    created_date, updated_by, updated_date, deleted_flag
  </sql>
  
  <select id="search" parameterType="cn.com.glsx.dj.system.model.RopAppAccess" resultMap="BaseResultMap">
  	select
  	<include refid="Base_Column_List"/>
  	from
  	dj_system_rop_app_access
  	<where>
  		<if test="appId != null">
  			APP_ID = #{appId}
  		</if>
  		<if test="appName != null">
  			and APP_NAME = #{appName}
  		</if>
  		<if test="appPrincipal != null">
  			and APP_PRINCIPAL = #{appPrincipal}
  		</if>
  		<if test="appStatus != null">
  			and APP_STATUS = #{appStatus}
  		</if>
  	</where>
  </select>
</mapper>