bo_id, bo_motherid, bo_mothercode, bo_mothername, bo_version, bo_status, bo_statuscode,
bo_recorderid, bo_recorder, bo_recorddate, companyId, updaterId, updateTime, bo_text1,
bo_text2, bo_text3, bo_text4, bo_text5
delete from bom
where bo_id = #{id}
SELECT LAST_INSERT_ID() AS ID
insert into bom (bo_motherid, bo_mothercode,
bo_mothername, bo_version, bo_status,
bo_statuscode, bo_recorderid, bo_recorder,
bo_recorddate, companyId, updaterId,
updateTime, bo_text1, bo_text2,
bo_text3, bo_text4, bo_text5
)
values (#{bo_motherid,jdbcType=INTEGER}, #{bo_mothercode,jdbcType=VARCHAR},
#{bo_mothername,jdbcType=VARCHAR}, #{bo_version,jdbcType=VARCHAR}, #{bo_status,jdbcType=VARCHAR},
#{bo_statuscode,jdbcType=VARCHAR}, #{bo_recorderid,jdbcType=INTEGER}, #{bo_recorder,jdbcType=VARCHAR},
#{bo_recorddate,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
#{updateTime,jdbcType=TIMESTAMP}, #{bo_text1,jdbcType=VARCHAR}, #{bo_text2,jdbcType=VARCHAR},
#{bo_text3,jdbcType=VARCHAR}, #{bo_text4,jdbcType=VARCHAR}, #{bo_text5,jdbcType=VARCHAR}
)
SELECT LAST_INSERT_ID() AS ID
insert into bom
bo_motherid,
bo_mothercode,
bo_mothername,
bo_version,
bo_status,
bo_statuscode,
bo_recorderid,
bo_recorder,
bo_recorddate,
companyId,
updaterId,
updateTime,
bo_text1,
bo_text2,
bo_text3,
bo_text4,
bo_text5,
#{bo_motherid,jdbcType=INTEGER},
#{bo_mothercode,jdbcType=VARCHAR},
#{bo_mothername,jdbcType=VARCHAR},
#{bo_version,jdbcType=VARCHAR},
#{bo_status,jdbcType=VARCHAR},
#{bo_statuscode,jdbcType=VARCHAR},
#{bo_recorderid,jdbcType=INTEGER},
#{bo_recorder,jdbcType=VARCHAR},
#{bo_recorddate,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER},
#{updaterId,jdbcType=INTEGER},
#{updateTime,jdbcType=TIMESTAMP},
#{bo_text1,jdbcType=VARCHAR},
#{bo_text2,jdbcType=VARCHAR},
#{bo_text3,jdbcType=VARCHAR},
#{bo_text4,jdbcType=VARCHAR},
#{bo_text5,jdbcType=VARCHAR},
update bom
bo_motherid = #{bo_motherid,jdbcType=INTEGER},
bo_mothercode = #{bo_mothercode,jdbcType=VARCHAR},
bo_mothername = #{bo_mothername,jdbcType=VARCHAR},
bo_version = #{bo_version,jdbcType=VARCHAR},
bo_status = #{bo_status,jdbcType=VARCHAR},
bo_statuscode = #{bo_statuscode,jdbcType=VARCHAR},
bo_recorderid = #{bo_recorderid,jdbcType=INTEGER},
bo_recorder = #{bo_recorder,jdbcType=VARCHAR},
bo_recorddate = #{bo_recorddate,jdbcType=TIMESTAMP},
companyId = #{companyId,jdbcType=INTEGER},
updaterId = #{updaterId,jdbcType=INTEGER},
updateTime = #{updateTime,jdbcType=TIMESTAMP},
bo_text1 = #{bo_text1,jdbcType=VARCHAR},
bo_text2 = #{bo_text2,jdbcType=VARCHAR},
bo_text3 = #{bo_text3,jdbcType=VARCHAR},
bo_text4 = #{bo_text4,jdbcType=VARCHAR},
bo_text5 = #{bo_text5,jdbcType=VARCHAR},
where bo_id = #{id}
update bom
set bo_motherid = #{bo_motherid,jdbcType=INTEGER},
bo_mothercode = #{bo_mothercode,jdbcType=VARCHAR},
bo_mothername = #{bo_mothername,jdbcType=VARCHAR},
bo_version = #{bo_version,jdbcType=VARCHAR},
bo_status = #{bo_status,jdbcType=VARCHAR},
bo_statuscode = #{bo_statuscode,jdbcType=VARCHAR},
bo_recorderid = #{bo_recorderid,jdbcType=INTEGER},
bo_recorder = #{bo_recorder,jdbcType=VARCHAR},
bo_recorddate = #{bo_recorddate,jdbcType=TIMESTAMP},
companyId = #{companyId,jdbcType=INTEGER},
updaterId = #{updaterId,jdbcType=INTEGER},
updateTime = #{updateTime,jdbcType=TIMESTAMP},
bo_text1 = #{bo_text1,jdbcType=VARCHAR},
bo_text2 = #{bo_text2,jdbcType=VARCHAR},
bo_text3 = #{bo_text3,jdbcType=VARCHAR},
bo_text4 = #{bo_text4,jdbcType=VARCHAR},
bo_text5 = #{bo_text5,jdbcType=VARCHAR}
where bo_id = #{id}