| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651 |
- <?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 Oct 28 20:22:26 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="produce_company_name" jdbcType="VARCHAR" property="produceCompanyName" />
- <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" />
- <result column="is_maintain" jdbcType="INTEGER" property="isMaintain" />
- <result column="maintain_count" jdbcType="VARCHAR" property="maintainCount" />
- <result column="holes" jdbcType="VARCHAR" property="holes" />
- <result column="pre_update_id" jdbcType="INTEGER" property="preUpdateId" />
- <result column="history_run_times" jdbcType="INTEGER" property="historyRunTimes" />
- <result column="last_rec_time" jdbcType="TIMESTAMP" property="lastRecTime" />
- </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 Oct 28 20:22:26 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 Oct 28 20:22:26 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 Oct 28 20:22:26 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, produce_company_name, initial_modulus, equipment_id, belong_project_grade,
- produce_company_id, run_times, is_maintain, maintain_count, holes, pre_update_id,
- history_run_times, last_rec_time
- </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 Oct 28 20:22:26 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 Oct 28 20:22:26 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 Oct 28 20:22:26 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 Oct 28 20:22:26 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 Oct 28 20:22:26 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,
- produce_company_name, initial_modulus, equipment_id,
- belong_project_grade, produce_company_id, run_times,
- is_maintain, maintain_count, holes,
- pre_update_id, history_run_times, last_rec_time
- )
- 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},
- #{produceCompanyName,jdbcType=VARCHAR}, #{initialModulus,jdbcType=INTEGER}, #{equipmentId,jdbcType=INTEGER},
- #{belongProjectGrade,jdbcType=VARCHAR}, #{produceCompanyId,jdbcType=INTEGER}, #{runTimes,jdbcType=INTEGER},
- #{isMaintain,jdbcType=INTEGER}, #{maintainCount,jdbcType=VARCHAR}, #{holes,jdbcType=VARCHAR},
- #{preUpdateId,jdbcType=INTEGER}, #{historyRunTimes,jdbcType=INTEGER}, #{lastRecTime,jdbcType=TIMESTAMP}
- )
- </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 Oct 28 20:22:26 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="produceCompanyName != null">
- produce_company_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>
- <if test="isMaintain != null">
- is_maintain,
- </if>
- <if test="maintainCount != null">
- maintain_count,
- </if>
- <if test="holes != null">
- holes,
- </if>
- <if test="preUpdateId != null">
- pre_update_id,
- </if>
- <if test="historyRunTimes != null">
- history_run_times,
- </if>
- <if test="lastRecTime != null">
- last_rec_time,
- </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="produceCompanyName != null">
- #{produceCompanyName,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>
- <if test="isMaintain != null">
- #{isMaintain,jdbcType=INTEGER},
- </if>
- <if test="maintainCount != null">
- #{maintainCount,jdbcType=VARCHAR},
- </if>
- <if test="holes != null">
- #{holes,jdbcType=VARCHAR},
- </if>
- <if test="preUpdateId != null">
- #{preUpdateId,jdbcType=INTEGER},
- </if>
- <if test="historyRunTimes != null">
- #{historyRunTimes,jdbcType=INTEGER},
- </if>
- <if test="lastRecTime != null">
- #{lastRecTime,jdbcType=TIMESTAMP},
- </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 Oct 28 20:22:26 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 Oct 28 20:22:26 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.produceCompanyName != null">
- produce_company_name = #{record.produceCompanyName,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>
- <if test="record.isMaintain != null">
- is_maintain = #{record.isMaintain,jdbcType=INTEGER},
- </if>
- <if test="record.maintainCount != null">
- maintain_count = #{record.maintainCount,jdbcType=VARCHAR},
- </if>
- <if test="record.holes != null">
- holes = #{record.holes,jdbcType=VARCHAR},
- </if>
- <if test="record.preUpdateId != null">
- pre_update_id = #{record.preUpdateId,jdbcType=INTEGER},
- </if>
- <if test="record.historyRunTimes != null">
- history_run_times = #{record.historyRunTimes,jdbcType=INTEGER},
- </if>
- <if test="record.lastRecTime != null">
- last_rec_time = #{record.lastRecTime,jdbcType=TIMESTAMP},
- </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 Oct 28 20:22:26 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},
- produce_company_name = #{record.produceCompanyName,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},
- is_maintain = #{record.isMaintain,jdbcType=INTEGER},
- maintain_count = #{record.maintainCount,jdbcType=VARCHAR},
- holes = #{record.holes,jdbcType=VARCHAR},
- pre_update_id = #{record.preUpdateId,jdbcType=INTEGER},
- history_run_times = #{record.historyRunTimes,jdbcType=INTEGER},
- last_rec_time = #{record.lastRecTime,jdbcType=TIMESTAMP}
- <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 Oct 28 20:22:26 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="produceCompanyName != null">
- produce_company_name = #{produceCompanyName,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>
- <if test="isMaintain != null">
- is_maintain = #{isMaintain,jdbcType=INTEGER},
- </if>
- <if test="maintainCount != null">
- maintain_count = #{maintainCount,jdbcType=VARCHAR},
- </if>
- <if test="holes != null">
- holes = #{holes,jdbcType=VARCHAR},
- </if>
- <if test="preUpdateId != null">
- pre_update_id = #{preUpdateId,jdbcType=INTEGER},
- </if>
- <if test="historyRunTimes != null">
- history_run_times = #{historyRunTimes,jdbcType=INTEGER},
- </if>
- <if test="lastRecTime != null">
- last_rec_time = #{lastRecTime,jdbcType=TIMESTAMP},
- </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 Oct 28 20:22:26 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},
- produce_company_name = #{produceCompanyName,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},
- is_maintain = #{isMaintain,jdbcType=INTEGER},
- maintain_count = #{maintainCount,jdbcType=VARCHAR},
- holes = #{holes,jdbcType=VARCHAR},
- pre_update_id = #{preUpdateId,jdbcType=INTEGER},
- history_run_times = #{historyRunTimes,jdbcType=INTEGER},
- last_rec_time = #{lastRecTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|