Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
<?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="com.llsfw.webgen.mapper.standard.permissions.TmPortalMapper">
<resultMap id="BaseResultMap" type="com.llsfw.webgen.model.standard.permissions.TmPortal">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
<id column="FUNCTION_CODE" jdbcType="VARCHAR" property="functionCode" />
<id column="PORTAL_CODE" jdbcType="VARCHAR" property="portalCode" />
<result column="PORTAL_TITLE" jdbcType="VARCHAR" property="portalTitle" />
<result column="PORTAL_HEIGHT" jdbcType="DECIMAL" property="portalHeight" />
<result column="PORTAL_URL" jdbcType="VARCHAR" property="portalUrl" />
<result column="CREATE_BY" jdbcType="VARCHAR" property="createBy" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
FUNCTION_CODE, PORTAL_CODE, PORTAL_TITLE, PORTAL_HEIGHT, PORTAL_URL, CREATE_BY, CREATE_DATE
</sql>
<select id="selectByExample" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortalCriteria" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from TM_PORTAL
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortalKey" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
select
<include refid="Base_Column_List" />
from TM_PORTAL
where FUNCTION_CODE = #{functionCode,jdbcType=VARCHAR}
and PORTAL_CODE = #{portalCode,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortalKey">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
delete from TM_PORTAL
where FUNCTION_CODE = #{functionCode,jdbcType=VARCHAR}
and PORTAL_CODE = #{portalCode,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortalCriteria">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
delete from TM_PORTAL
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortal">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
insert into TM_PORTAL (FUNCTION_CODE, PORTAL_CODE, PORTAL_TITLE,
PORTAL_HEIGHT, PORTAL_URL, CREATE_BY,
CREATE_DATE)
values (#{functionCode,jdbcType=VARCHAR}, #{portalCode,jdbcType=VARCHAR}, #{portalTitle,jdbcType=VARCHAR},
#{portalHeight,jdbcType=DECIMAL}, #{portalUrl,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createDate,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortal">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
insert into TM_PORTAL
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="functionCode != null">
FUNCTION_CODE,
</if>
<if test="portalCode != null">
PORTAL_CODE,
</if>
<if test="portalTitle != null">
PORTAL_TITLE,
</if>
<if test="portalHeight != null">
PORTAL_HEIGHT,
</if>
<if test="portalUrl != null">
PORTAL_URL,
</if>
<if test="createBy != null">
CREATE_BY,
</if>
<if test="createDate != null">
CREATE_DATE,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="functionCode != null">
#{functionCode,jdbcType=VARCHAR},
</if>
<if test="portalCode != null">
#{portalCode,jdbcType=VARCHAR},
</if>
<if test="portalTitle != null">
#{portalTitle,jdbcType=VARCHAR},
</if>
<if test="portalHeight != null">
#{portalHeight,jdbcType=DECIMAL},
</if>
<if test="portalUrl != null">
#{portalUrl,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
#{createDate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortalCriteria" resultType="java.lang.Integer">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
select count(*) from TM_PORTAL
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
update TM_PORTAL
<set>
<if test="record.functionCode != null">
FUNCTION_CODE = #{record.functionCode,jdbcType=VARCHAR},
</if>
<if test="record.portalCode != null">
PORTAL_CODE = #{record.portalCode,jdbcType=VARCHAR},
</if>
<if test="record.portalTitle != null">
PORTAL_TITLE = #{record.portalTitle,jdbcType=VARCHAR},
</if>
<if test="record.portalHeight != null">
PORTAL_HEIGHT = #{record.portalHeight,jdbcType=DECIMAL},
</if>
<if test="record.portalUrl != null">
PORTAL_URL = #{record.portalUrl,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null">
CREATE_DATE = #{record.createDate,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
update TM_PORTAL
set FUNCTION_CODE = #{record.functionCode,jdbcType=VARCHAR},
PORTAL_CODE = #{record.portalCode,jdbcType=VARCHAR},
PORTAL_TITLE = #{record.portalTitle,jdbcType=VARCHAR},
PORTAL_HEIGHT = #{record.portalHeight,jdbcType=DECIMAL},
PORTAL_URL = #{record.portalUrl,jdbcType=VARCHAR},
CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
CREATE_DATE = #{record.createDate,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortal">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
update TM_PORTAL
<set>
<if test="portalTitle != null">
PORTAL_TITLE = #{portalTitle,jdbcType=VARCHAR},
</if>
<if test="portalHeight != null">
PORTAL_HEIGHT = #{portalHeight,jdbcType=DECIMAL},
</if>
<if test="portalUrl != null">
PORTAL_URL = #{portalUrl,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
CREATE_BY = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
</if>
</set>
where FUNCTION_CODE = #{functionCode,jdbcType=VARCHAR}
and PORTAL_CODE = #{portalCode,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.llsfw.webgen.model.standard.permissions.TmPortal">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Jan 10 13:50:11 CST 2016.
-->
update TM_PORTAL
set PORTAL_TITLE = #{portalTitle,jdbcType=VARCHAR},
PORTAL_HEIGHT = #{portalHeight,jdbcType=DECIMAL},
PORTAL_URL = #{portalUrl,jdbcType=VARCHAR},
CREATE_BY = #{createBy,jdbcType=VARCHAR},
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}
where FUNCTION_CODE = #{functionCode,jdbcType=VARCHAR}
and PORTAL_CODE = #{portalCode,jdbcType=VARCHAR}
</update>
</mapper>