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.
97 lines
5.8 KiB
97 lines
5.8 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.cms.dataDao.SitSpreaduserMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.SitSpreaduser">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="USERNAME" property="username" jdbcType="VARCHAR"/>
|
|
<result column="USEX" property="usex" jdbcType="CHAR"/>
|
|
<result column="USERDESC" property="userdesc" jdbcType="VARCHAR"/>
|
|
<result column="CLUE_CITY" property="clueCity" jdbcType="VARCHAR"/>
|
|
<result column="CLUE_MOBILE" property="clueMobile" jdbcType="VARCHAR"/>
|
|
<result column="HOUSE_AREA" property="houseArea" jdbcType="VARCHAR"/>
|
|
<result column="CLUE_AGE" property="clueAge" jdbcType="VARCHAR"/>
|
|
<result column="CLUE_ADDRESS" property="clueAddress" jdbcType="VARCHAR"/>
|
|
<result column="ISREPEAT" property="isrepeat" jdbcType="INTEGER"/>
|
|
<result column="CLUE_REMARK" property="clueRemark" jdbcType="VARCHAR"/>
|
|
<result column="MOBILE" property="mobile" jdbcType="VARCHAR"/>
|
|
<result column="EMAIL" property="email" jdbcType="VARCHAR"/>
|
|
<result column="USERICON" property="usericon" jdbcType="VARCHAR"/>
|
|
<result column="USERTYPE" property="usertype" jdbcType="BIGINT"/>
|
|
<result column="PERFECT" property="perfect" jdbcType="INTEGER"/>
|
|
<result column="FROMSIT" property="fromsit" jdbcType="BIGINT"/>
|
|
<result column="CREATEDATE" property="createdate" jdbcType="BIGINT"/>
|
|
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
|
<result column="ISUSE" property="isuse" jdbcType="INTEGER"/>
|
|
<result column="ISSEND" property="issend" jdbcType="INTEGER"/>
|
|
<result column="DEPTID" property="deptid" jdbcType="BIGINT"/>
|
|
<result column="UPDATEUSER" property="updateuser" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
USERNAME AS username,
|
|
USEX AS usex,
|
|
USERDESC AS userdesc,
|
|
CLUE_CITY AS clueCity,
|
|
CLUE_MOBILE AS clueMobile,
|
|
HOUSE_AREA AS houseArea,
|
|
CLUE_AGE AS clueAge,
|
|
CLUE_ADDRESS AS clueAddress,
|
|
ISREPEAT AS isrepeat,
|
|
CLUE_REMARK AS clueRemark,
|
|
MOBILE AS mobile,
|
|
EMAIL AS email,
|
|
USERICON AS usericon,
|
|
USERTYPE AS usertype,
|
|
PERFECT AS perfect,
|
|
FROMSIT AS fromsit,
|
|
CREATEDATE AS createdate,
|
|
UPDATETIME AS updatetime,
|
|
ISUSE AS isuse,
|
|
ISSEND AS issend,
|
|
DEPTID AS deptid,
|
|
UPDATEUSER AS updateuser
|
|
</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="username != null"> and USERNAME ${username.dataOp} ${username.likestar}#{username.value}${username.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="clueCity != null"> and CLUE_CITY ${clueCity.dataOp} ${clueCity.likestar}#{clueCity.value}${clueCity.likeend}</if>
|
|
<if test="clueMobile != null"> and CLUE_MOBILE ${clueMobile.dataOp} ${clueMobile.likestar}#{clueMobile.value}${clueMobile.likeend}</if>
|
|
<if test="houseArea != null"> and HOUSE_AREA ${houseArea.dataOp} ${houseArea.likestar}#{houseArea.value}${houseArea.likeend}</if>
|
|
<if test="clueAge != null"> and CLUE_AGE ${clueAge.dataOp} ${clueAge.likestar}#{clueAge.value}${clueAge.likeend}</if>
|
|
<if test="clueAddress != null"> and CLUE_ADDRESS ${clueAddress.dataOp} ${clueAddress.likestar}#{clueAddress.value}${clueAddress.likeend}</if>
|
|
<if test="isrepeat != null"> and ISREPEAT ${isrepeat.dataOp} ${isrepeat.likestar}#{isrepeat.value}${isrepeat.likeend}</if>
|
|
<if test="clueRemark != null"> and CLUE_REMARK ${clueRemark.dataOp} ${clueRemark.likestar}#{clueRemark.value}${clueRemark.likeend}</if>
|
|
<if test="mobile != null"> and MOBILE ${mobile.dataOp} ${mobile.likestar}#{mobile.value}${mobile.likeend}</if>
|
|
<if test="email != null"> and EMAIL ${email.dataOp} ${email.likestar}#{email.value}${email.likeend}</if>
|
|
<if test="usericon != null"> and USERICON ${usericon.dataOp} ${usericon.likestar}#{usericon.value}${usericon.likeend}</if>
|
|
<if test="usertype != null"> and USERTYPE ${usertype.dataOp} ${usertype.likestar}#{usertype.value}${usertype.likeend}</if>
|
|
<if test="perfect != null"> and PERFECT ${perfect.dataOp} ${perfect.likestar}#{perfect.value}${perfect.likeend}</if>
|
|
<if test="fromsit != null"> and FROMSIT ${fromsit.dataOp} ${fromsit.likestar}#{fromsit.value}${fromsit.likeend}</if>
|
|
<if test="createdate != null"> and CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
|
<if test="isuse != null"> and ISUSE ${isuse.dataOp} ${isuse.likestar}#{isuse.value}${isuse.likeend}</if>
|
|
<if test="issend != null"> and ISSEND ${issend.dataOp} ${issend.likestar}#{issend.value}${issend.likeend}</if>
|
|
<if test="deptid != null"> and DEPTID ${deptid.dataOp} ${deptid.likestar}#{deptid.value}${deptid.likeend}</if>
|
|
<if test="updateuser != null"> and UPDATEUSER ${updateuser.dataOp} ${updateuser.likestar}#{updateuser.value}${updateuser.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>
|
|
|
|
</mapper>
|