select detail_id, parent_code, standard_type, standard_name, factory_code, detail_up_limit, detail_down_limit, detail_unit, attr1, attr2, attr3, del_flag, create_time, create_by, update_time, update_by, detail_code from equ_check_item_detail
insert into equ_check_item_detail
detail_id,
parent_code,
standard_type,
standard_name,
factory_code,
detail_up_limit,
detail_down_limit,
detail_unit,
attr1,
attr2,
attr3,
del_flag,
create_time,
create_by,
update_time,
update_by,
detail_code,
#{detailId},
#{parentCode},
#{standardType},
#{standardName},
#{factoryCode},
#{detailUpLimit},
#{detailDownLimit},
#{detailUnit},
#{attr1},
#{attr2},
#{attr3},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{detailCode},
update equ_check_item_detail
parent_code = #{parentCode},
standard_type = #{standardType},
standard_name = #{standardName},
factory_code = #{factoryCode},
detail_up_limit = #{detailUpLimit},
detail_down_limit = #{detailDownLimit},
detail_unit = #{detailUnit},
attr1 = #{attr1},
attr2 = #{attr2},
attr3 = #{attr3},
del_flag = #{delFlag},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
detail_code = #{detailCode},
where detail_id = #{detailId} and del_flag = '0'
delete from equ_check_item_detail
where parent_code = (
select item_code from equ_check_item where item_id = #{itemId} )
delete from equ_check_item_detail where detail_id = #{detailId}
delete from equ_check_item_detail where detail_id in
#{detailId}
update equ_check_item_detail
set del_flag = '1'
where parent_code = (
select item_code from equ_check_item where item_id = #{itemId} )