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.
ocr/jyjz-system/jyjz-system-admin/target/classes/mapper/admin/DistionaryMapper.xml

82 lines
4.2 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.DistionaryMybatisDao">
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.Distionary">
<id column="ID" property="id" jdbcType="BIGINT"/>
<result column="DISTIONARYTYPEID" property="distionarytypeid" jdbcType="BIGINT"/>
<result column="DISTIONATYGROUPID" property="distionatygroupid" jdbcType="BIGINT"/>
<result column="CODENO" property="codeno" jdbcType="VARCHAR"/>
<result column="NAME" property="name" jdbcType="VARCHAR"/>
<result column="CONTENT" property="content" jdbcType="VARCHAR"/>
<result column="ENABLED" property="enabled" jdbcType="INTEGER"/>
<result column="SORTING" property="sorting" 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="WEIGHT" property="weight" jdbcType="INTEGER"/>
<result column="BACKUP" property="backup" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
ID AS id,
DISTIONARYTYPEID AS distionarytypeid,
DISTIONATYGROUPID AS distionatygroupid,
CODENO AS codeno,
NAME AS name,
CONTENT AS content,
ENABLED AS enabled,
SORTING AS sorting,
CREATEUSER AS createuser,
CREATEDATE AS createdate,
UPDATEUSER AS updateuser,
UPDATETIME AS updatetime,
WEIGHT AS weight,
BACKUP AS backup
</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="distionarytypeid != null"> and DISTIONARYTYPEID ${distionarytypeid.dataOp} ${distionarytypeid.likestar}#{distionarytypeid.value}${distionarytypeid.likeend}</if>
<if test="distionatygroupid != null"> and DISTIONATYGROUPID ${distionatygroupid.dataOp} ${distionatygroupid.likestar}#{distionatygroupid.value}${distionatygroupid.likeend}</if>
<if test="codeno != null"> and CODENO ${codeno.dataOp} ${codeno.likestar}#{codeno.value}${codeno.likeend}</if>
<if test="name != null"> and NAME ${name.dataOp} ${name.likestar}#{name.value}${name.likeend}</if>
<if test="content != null"> and CONTENT ${content.dataOp} ${content.likestar}#{content.value}${content.likeend}</if>
<if test="enabled != null"> and ENABLED ${enabled.dataOp} ${enabled.likestar}#{enabled.value}${enabled.likeend}</if>
<if test="sorting != null"> and SORTING ${sorting.dataOp} ${sorting.likestar}#{sorting.value}${sorting.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="weight != null"> and WEIGHT ${weight.dataOp} ${weight.likestar}#{weight.value}${weight.likeend}</if>
<if test="backup != null"> and BACKUP ${backup.dataOp} ${backup.likestar}#{backup.value}${backup.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>
<select id="listByGroupId" resultMap="BaseResultMap" parameterType="java.lang.Long">
SELECT
ID AS id,
DISTIONARYTYPEID AS distionarytypeid,
DISTIONATYGROUPID AS distionatygroupid,
CODENO AS codeno,
NAME AS name,
CONTENT AS content,
ENABLED AS enabled,
SORTING AS sorting,
CREATEUSER AS createuser,
CREATEDATE AS createdate,
UPDATEUSER AS updateuser,
UPDATETIME AS updatetime,
WEIGHT AS weight,
BACKUP AS backup
FROM S_DISTIONARY_T WHERE DISTIONATYGROUPID = #{id}
</select>
</mapper>