|
@@ -0,0 +1,571 @@
|
|
|
+<?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.js.kbt.mapper.TbMouldMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.js.kbt.model.TbMould">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ <id column="id" jdbcType="INTEGER" property="id" />
|
|
|
+ <result column="model_no" jdbcType="VARCHAR" property="modelNo" />
|
|
|
+ <result column="model_name" jdbcType="VARCHAR" property="modelName" />
|
|
|
+ <result column="water_gap" jdbcType="DECIMAL" property="waterGap" />
|
|
|
+ <result column="tonnage" jdbcType="DECIMAL" property="tonnage" />
|
|
|
+ <result column="oc_cycle" jdbcType="DECIMAL" property="ocCycle" />
|
|
|
+ <result column="daily_output" jdbcType="DECIMAL" property="dailyOutput" />
|
|
|
+ <result column="company_id" jdbcType="INTEGER" property="companyId" />
|
|
|
+ <result column="current_version_id" jdbcType="INTEGER" property="currentVersionId" />
|
|
|
+ <result column="state" jdbcType="VARCHAR" property="state" />
|
|
|
+ <result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
+ <result column="creator_id" jdbcType="INTEGER" property="creatorId" />
|
|
|
+ <result column="project_id" jdbcType="INTEGER" property="projectId" />
|
|
|
+ <result column="rfid" jdbcType="VARCHAR" property="rfid" />
|
|
|
+ <result column="setting_life" jdbcType="INTEGER" property="settingLife" />
|
|
|
+ <result column="area" jdbcType="VARCHAR" property="area" />
|
|
|
+ <result column="factory_id" jdbcType="INTEGER" property="factoryId" />
|
|
|
+ <result column="factory_name" jdbcType="VARCHAR" property="factoryName" />
|
|
|
+ <result column="initial_modulus" jdbcType="INTEGER" property="initialModulus" />
|
|
|
+ <result column="equipment_id" jdbcType="INTEGER" property="equipmentId" />
|
|
|
+ <result column="belong_project_grade" jdbcType="VARCHAR" property="belongProjectGrade" />
|
|
|
+ <result column="produce_company_id" jdbcType="INTEGER" property="produceCompanyId" />
|
|
|
+ <result column="run_times" jdbcType="INTEGER" property="runTimes" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ <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.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ <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.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ id, model_no, model_name, water_gap, tonnage, oc_cycle, daily_output, company_id,
|
|
|
+ current_version_id, state, is_delete, creator_id, project_id, rfid, setting_life,
|
|
|
+ area, factory_id, factory_name, initial_modulus, equipment_id, belong_project_grade,
|
|
|
+ produce_company_id, run_times
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.js.kbt.model.TbMouldExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from tb_mould
|
|
|
+ <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.Integer" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from tb_mould
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ delete from tb_mould
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.js.kbt.model.TbMouldExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ delete from tb_mould
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.js.kbt.model.TbMould">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
+ insert into tb_mould (model_no, model_name, water_gap,
|
|
|
+ tonnage, oc_cycle, daily_output,
|
|
|
+ company_id, current_version_id, state,
|
|
|
+ is_delete, creator_id, project_id,
|
|
|
+ rfid, setting_life, area,
|
|
|
+ factory_id, factory_name, initial_modulus,
|
|
|
+ equipment_id, belong_project_grade, produce_company_id,
|
|
|
+ run_times)
|
|
|
+ values (#{modelNo,jdbcType=VARCHAR}, #{modelName,jdbcType=VARCHAR}, #{waterGap,jdbcType=DECIMAL},
|
|
|
+ #{tonnage,jdbcType=DECIMAL}, #{ocCycle,jdbcType=DECIMAL}, #{dailyOutput,jdbcType=DECIMAL},
|
|
|
+ #{companyId,jdbcType=INTEGER}, #{currentVersionId,jdbcType=INTEGER}, #{state,jdbcType=VARCHAR},
|
|
|
+ #{isDelete,jdbcType=INTEGER}, #{creatorId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER},
|
|
|
+ #{rfid,jdbcType=VARCHAR}, #{settingLife,jdbcType=INTEGER}, #{area,jdbcType=VARCHAR},
|
|
|
+ #{factoryId,jdbcType=INTEGER}, #{factoryName,jdbcType=VARCHAR}, #{initialModulus,jdbcType=INTEGER},
|
|
|
+ #{equipmentId,jdbcType=INTEGER}, #{belongProjectGrade,jdbcType=VARCHAR}, #{produceCompanyId,jdbcType=INTEGER},
|
|
|
+ #{runTimes,jdbcType=INTEGER})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.js.kbt.model.TbMould">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
+ insert into tb_mould
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="modelNo != null">
|
|
|
+ model_no,
|
|
|
+ </if>
|
|
|
+ <if test="modelName != null">
|
|
|
+ model_name,
|
|
|
+ </if>
|
|
|
+ <if test="waterGap != null">
|
|
|
+ water_gap,
|
|
|
+ </if>
|
|
|
+ <if test="tonnage != null">
|
|
|
+ tonnage,
|
|
|
+ </if>
|
|
|
+ <if test="ocCycle != null">
|
|
|
+ oc_cycle,
|
|
|
+ </if>
|
|
|
+ <if test="dailyOutput != null">
|
|
|
+ daily_output,
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null">
|
|
|
+ company_id,
|
|
|
+ </if>
|
|
|
+ <if test="currentVersionId != null">
|
|
|
+ current_version_id,
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ state,
|
|
|
+ </if>
|
|
|
+ <if test="isDelete != null">
|
|
|
+ is_delete,
|
|
|
+ </if>
|
|
|
+ <if test="creatorId != null">
|
|
|
+ creator_id,
|
|
|
+ </if>
|
|
|
+ <if test="projectId != null">
|
|
|
+ project_id,
|
|
|
+ </if>
|
|
|
+ <if test="rfid != null">
|
|
|
+ rfid,
|
|
|
+ </if>
|
|
|
+ <if test="settingLife != null">
|
|
|
+ setting_life,
|
|
|
+ </if>
|
|
|
+ <if test="area != null">
|
|
|
+ area,
|
|
|
+ </if>
|
|
|
+ <if test="factoryId != null">
|
|
|
+ factory_id,
|
|
|
+ </if>
|
|
|
+ <if test="factoryName != null">
|
|
|
+ factory_name,
|
|
|
+ </if>
|
|
|
+ <if test="initialModulus != null">
|
|
|
+ initial_modulus,
|
|
|
+ </if>
|
|
|
+ <if test="equipmentId != null">
|
|
|
+ equipment_id,
|
|
|
+ </if>
|
|
|
+ <if test="belongProjectGrade != null">
|
|
|
+ belong_project_grade,
|
|
|
+ </if>
|
|
|
+ <if test="produceCompanyId != null">
|
|
|
+ produce_company_id,
|
|
|
+ </if>
|
|
|
+ <if test="runTimes != null">
|
|
|
+ run_times,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="modelNo != null">
|
|
|
+ #{modelNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modelName != null">
|
|
|
+ #{modelName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="waterGap != null">
|
|
|
+ #{waterGap,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="tonnage != null">
|
|
|
+ #{tonnage,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="ocCycle != null">
|
|
|
+ #{ocCycle,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="dailyOutput != null">
|
|
|
+ #{dailyOutput,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null">
|
|
|
+ #{companyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="currentVersionId != null">
|
|
|
+ #{currentVersionId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ #{state,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isDelete != null">
|
|
|
+ #{isDelete,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="creatorId != null">
|
|
|
+ #{creatorId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="projectId != null">
|
|
|
+ #{projectId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="rfid != null">
|
|
|
+ #{rfid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="settingLife != null">
|
|
|
+ #{settingLife,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="area != null">
|
|
|
+ #{area,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="factoryId != null">
|
|
|
+ #{factoryId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="factoryName != null">
|
|
|
+ #{factoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="initialModulus != null">
|
|
|
+ #{initialModulus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="equipmentId != null">
|
|
|
+ #{equipmentId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="belongProjectGrade != null">
|
|
|
+ #{belongProjectGrade,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="produceCompanyId != null">
|
|
|
+ #{produceCompanyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="runTimes != null">
|
|
|
+ #{runTimes,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.js.kbt.model.TbMouldExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ select count(*) from tb_mould
|
|
|
+ <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.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ update tb_mould
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.modelNo != null">
|
|
|
+ model_no = #{record.modelNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.modelName != null">
|
|
|
+ model_name = #{record.modelName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.waterGap != null">
|
|
|
+ water_gap = #{record.waterGap,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.tonnage != null">
|
|
|
+ tonnage = #{record.tonnage,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.ocCycle != null">
|
|
|
+ oc_cycle = #{record.ocCycle,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.dailyOutput != null">
|
|
|
+ daily_output = #{record.dailyOutput,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.companyId != null">
|
|
|
+ company_id = #{record.companyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.currentVersionId != null">
|
|
|
+ current_version_id = #{record.currentVersionId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.state != null">
|
|
|
+ state = #{record.state,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.isDelete != null">
|
|
|
+ is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.creatorId != null">
|
|
|
+ creator_id = #{record.creatorId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.projectId != null">
|
|
|
+ project_id = #{record.projectId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.rfid != null">
|
|
|
+ rfid = #{record.rfid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.settingLife != null">
|
|
|
+ setting_life = #{record.settingLife,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.area != null">
|
|
|
+ area = #{record.area,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.factoryId != null">
|
|
|
+ factory_id = #{record.factoryId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.factoryName != null">
|
|
|
+ factory_name = #{record.factoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.initialModulus != null">
|
|
|
+ initial_modulus = #{record.initialModulus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.equipmentId != null">
|
|
|
+ equipment_id = #{record.equipmentId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.belongProjectGrade != null">
|
|
|
+ belong_project_grade = #{record.belongProjectGrade,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.produceCompanyId != null">
|
|
|
+ produce_company_id = #{record.produceCompanyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.runTimes != null">
|
|
|
+ run_times = #{record.runTimes,jdbcType=INTEGER},
|
|
|
+ </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.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ update tb_mould
|
|
|
+ set id = #{record.id,jdbcType=INTEGER},
|
|
|
+ model_no = #{record.modelNo,jdbcType=VARCHAR},
|
|
|
+ model_name = #{record.modelName,jdbcType=VARCHAR},
|
|
|
+ water_gap = #{record.waterGap,jdbcType=DECIMAL},
|
|
|
+ tonnage = #{record.tonnage,jdbcType=DECIMAL},
|
|
|
+ oc_cycle = #{record.ocCycle,jdbcType=DECIMAL},
|
|
|
+ daily_output = #{record.dailyOutput,jdbcType=DECIMAL},
|
|
|
+ company_id = #{record.companyId,jdbcType=INTEGER},
|
|
|
+ current_version_id = #{record.currentVersionId,jdbcType=INTEGER},
|
|
|
+ state = #{record.state,jdbcType=VARCHAR},
|
|
|
+ is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
+ creator_id = #{record.creatorId,jdbcType=INTEGER},
|
|
|
+ project_id = #{record.projectId,jdbcType=INTEGER},
|
|
|
+ rfid = #{record.rfid,jdbcType=VARCHAR},
|
|
|
+ setting_life = #{record.settingLife,jdbcType=INTEGER},
|
|
|
+ area = #{record.area,jdbcType=VARCHAR},
|
|
|
+ factory_id = #{record.factoryId,jdbcType=INTEGER},
|
|
|
+ factory_name = #{record.factoryName,jdbcType=VARCHAR},
|
|
|
+ initial_modulus = #{record.initialModulus,jdbcType=INTEGER},
|
|
|
+ equipment_id = #{record.equipmentId,jdbcType=INTEGER},
|
|
|
+ belong_project_grade = #{record.belongProjectGrade,jdbcType=VARCHAR},
|
|
|
+ produce_company_id = #{record.produceCompanyId,jdbcType=INTEGER},
|
|
|
+ run_times = #{record.runTimes,jdbcType=INTEGER}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.TbMould">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ update tb_mould
|
|
|
+ <set>
|
|
|
+ <if test="modelNo != null">
|
|
|
+ model_no = #{modelNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modelName != null">
|
|
|
+ model_name = #{modelName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="waterGap != null">
|
|
|
+ water_gap = #{waterGap,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="tonnage != null">
|
|
|
+ tonnage = #{tonnage,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="ocCycle != null">
|
|
|
+ oc_cycle = #{ocCycle,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="dailyOutput != null">
|
|
|
+ daily_output = #{dailyOutput,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null">
|
|
|
+ company_id = #{companyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="currentVersionId != null">
|
|
|
+ current_version_id = #{currentVersionId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ state = #{state,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isDelete != null">
|
|
|
+ is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="creatorId != null">
|
|
|
+ creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="projectId != null">
|
|
|
+ project_id = #{projectId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="rfid != null">
|
|
|
+ rfid = #{rfid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="settingLife != null">
|
|
|
+ setting_life = #{settingLife,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="area != null">
|
|
|
+ area = #{area,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="factoryId != null">
|
|
|
+ factory_id = #{factoryId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="factoryName != null">
|
|
|
+ factory_name = #{factoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="initialModulus != null">
|
|
|
+ initial_modulus = #{initialModulus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="equipmentId != null">
|
|
|
+ equipment_id = #{equipmentId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="belongProjectGrade != null">
|
|
|
+ belong_project_grade = #{belongProjectGrade,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="produceCompanyId != null">
|
|
|
+ produce_company_id = #{produceCompanyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="runTimes != null">
|
|
|
+ run_times = #{runTimes,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.TbMould">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Aug 05 15:13:45 CST 2019.
|
|
|
+ -->
|
|
|
+ update tb_mould
|
|
|
+ set model_no = #{modelNo,jdbcType=VARCHAR},
|
|
|
+ model_name = #{modelName,jdbcType=VARCHAR},
|
|
|
+ water_gap = #{waterGap,jdbcType=DECIMAL},
|
|
|
+ tonnage = #{tonnage,jdbcType=DECIMAL},
|
|
|
+ oc_cycle = #{ocCycle,jdbcType=DECIMAL},
|
|
|
+ daily_output = #{dailyOutput,jdbcType=DECIMAL},
|
|
|
+ company_id = #{companyId,jdbcType=INTEGER},
|
|
|
+ current_version_id = #{currentVersionId,jdbcType=INTEGER},
|
|
|
+ state = #{state,jdbcType=VARCHAR},
|
|
|
+ is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
+ creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
+ project_id = #{projectId,jdbcType=INTEGER},
|
|
|
+ rfid = #{rfid,jdbcType=VARCHAR},
|
|
|
+ setting_life = #{settingLife,jdbcType=INTEGER},
|
|
|
+ area = #{area,jdbcType=VARCHAR},
|
|
|
+ factory_id = #{factoryId,jdbcType=INTEGER},
|
|
|
+ factory_name = #{factoryName,jdbcType=VARCHAR},
|
|
|
+ initial_modulus = #{initialModulus,jdbcType=INTEGER},
|
|
|
+ equipment_id = #{equipmentId,jdbcType=INTEGER},
|
|
|
+ belong_project_grade = #{belongProjectGrade,jdbcType=VARCHAR},
|
|
|
+ produce_company_id = #{produceCompanyId,jdbcType=INTEGER},
|
|
|
+ run_times = #{runTimes,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|