WechatConfigMapper.xml 2.38 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.wechat.mapper.WechatConfigMapper" >
  <resultMap id="BaseResultMap" type="cn.com.glsx.dj.wechat.model.WechatConfig" >
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="wechat_name" property="wechatName" jdbcType="VARCHAR" />
    <result column="wechat_icon" property="wechatIcon"/>
    <result column="wechat_id" property="wechatId" jdbcType="VARCHAR" />
    <result column="wechat_appid" property="wechatAppid" jdbcType="VARCHAR" />
    <result column="wechat_appsecret" property="wechatAppsecret" jdbcType="VARCHAR" />
    <result column="wechat_token" property="wechatToken" jdbcType="VARCHAR" />
    <result column="wechat_aes_key" property="wechatAesKey" jdbcType="VARCHAR" />
    <result column="wechat_qrcode" property="wechatQrcode" jdbcType="VARCHAR" />
    <result column="app_type" property="appType"/>
    <result column="customer_type" property="customerType"/>
    <result column="auth_flag" property="authFlag"/>
    <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" >
    <!--
      WARNING - @mbg.generated
    -->
    id, wechat_name, wechat_id, wechat_appid, wechat_appsecret,wechat_token,wechat_aes_key, wechat_qrcode, 
    created_by, created_date, updated_by, updated_date, deleted_flag
  </sql>
  
  <select id="list" parameterType="cn.com.glsx.dj.wechat.model.WechatConfig" resultMap="BaseResultMap">
  	select id, wechat_name,wechat_icon, wechat_id, wechat_appid,app_type,customer_type,auth_flag from dj_wechat_config
  	<where>
  		deleted_flag = 'N'
  		<if test="appType != null and appType !=''">
  			and app_type = #{appType}
  		</if>
  		<if test="customerType != null and customerType !=''">
  			and customer_type = #{customerType}
  		</if>
  		<if test="authFlag != null and authFlag !=''">
  			and auth_flag = #{authFlag}
  		</if>
  	</where>
  </select>
</mapper>