You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
4.6 KiB
78 lines
4.6 KiB
<?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.jyjz.xiaoyao.admin.dataDao.OauthuserMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.Oauthuser">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="OAUTHTYPE" property="oauthtype" jdbcType="VARCHAR"/>
|
|
<result column="OAUTHID" property="oauthid" jdbcType="VARCHAR"/>
|
|
<result column="AGENTID" property="agentid" jdbcType="VARCHAR"/>
|
|
<result column="NICKNAME" property="nickname" jdbcType="VARCHAR"/>
|
|
<result column="SEX" property="sex" jdbcType="INTEGER"/>
|
|
<result column="CITY" property="city" jdbcType="VARCHAR"/>
|
|
<result column="COUNTRY" property="country" jdbcType="VARCHAR"/>
|
|
<result column="PROVINCE" property="province" jdbcType="VARCHAR"/>
|
|
<result column="LANGUAGE" property="language" jdbcType="VARCHAR"/>
|
|
<result column="HEADIMGURL" property="headimgurl" jdbcType="VARCHAR"/>
|
|
<result column="SUBSCRIBETIME" property="subscribetime" jdbcType="BIGINT"/>
|
|
<result column="SUBSCRIBESCENE" property="subscribescene" jdbcType="VARCHAR"/>
|
|
<result column="USERID" property="userid" jdbcType="BIGINT"/>
|
|
<result column="LOGINNAME" property="loginname" jdbcType="VARCHAR"/>
|
|
<result column="CREATETIME" property="createtime" jdbcType="BIGINT"/>
|
|
<result column="UNTIME" property="untime" jdbcType="BIGINT"/>
|
|
<result column="SYSTYPE" property="systype" jdbcType="INTEGER"/>
|
|
<result column="USERFROM" property="userfrom" jdbcType="INTEGER"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
OAUTHTYPE AS oauthtype,
|
|
OAUTHID AS oauthid,
|
|
AGENTID AS agentid,
|
|
NICKNAME AS nickname,
|
|
SEX AS sex,
|
|
CITY AS city,
|
|
COUNTRY AS country,
|
|
PROVINCE AS province,
|
|
LANGUAGE AS language,
|
|
HEADIMGURL AS headimgurl,
|
|
SUBSCRIBETIME AS subscribetime,
|
|
SUBSCRIBESCENE AS subscribescene,
|
|
USERID AS userid,
|
|
LOGINNAME AS loginname,
|
|
CREATETIME AS createtime,
|
|
UNTIME AS untime,
|
|
SYSTYPE AS systype,
|
|
USERFROM AS userfrom
|
|
</sql>
|
|
|
|
<sql id="Base_Where">
|
|
<where>
|
|
<trim prefixOverrides="and|or">
|
|
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
|
<if test="oauthtype != null"> and OAUTHTYPE ${oauthtype.dataOp} ${oauthtype.likestar}#{oauthtype.value}${oauthtype.likeend}</if>
|
|
<if test="oauthid != null"> and OAUTHID ${oauthid.dataOp} ${oauthid.likestar}#{oauthid.value}${oauthid.likeend}</if>
|
|
<if test="agentid != null"> and AGENTID ${agentid.dataOp} ${agentid.likestar}#{agentid.value}${agentid.likeend}</if>
|
|
<if test="nickname != null"> and NICKNAME ${nickname.dataOp} ${nickname.likestar}#{nickname.value}${nickname.likeend}</if>
|
|
<if test="sex != null"> and SEX ${sex.dataOp} ${sex.likestar}#{sex.value}${sex.likeend}</if>
|
|
<if test="city != null"> and CITY ${city.dataOp} ${city.likestar}#{city.value}${city.likeend}</if>
|
|
<if test="country != null"> and COUNTRY ${country.dataOp} ${country.likestar}#{country.value}${country.likeend}</if>
|
|
<if test="province != null"> and PROVINCE ${province.dataOp} ${province.likestar}#{province.value}${province.likeend}</if>
|
|
<if test="language != null"> and LANGUAGE ${language.dataOp} ${language.likestar}#{language.value}${language.likeend}</if>
|
|
<if test="headimgurl != null"> and HEADIMGURL ${headimgurl.dataOp} ${headimgurl.likestar}#{headimgurl.value}${headimgurl.likeend}</if>
|
|
<if test="subscribetime != null"> and SUBSCRIBETIME ${subscribetime.dataOp} ${subscribetime.likestar}#{subscribetime.value}${subscribetime.likeend}</if>
|
|
<if test="subscribescene != null"> and SUBSCRIBESCENE ${subscribescene.dataOp} ${subscribescene.likestar}#{subscribescene.value}${subscribescene.likeend}</if>
|
|
<if test="loginname != null"> and LOGINNAME ${loginname.dataOp} ${loginname.likestar}#{loginname.value}${loginname.likeend}</if>
|
|
<if test="createtime != null"> and CREATETIME ${createtime.dataOp} ${createtime.likestar}#{createtime.value}${createtime.likeend}</if>
|
|
<if test="untime != null"> and UNTIME ${untime.dataOp} ${untime.likestar}#{untime.value}${untime.likeend}</if>
|
|
<if test="systype != null"> and SYSTYPE ${systype.dataOp} ${systype.likestar}#{systype.value}${systype.likeend}</if>
|
|
<if test="userfrom != null"> and USERFROM ${userfrom.dataOp} ${userfrom.likestar}#{userfrom.value}${userfrom.likeend}</if>
|
|
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
|
</trim>
|
|
</where>
|
|
<if test="page != null">
|
|
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
|
limit ${page.start}, ${page.Pagesize}
|
|
</if>
|
|
</sql>
|
|
|
|
</mapper>
|