|
|
@@ -11,7 +11,7 @@
|
|
|
<result column="bd_baseqty" property="bd_baseqty" jdbcType="INTEGER" />
|
|
|
<result column="bd_replace" property="bd_replace" jdbcType="VARCHAR" />
|
|
|
<result column="bd_remark" property="bd_remark" jdbcType="VARCHAR" />
|
|
|
- <result column="comapnyId" property="companyId" jdbcType="INTEGER" />
|
|
|
+ <result column="companyId" property="companyId" jdbcType="INTEGER" />
|
|
|
<result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
<result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="bd_text1" property="bd_text1" jdbcType="VARCHAR" />
|
|
|
@@ -22,7 +22,7 @@
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
bd_id, bd_bomid, bd_detno, bd_sonid, bd_soncode, bd_unit, bd_baseqty, bd_replace,
|
|
|
- bd_remark, comapnyId, updaterId, updateTime, bd_text1, bd_text2, bd_text3, bd_text4,
|
|
|
+ bd_remark, companyId, updaterId, updateTime, bd_text1, bd_text2, bd_text3, bd_text4,
|
|
|
bd_text5
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
@@ -39,13 +39,13 @@
|
|
|
insert into bomdetail (bd_bomid, bd_detno,
|
|
|
bd_sonid, bd_soncode, bd_unit,
|
|
|
bd_baseqty, bd_replace, bd_remark,
|
|
|
- comapnyId, updaterId, updateTime,
|
|
|
+ companyId, updaterId, updateTime,
|
|
|
bd_text1, bd_text2, bd_text3,
|
|
|
bd_text4, bd_text5)
|
|
|
values ( #{bd_bomid,jdbcType=INTEGER}, #{bd_detno,jdbcType=INTEGER},
|
|
|
#{bd_sonid,jdbcType=INTEGER}, #{bd_soncode,jdbcType=VARCHAR}, #{bd_unit,jdbcType=VARCHAR},
|
|
|
#{bd_baseqty,jdbcType=INTEGER}, #{bd_replace,jdbcType=VARCHAR}, #{bd_remark,jdbcType=VARCHAR},
|
|
|
- #{comapnyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
#{bd_text1,jdbcType=VARCHAR}, #{bd_text2,jdbcType=VARCHAR}, #{bd_text3,jdbcType=VARCHAR},
|
|
|
#{bd_text4,jdbcType=VARCHAR}, #{bd_text5,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
@@ -76,8 +76,8 @@
|
|
|
<if test="bd_remark != null" >
|
|
|
bd_remark,
|
|
|
</if>
|
|
|
- <if test="comapnyId != null" >
|
|
|
- comapnyId,
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId,
|
|
|
</if>
|
|
|
<if test="updaterId != null" >
|
|
|
updaterId,
|
|
|
@@ -126,8 +126,8 @@
|
|
|
<if test="bd_remark != null" >
|
|
|
#{bd_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="comapnyId != null" >
|
|
|
- #{comapnyId,jdbcType=INTEGER},
|
|
|
+ <if test="companyId != null" >
|
|
|
+ #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updaterId != null" >
|
|
|
#{updaterId,jdbcType=INTEGER},
|
|
|
@@ -179,8 +179,8 @@
|
|
|
<if test="bd_remark != null" >
|
|
|
bd_remark = #{bd_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="comapnyId != null" >
|
|
|
- comapnyId = #{comapnyId,jdbcType=INTEGER},
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updaterId != null" >
|
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
@@ -216,7 +216,7 @@
|
|
|
bd_baseqty = #{bd_baseqty,jdbcType=INTEGER},
|
|
|
bd_replace = #{bd_replace,jdbcType=VARCHAR},
|
|
|
bd_remark = #{bd_remark,jdbcType=VARCHAR},
|
|
|
- comapnyId = #{comapnyId,jdbcType=INTEGER},
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
bd_text1 = #{bd_text1,jdbcType=VARCHAR},
|
|
|
@@ -227,108 +227,22 @@
|
|
|
where bd_id = #{id}
|
|
|
</update>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
+ INSERT INTO BOMDETAIL (bd_bomid, bd_detno,
|
|
|
+ bd_sonid, bd_soncode, bd_unit,
|
|
|
+ bd_baseqty, bd_replace, bd_remark,
|
|
|
+ companyId, updaterId, updateTime,
|
|
|
+ bd_text1, bd_text2, bd_text3,
|
|
|
+ bd_text4, bd_text5)
|
|
|
+ values
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
- INSERT INTO BOMDETAIL
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="item.bd_bomid != null" >
|
|
|
- bd_bomid,
|
|
|
- </if>
|
|
|
- <if test="item.bd_detno != null" >
|
|
|
- bd_detno,
|
|
|
- </if>
|
|
|
- <if test="item.bd_sonid != null" >
|
|
|
- bd_sonid,
|
|
|
- </if>
|
|
|
- <if test="item.bd_soncode != null" >
|
|
|
- bd_soncode,
|
|
|
- </if>
|
|
|
- <if test="item.bd_unit != null" >
|
|
|
- bd_unit,
|
|
|
- </if>
|
|
|
- <if test="item.bd_baseqty != null" >
|
|
|
- bd_baseqty,
|
|
|
- </if>
|
|
|
- <if test="item.bd_replace != null" >
|
|
|
- bd_replace,
|
|
|
- </if>
|
|
|
- <if test="item.bd_remark != null" >
|
|
|
- bd_remark,
|
|
|
- </if>
|
|
|
- <if test="item.comapnyId != null" >
|
|
|
- comapnyId,
|
|
|
- </if>
|
|
|
- <if test="item.updaterId != null" >
|
|
|
- updaterId,
|
|
|
- </if>
|
|
|
- <if test="item.updateTime != null" >
|
|
|
- updateTime,
|
|
|
- </if>
|
|
|
- <if test="item.bd_text1 != null" >
|
|
|
- bd_text1,
|
|
|
- </if>
|
|
|
- <if test="item.bd_text2 != null" >
|
|
|
- bd_text2,
|
|
|
- </if>
|
|
|
- <if test="item.bd_text3 != null" >
|
|
|
- bd_text3,
|
|
|
- </if>
|
|
|
- <if test="item.bd_text4 != null" >
|
|
|
- bd_text4,
|
|
|
- </if>
|
|
|
- <if test="item.bd_text5 != null" >
|
|
|
- bd_text5,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="item.bd_bomid != null" >
|
|
|
- #{item.bd_bomid},
|
|
|
- </if>
|
|
|
- <if test="bd_detno != null" >
|
|
|
- #{item.bd_detno,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="bd_sonid != null" >
|
|
|
- #{item.bd_sonid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="bd_soncode != null" >
|
|
|
- #{item.bd_soncode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="bd_unit != null" >
|
|
|
- #{item.bd_unit,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="bd_baseqty != null" >
|
|
|
- #{item.bd_baseqty,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="bd_replace != null" >
|
|
|
- #{item.bd_replace,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="bd_remark != null" >
|
|
|
- #{item.bd_remark,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="comapnyId != null" >
|
|
|
- #{item.comapnyId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="updaterId != null" >
|
|
|
- #{item.updaterId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null" >
|
|
|
- #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="bd_text1 != null" >
|
|
|
- #{item.bd_text1,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="bd_text2 != null" >
|
|
|
- #{item.bd_text2,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="bd_text3 != null" >
|
|
|
- #{item.bd_text3,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="bd_text4 != null" >
|
|
|
- #{item.bd_text4,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="bd_text5 != null" >
|
|
|
- #{item.bd_text5,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
+ (
|
|
|
+ #{item.bd_bomid,jdbcType=INTEGER}, #{item.bd_detno,jdbcType=INTEGER},
|
|
|
+ #{item.bd_sonid,jdbcType=INTEGER}, #{item.bd_soncode,jdbcType=VARCHAR}, #{item.bd_unit,jdbcType=VARCHAR},
|
|
|
+ #{item.bd_baseqty,jdbcType=INTEGER}, #{item.bd_replace,jdbcType=VARCHAR}, #{item.bd_remark,jdbcType=VARCHAR},
|
|
|
+ #{item.companyId,jdbcType=INTEGER}, #{item.updaterId,jdbcType=INTEGER}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.bd_text1,jdbcType=VARCHAR}, #{item.bd_text2,jdbcType=VARCHAR}, #{item.bd_text3,jdbcType=VARCHAR},
|
|
|
+ #{item.bd_text4,jdbcType=VARCHAR}, #{item.bd_text5,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
@@ -360,8 +274,8 @@
|
|
|
<if test="bd_remark != null" >
|
|
|
bd_remark = #{item.bd_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="comapnyId != null" >
|
|
|
- comapnyId = #{item.comapnyId,jdbcType=INTEGER},
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId = #{item.companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updaterId != null" >
|
|
|
updaterId = #{item.updaterId,jdbcType=INTEGER},
|