id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, brand_name AS brandName, spec_type AS specType, type AS type, num AS num, unit AS unit, user AS user, owner AS owner, qr AS qr, original_code AS originalCode, code AS code, mark AS mark, gmt_outbound AS gmtOutbound, gmt_inbound AS gmtInbound, equipment_state AS equipmentState, buy_amount AS buyAmount, sale_amount AS saleAmount, no AS no, user_id AS userId, sai_id AS saiId, count AS count, type_id AS typeId, brand_id AS brandId, specs_id AS specsId
insert into equipment_info(
brand_name,
spec_type,
type,
num,
unit,
user,
owner,
qr,
original_code,
code,
mark,
gmt_outbound,
gmt_inbound,
equipment_state,
buy_amount,
sale_amount,
no,
user_id,
sai_id,
type_id,
brand_id,
specs_id,
count,
is_delete,
gmt_create,
gmt_modified
)values(
#{ brandName},
#{ specType},
#{ type},
#{ num},
#{ unit},
#{ user},
#{ owner},
#{ qr},
#{ originalCode},
#{ code},
#{ mark},
#{ gmtOutbound},
#{ gmtInbound},
#{ equipmentState},
#{ buyAmount},
#{ saleAmount},
#{ no},
#{ userId},
#{ saiId},
#{typeId},
#{brandId},
#{specsId]},
#{ count},
0,
now(),
now()
)
update
equipment_info
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
brand_name = #{brandName},
spec_type = #{specType},
type = #{type},
num = #{num},
unit = #{unit},
user = #{user},
owner = #{owner},
qr = #{qr},
original_code = #{originalCode},
code = #{code},
mark = #{mark},
gmt_outbound = #{gmtOutbound},
gmt_inbound = #{gmtInbound},
equipment_state = #{equipmentState},
buy_amount = #{buyAmount},
sale_amount = #{saleAmount},
no = #{no},
user_id = #{userId},
sai_id = #{saiId},
type_id=#{typeId},
brand_id=#{brandId},
specs_id=#{specsId]},
count = #{count}
,gmt_modified = now()
where id = #{id}
update
equipment_info
set
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
brand_name = #{brandName},
spec_type = #{specType},
type = #{type},
num = #{num},
unit = #{unit},
user = #{user},
owner = #{owner},
qr = #{qr},
original_code = #{originalCode},
code = #{code},
mark = #{mark},
gmt_outbound = #{gmtOutbound},
gmt_inbound = #{gmtInbound},
equipment_state = #{equipmentState},
buy_amount = #{buyAmount},
sale_amount = #{saleAmount},
no = #{no},
user_id = #{userId},
sai_id = #{saiId},
type_id=#{typeId},
brand_id=#{brandId},
specs_id=#{specsId},
count = #{count}
,gmt_modified = now()
where id = #{id}
update equipment_info set is_delete = 1 where id=#{id} limit 1
update equipment_info set type = #{type} where type_id=#{id} and is_delete=0
update equipment_info set brand_name = #{brand} where brand_id=#{id} and is_delete=0
update equipment_info set spec_type = #{specs} where specs_id=#{id} and is_delete=0