|
@@ -1,461 +0,0 @@
|
|
|
-<?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.gyee.frame.mapper.auto.Warning2Mapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Warning2">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
- <result column="levelId" jdbcType="VARCHAR" property="levelid" />
|
|
|
- <result column="manufacturerCode" jdbcType="VARCHAR" property="manufacturercode" />
|
|
|
- <result column="englishText" jdbcType="VARCHAR" property="englishtext" />
|
|
|
- <result column="chineseText" jdbcType="VARCHAR" property="chinesetext" />
|
|
|
- <result column="parentId" jdbcType="VARCHAR" property="parentid" />
|
|
|
- <result column="isLeaf" jdbcType="SMALLINT" property="isleaf" />
|
|
|
- <result column="sequenceNumber" jdbcType="INTEGER" property="sequencenumber" />
|
|
|
- <result column="characteristic" jdbcType="VARCHAR" property="characteristic" />
|
|
|
- <result column="modelId" jdbcType="VARCHAR" property="modelid" />
|
|
|
- <result column="codeName" jdbcType="VARCHAR" property="codename" />
|
|
|
- <result column="ednaValue" jdbcType="INTEGER" property="ednavalue" />
|
|
|
- <result column="display" jdbcType="INTEGER" property="display" />
|
|
|
- <result column="warningClassifyId" jdbcType="VARCHAR" property="warningclassifyid" />
|
|
|
- <result column="isreset" jdbcType="DECIMAL" property="isreset" />
|
|
|
- <result column="standardTime" jdbcType="DECIMAL" property="standardtime" />
|
|
|
- <result column="warningtypeid" jdbcType="VARCHAR" property="warningtypeid" />
|
|
|
- </resultMap>
|
|
|
- <sql id="Example_Where_Clause">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- <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 - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- <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 - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- id, levelId, manufacturerCode, englishText, chineseText, parentId, isLeaf, sequenceNumber,
|
|
|
- characteristic, modelId, codeName, ednaValue, display, warningClassifyId, isreset,
|
|
|
- standardTime, warningtypeid
|
|
|
- </sql>
|
|
|
- <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Warning2Example" resultMap="BaseResultMap">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- select
|
|
|
- <if test="distinct">
|
|
|
- distinct
|
|
|
- </if>
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from warning2
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- <if test="orderByClause != null">
|
|
|
- order by ${orderByClause}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from warning2
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- delete from warning2
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Warning2Example">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- delete from warning2
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.gyee.frame.model.auto.Warning2">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- insert into warning2 (id, levelId, manufacturerCode,
|
|
|
- englishText, chineseText, parentId,
|
|
|
- isLeaf, sequenceNumber, characteristic,
|
|
|
- modelId, codeName, ednaValue,
|
|
|
- display, warningClassifyId, isreset,
|
|
|
- standardTime, warningtypeid)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{levelid,jdbcType=VARCHAR}, #{manufacturercode,jdbcType=VARCHAR},
|
|
|
- #{englishtext,jdbcType=VARCHAR}, #{chinesetext,jdbcType=VARCHAR}, #{parentid,jdbcType=VARCHAR},
|
|
|
- #{isleaf,jdbcType=SMALLINT}, #{sequencenumber,jdbcType=INTEGER}, #{characteristic,jdbcType=VARCHAR},
|
|
|
- #{modelid,jdbcType=VARCHAR}, #{codename,jdbcType=VARCHAR}, #{ednavalue,jdbcType=INTEGER},
|
|
|
- #{display,jdbcType=INTEGER}, #{warningclassifyid,jdbcType=VARCHAR}, #{isreset,jdbcType=DECIMAL},
|
|
|
- #{standardtime,jdbcType=DECIMAL}, #{warningtypeid,jdbcType=VARCHAR})
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Warning2">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- insert into warning2
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- id,
|
|
|
- </if>
|
|
|
- <if test="levelid != null">
|
|
|
- levelId,
|
|
|
- </if>
|
|
|
- <if test="manufacturercode != null">
|
|
|
- manufacturerCode,
|
|
|
- </if>
|
|
|
- <if test="englishtext != null">
|
|
|
- englishText,
|
|
|
- </if>
|
|
|
- <if test="chinesetext != null">
|
|
|
- chineseText,
|
|
|
- </if>
|
|
|
- <if test="parentid != null">
|
|
|
- parentId,
|
|
|
- </if>
|
|
|
- <if test="isleaf != null">
|
|
|
- isLeaf,
|
|
|
- </if>
|
|
|
- <if test="sequencenumber != null">
|
|
|
- sequenceNumber,
|
|
|
- </if>
|
|
|
- <if test="characteristic != null">
|
|
|
- characteristic,
|
|
|
- </if>
|
|
|
- <if test="modelid != null">
|
|
|
- modelId,
|
|
|
- </if>
|
|
|
- <if test="codename != null">
|
|
|
- codeName,
|
|
|
- </if>
|
|
|
- <if test="ednavalue != null">
|
|
|
- ednaValue,
|
|
|
- </if>
|
|
|
- <if test="display != null">
|
|
|
- display,
|
|
|
- </if>
|
|
|
- <if test="warningclassifyid != null">
|
|
|
- warningClassifyId,
|
|
|
- </if>
|
|
|
- <if test="isreset != null">
|
|
|
- isreset,
|
|
|
- </if>
|
|
|
- <if test="standardtime != null">
|
|
|
- standardTime,
|
|
|
- </if>
|
|
|
- <if test="warningtypeid != null">
|
|
|
- warningtypeid,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- #{id,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="levelid != null">
|
|
|
- #{levelid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="manufacturercode != null">
|
|
|
- #{manufacturercode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="englishtext != null">
|
|
|
- #{englishtext,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="chinesetext != null">
|
|
|
- #{chinesetext,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="parentid != null">
|
|
|
- #{parentid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isleaf != null">
|
|
|
- #{isleaf,jdbcType=SMALLINT},
|
|
|
- </if>
|
|
|
- <if test="sequencenumber != null">
|
|
|
- #{sequencenumber,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="characteristic != null">
|
|
|
- #{characteristic,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="modelid != null">
|
|
|
- #{modelid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="codename != null">
|
|
|
- #{codename,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ednavalue != null">
|
|
|
- #{ednavalue,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="display != null">
|
|
|
- #{display,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="warningclassifyid != null">
|
|
|
- #{warningclassifyid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isreset != null">
|
|
|
- #{isreset,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="standardtime != null">
|
|
|
- #{standardtime,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="warningtypeid != null">
|
|
|
- #{warningtypeid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <select id="countByExample" parameterType="com.gyee.frame.model.auto.Warning2Example" resultType="java.lang.Long">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- select count(*) from warning2
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <update id="updateByExampleSelective" parameterType="map">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- update warning2
|
|
|
- <set>
|
|
|
- <if test="record.id != null">
|
|
|
- id = #{record.id,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.levelid != null">
|
|
|
- levelId = #{record.levelid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.manufacturercode != null">
|
|
|
- manufacturerCode = #{record.manufacturercode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.englishtext != null">
|
|
|
- englishText = #{record.englishtext,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.chinesetext != null">
|
|
|
- chineseText = #{record.chinesetext,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.parentid != null">
|
|
|
- parentId = #{record.parentid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.isleaf != null">
|
|
|
- isLeaf = #{record.isleaf,jdbcType=SMALLINT},
|
|
|
- </if>
|
|
|
- <if test="record.sequencenumber != null">
|
|
|
- sequenceNumber = #{record.sequencenumber,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.characteristic != null">
|
|
|
- characteristic = #{record.characteristic,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.modelid != null">
|
|
|
- modelId = #{record.modelid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.codename != null">
|
|
|
- codeName = #{record.codename,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.ednavalue != null">
|
|
|
- ednaValue = #{record.ednavalue,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.display != null">
|
|
|
- display = #{record.display,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.warningclassifyid != null">
|
|
|
- warningClassifyId = #{record.warningclassifyid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.isreset != null">
|
|
|
- isreset = #{record.isreset,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.standardtime != null">
|
|
|
- standardTime = #{record.standardtime,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.warningtypeid != null">
|
|
|
- warningtypeid = #{record.warningtypeid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByExample" parameterType="map">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- update warning2
|
|
|
- set id = #{record.id,jdbcType=VARCHAR},
|
|
|
- levelId = #{record.levelid,jdbcType=VARCHAR},
|
|
|
- manufacturerCode = #{record.manufacturercode,jdbcType=VARCHAR},
|
|
|
- englishText = #{record.englishtext,jdbcType=VARCHAR},
|
|
|
- chineseText = #{record.chinesetext,jdbcType=VARCHAR},
|
|
|
- parentId = #{record.parentid,jdbcType=VARCHAR},
|
|
|
- isLeaf = #{record.isleaf,jdbcType=SMALLINT},
|
|
|
- sequenceNumber = #{record.sequencenumber,jdbcType=INTEGER},
|
|
|
- characteristic = #{record.characteristic,jdbcType=VARCHAR},
|
|
|
- modelId = #{record.modelid,jdbcType=VARCHAR},
|
|
|
- codeName = #{record.codename,jdbcType=VARCHAR},
|
|
|
- ednaValue = #{record.ednavalue,jdbcType=INTEGER},
|
|
|
- display = #{record.display,jdbcType=INTEGER},
|
|
|
- warningClassifyId = #{record.warningclassifyid,jdbcType=VARCHAR},
|
|
|
- isreset = #{record.isreset,jdbcType=DECIMAL},
|
|
|
- standardTime = #{record.standardtime,jdbcType=DECIMAL},
|
|
|
- warningtypeid = #{record.warningtypeid,jdbcType=VARCHAR}
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Warning2">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- update warning2
|
|
|
- <set>
|
|
|
- <if test="levelid != null">
|
|
|
- levelId = #{levelid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="manufacturercode != null">
|
|
|
- manufacturerCode = #{manufacturercode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="englishtext != null">
|
|
|
- englishText = #{englishtext,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="chinesetext != null">
|
|
|
- chineseText = #{chinesetext,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="parentid != null">
|
|
|
- parentId = #{parentid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isleaf != null">
|
|
|
- isLeaf = #{isleaf,jdbcType=SMALLINT},
|
|
|
- </if>
|
|
|
- <if test="sequencenumber != null">
|
|
|
- sequenceNumber = #{sequencenumber,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="characteristic != null">
|
|
|
- characteristic = #{characteristic,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="modelid != null">
|
|
|
- modelId = #{modelid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="codename != null">
|
|
|
- codeName = #{codename,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ednavalue != null">
|
|
|
- ednaValue = #{ednavalue,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="display != null">
|
|
|
- display = #{display,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="warningclassifyid != null">
|
|
|
- warningClassifyId = #{warningclassifyid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isreset != null">
|
|
|
- isreset = #{isreset,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="standardtime != null">
|
|
|
- standardTime = #{standardtime,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="warningtypeid != null">
|
|
|
- warningtypeid = #{warningtypeid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Warning2">
|
|
|
-
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- update warning2
|
|
|
- set levelId = #{levelid,jdbcType=VARCHAR},
|
|
|
- manufacturerCode = #{manufacturercode,jdbcType=VARCHAR},
|
|
|
- englishText = #{englishtext,jdbcType=VARCHAR},
|
|
|
- chineseText = #{chinesetext,jdbcType=VARCHAR},
|
|
|
- parentId = #{parentid,jdbcType=VARCHAR},
|
|
|
- isLeaf = #{isleaf,jdbcType=SMALLINT},
|
|
|
- sequenceNumber = #{sequencenumber,jdbcType=INTEGER},
|
|
|
- characteristic = #{characteristic,jdbcType=VARCHAR},
|
|
|
- modelId = #{modelid,jdbcType=VARCHAR},
|
|
|
- codeName = #{codename,jdbcType=VARCHAR},
|
|
|
- ednaValue = #{ednavalue,jdbcType=INTEGER},
|
|
|
- display = #{display,jdbcType=INTEGER},
|
|
|
- warningClassifyId = #{warningclassifyid,jdbcType=VARCHAR},
|
|
|
- isreset = #{isreset,jdbcType=DECIMAL},
|
|
|
- standardTime = #{standardtime,jdbcType=DECIMAL},
|
|
|
- warningtypeid = #{warningtypeid,jdbcType=VARCHAR}
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
-</mapper>
|