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.
85 lines
5.1 KiB
85 lines
5.1 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.TenantMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.Tenant">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="NAME" property="name" jdbcType="VARCHAR"/>
|
|
<result column="STARTDATE" property="startdate" jdbcType="BIGINT"/>
|
|
<result column="ENDDATE" property="enddate" jdbcType="BIGINT"/>
|
|
<result column="STATUS" property="status" jdbcType="INTEGER"/>
|
|
<result column="TRADE" property="trade" jdbcType="VARCHAR"/>
|
|
<result column="COMPANYSIZE" property="companysize" jdbcType="VARCHAR"/>
|
|
<result column="COMPANYADDRESS" property="companyaddress" jdbcType="VARCHAR"/>
|
|
<result column="COMPANYLOGO" property="companylogo" jdbcType="VARCHAR"/>
|
|
<result column="COMPANTNO" property="compantno" jdbcType="VARCHAR"/>
|
|
<result column="COMPANYPLACE" property="companyplace" jdbcType="VARCHAR"/>
|
|
<result column="DOMAIN" property="domain" jdbcType="VARCHAR"/>
|
|
<result column="BACKIMG" property="backimg" jdbcType="VARCHAR"/>
|
|
<result column="APPLYADMIN" property="applyadmin" jdbcType="INTEGER"/>
|
|
<result column="CREATEUSER" property="createuser" jdbcType="VARCHAR"/>
|
|
<result column="CREATEDATE" property="createdate" jdbcType="BIGINT"/>
|
|
<result column="UPDATEUSER" property="updateuser" jdbcType="VARCHAR"/>
|
|
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
|
<result column="OTHERNO" property="otherno" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
NAME AS name,
|
|
STARTDATE AS startdate,
|
|
ENDDATE AS enddate,
|
|
STATUS AS status,
|
|
TRADE AS trade,
|
|
COMPANYSIZE AS companysize,
|
|
COMPANYADDRESS AS companyaddress,
|
|
COMPANYLOGO AS companylogo,
|
|
COMPANTNO AS compantno,
|
|
COMPANYPLACE AS companyplace,
|
|
DOMAIN AS domain,
|
|
BACKIMG AS backimg,
|
|
APPLYADMIN AS applyadmin,
|
|
CREATEUSER AS createuser,
|
|
CREATEDATE AS createdate,
|
|
UPDATEUSER AS updateuser,
|
|
UPDATETIME AS updatetime,
|
|
OTHERNO AS otherno
|
|
</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="name != null"> and NAME ${name.dataOp} ${name.likestar}#{name.value}${name.likeend}</if>
|
|
<if test="startdate != null"> and STARTDATE ${startdate.dataOp} ${startdate.likestar}#{startdate.value}${startdate.likeend}</if>
|
|
<if test="enddate != null"> and ENDDATE ${enddate.dataOp} ${enddate.likestar}#{enddate.value}${enddate.likeend}</if>
|
|
<if test="status != null"> and STATUS ${status.dataOp} ${status.likestar}#{status.value}${status.likeend}</if>
|
|
<if test="trade != null"> and TRADE ${trade.dataOp} ${trade.likestar}#{trade.value}${trade.likeend}</if>
|
|
<if test="companysize != null"> and COMPANYSIZE ${companysize.dataOp} ${companysize.likestar}#{companysize.value}${companysize.likeend}</if>
|
|
<if test="companyaddress != null"> and COMPANYADDRESS ${companyaddress.dataOp} ${companyaddress.likestar}#{companyaddress.value}${companyaddress.likeend}</if>
|
|
<if test="companylogo != null"> and COMPANYLOGO ${companylogo.dataOp} ${companylogo.likestar}#{companylogo.value}${companylogo.likeend}</if>
|
|
<if test="compantno != null"> and COMPANTNO ${compantno.dataOp} ${compantno.likestar}#{compantno.value}${compantno.likeend}</if>
|
|
<if test="companyplace != null"> and COMPANYPLACE ${companyplace.dataOp} ${companyplace.likestar}#{companyplace.value}${companyplace.likeend}</if>
|
|
<if test="domain != null"> and DOMAIN ${domain.dataOp} ${domain.likestar}#{domain.value}${domain.likeend}</if>
|
|
<if test="backimg != null"> and BACKIMG ${backimg.dataOp} ${backimg.likestar}#{backimg.value}${backimg.likeend}</if>
|
|
<if test="applyadmin != null"> and APPLYADMIN ${applyadmin.dataOp} ${applyadmin.likestar}#{applyadmin.value}${applyadmin.likeend}</if>
|
|
<if test="createuser != null"> and CREATEUSER ${createuser.dataOp} ${createuser.likestar}#{createuser.value}${createuser.likeend}</if>
|
|
<if test="createdate != null"> and CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
<if test="updateuser != null"> and UPDATEUSER ${updateuser.dataOp} ${updateuser.likestar}#{updateuser.value}${updateuser.likeend}</if>
|
|
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
|
<if test="otherno != null"> and OTHERNO ${otherno.dataOp} ${otherno.likestar}#{otherno.value}${otherno.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>
|