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.
82 lines
4.7 KiB
82 lines
4.7 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.UseronlineMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.Useronline">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="TOKEN" property="token" jdbcType="VARCHAR"/>
|
|
<result column="LOGINNAME" property="loginname" jdbcType="VARCHAR"/>
|
|
<result column="USERNAME" property="username" jdbcType="VARCHAR"/>
|
|
<result column="DEPARTID" property="departid" jdbcType="BIGINT"/>
|
|
<result column="DEPARTNAME" property="departname" jdbcType="VARCHAR"/>
|
|
<result column="USEX" property="usex" jdbcType="CHAR"/>
|
|
<result column="USERDESC" property="userdesc" jdbcType="VARCHAR"/>
|
|
<result column="MOBILE" property="mobile" jdbcType="VARCHAR"/>
|
|
<result column="BROWSER" property="browser" jdbcType="VARCHAR"/>
|
|
<result column="BROWSERVERSION" property="browserversion" jdbcType="VARCHAR"/>
|
|
<result column="PLATFORMTYPE" property="platformtype" jdbcType="VARCHAR"/>
|
|
<result column="PLATFORMSERIES" property="platformseries" jdbcType="VARCHAR"/>
|
|
<result column="PLATFORMVERSION" property="platformversion" jdbcType="VARCHAR"/>
|
|
<result column="REQUESTIP" property="requestip" jdbcType="VARCHAR"/>
|
|
<result column="CREATEDATE" property="createdate" jdbcType="BIGINT"/>
|
|
<result column="LASTTIME" property="lasttime" jdbcType="BIGINT"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
TOKEN AS token,
|
|
LOGINNAME AS loginname,
|
|
USERNAME AS username,
|
|
DEPARTID AS departid,
|
|
DEPARTNAME AS departname,
|
|
USEX AS usex,
|
|
USERDESC AS userdesc,
|
|
MOBILE AS mobile,
|
|
BROWSER AS browser,
|
|
BROWSERVERSION AS browserversion,
|
|
PLATFORMTYPE AS platformtype,
|
|
PLATFORMSERIES AS platformseries,
|
|
PLATFORMVERSION AS platformversion,
|
|
REQUESTIP AS requestip,
|
|
CREATEDATE AS createdate,
|
|
LASTTIME AS lasttime
|
|
</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="token != null"> and TOKEN ${token.dataOp} ${token.likestar}#{token.value}${token.likeend}</if>
|
|
<if test="loginname != null"> and LOGINNAME ${loginname.dataOp} ${loginname.likestar}#{loginname.value}${loginname.likeend}</if>
|
|
<if test="username != null"> and USERNAME ${username.dataOp} ${username.likestar}#{username.value}${username.likeend}</if>
|
|
<if test="departname != null"> and DEPARTNAME ${departname.dataOp} ${departname.likestar}#{departname.value}${departname.likeend}</if>
|
|
<if test="usex != null"> and USEX ${usex.dataOp} ${usex.likestar}#{usex.value}${usex.likeend}</if>
|
|
<if test="userdesc != null"> and USERDESC ${userdesc.dataOp} ${userdesc.likestar}#{userdesc.value}${userdesc.likeend}</if>
|
|
<if test="mobile != null"> and MOBILE ${mobile.dataOp} ${mobile.likestar}#{mobile.value}${mobile.likeend}</if>
|
|
<if test="browser != null"> and BROWSER ${browser.dataOp} ${browser.likestar}#{browser.value}${browser.likeend}</if>
|
|
<if test="browserversion != null"> and BROWSERVERSION ${browserversion.dataOp} ${browserversion.likestar}#{browserversion.value}${browserversion.likeend}</if>
|
|
<if test="platformtype != null"> and PLATFORMTYPE ${platformtype.dataOp} ${platformtype.likestar}#{platformtype.value}${platformtype.likeend}</if>
|
|
<if test="platformseries != null"> and PLATFORMSERIES ${platformseries.dataOp} ${platformseries.likestar}#{platformseries.value}${platformseries.likeend}</if>
|
|
<if test="platformversion != null"> and PLATFORMVERSION ${platformversion.dataOp} ${platformversion.likestar}#{platformversion.value}${platformversion.likeend}</if>
|
|
<if test="requestip != null"> and REQUESTIP ${requestip.dataOp} ${requestip.likestar}#{requestip.value}${requestip.likeend}</if>
|
|
<if test="createdate != null"> and CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
<if test="lasttime != null"> and LASTTIME ${lasttime.dataOp} ${lasttime.likestar}#{lasttime.value}${lasttime.likeend}</if>
|
|
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
|
<if test="listdept != null">
|
|
and DEPARTID in
|
|
<foreach collection="listdept.value" item="item" index="index" open="(" separator="," close=")" >
|
|
#{item}
|
|
</foreach>
|
|
</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>
|
|
|
|
<!-- 查询机构子集的机构信息 end-->
|
|
<select id="listTokenid" resultType="java.lang.String">
|
|
select TOKEN from S_USERONLINE_T
|
|
</select>
|
|
</mapper>
|