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.
84 lines
4.7 KiB
84 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.InformationMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.Information">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="USERID" property="userid" jdbcType="BIGINT"/>
|
|
<result column="CARDTYPE" property="cardtype" jdbcType="INTEGER"/>
|
|
<result column="CARD" property="card" jdbcType="VARCHAR"/>
|
|
<result column="UBIRTHDAY" property="ubirthday" jdbcType="BIGINT"/>
|
|
<result column="UADDRESS" property="uaddress" jdbcType="VARCHAR"/>
|
|
<result column="NATIONID" property="nationid" jdbcType="BIGINT"/>
|
|
<result column="USERTYPE" property="usertype" jdbcType="INTEGER"/>
|
|
<result column="MARKES" property="markes" jdbcType="VARCHAR"/>
|
|
<result column="RECORD" property="record" jdbcType="VARCHAR"/>
|
|
<result column="POLITICS" property="politics" jdbcType="VARCHAR"/>
|
|
<result column="PROVINCEID" property="provinceid" jdbcType="BIGINT"/>
|
|
<result column="CITYID" property="cityid" jdbcType="BIGINT"/>
|
|
<result column="AREAID" property="areaid" jdbcType="BIGINT"/>
|
|
<result column="CARDBEF" property="cardbef" jdbcType="VARCHAR"/>
|
|
<result column="CARDAFT" property="cardaft" jdbcType="VARCHAR"/>
|
|
<result column="IDPHOTO" property="idphoto" jdbcType="VARCHAR"/>
|
|
<result column="EDUPHOTO" property="eduphoto" jdbcType="VARCHAR"/>
|
|
<result column="IDCARD" property="idcard" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
USERID AS userid,
|
|
CARDTYPE AS cardtype,
|
|
CARD AS card,
|
|
UBIRTHDAY AS ubirthday,
|
|
UADDRESS AS uaddress,
|
|
NATIONID AS nationid,
|
|
USERTYPE AS usertype,
|
|
MARKES AS markes,
|
|
RECORD AS record,
|
|
POLITICS AS politics,
|
|
PROVINCEID AS provinceid,
|
|
CITYID AS cityid,
|
|
AREAID AS areaid,
|
|
CARDBEF AS cardbef,
|
|
CARDAFT AS cardaft,
|
|
IDPHOTO AS idphoto,
|
|
EDUPHOTO AS eduphoto,
|
|
IDCARD AS idcard
|
|
</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="cardtype != null"> and CARDTYPE ${cardtype.dataOp} ${cardtype.likestar}#{cardtype.value}${cardtype.likeend}</if>
|
|
<if test="card != null"> and CARD ${card.dataOp} ${card.likestar}#{card.value}${card.likeend}</if>
|
|
<if test="ubirthday != null"> and UBIRTHDAY ${ubirthday.dataOp} ${ubirthday.likestar}#{ubirthday.value}${ubirthday.likeend}</if>
|
|
<if test="uaddress != null"> and UADDRESS ${uaddress.dataOp} ${uaddress.likestar}#{uaddress.value}${uaddress.likeend}</if>
|
|
<if test="nationid != null"> and NATIONID ${nationid.dataOp} ${nationid.likestar}#{nationid.value}${nationid.likeend}</if>
|
|
<if test="usertype != null"> and USERTYPE ${usertype.dataOp} ${usertype.likestar}#{usertype.value}${usertype.likeend}</if>
|
|
<if test="markes != null"> and MARKES ${markes.dataOp} ${markes.likestar}#{markes.value}${markes.likeend}</if>
|
|
<if test="record != null"> and RECORD ${record.dataOp} ${record.likestar}#{record.value}${record.likeend}</if>
|
|
<if test="politics != null"> and POLITICS ${politics.dataOp} ${politics.likestar}#{politics.value}${politics.likeend}</if>
|
|
<if test="provinceid != null"> and PROVINCEID ${provinceid.dataOp} ${provinceid.likestar}#{provinceid.value}${provinceid.likeend}</if>
|
|
<if test="cityid != null"> and CITYID ${cityid.dataOp} ${cityid.likestar}#{cityid.value}${cityid.likeend}</if>
|
|
<if test="areaid != null"> and AREAID ${areaid.dataOp} ${areaid.likestar}#{areaid.value}${areaid.likeend}</if>
|
|
<if test="cardbef != null"> and CARDBEF ${cardbef.dataOp} ${cardbef.likestar}#{cardbef.value}${cardbef.likeend}</if>
|
|
<if test="cardaft != null"> and CARDAFT ${cardaft.dataOp} ${cardaft.likestar}#{cardaft.value}${cardaft.likeend}</if>
|
|
<if test="idphoto != null"> and IDPHOTO ${idphoto.dataOp} ${idphoto.likestar}#{idphoto.value}${idphoto.likeend}</if>
|
|
<if test="eduphoto != null"> and EDUPHOTO ${eduphoto.dataOp} ${eduphoto.likestar}#{eduphoto.value}${eduphoto.likeend}</if>
|
|
<if test="idcard != null"> and IDCARD ${idcard.dataOp} ${idcard.likestar}#{idcard.value}${idcard.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>
|