select id,
belong_goal_id,
supplier_code,
supplier_name,
attr1,
attr2,
attr3,
attr4,
create_by,
create_time,
update_by,
update_time,
factory_code,
del_flag
from qc_goal_distribute
insert into qc_goal_distribute
id,
belong_goal_id,
supplier_code,
supplier_name,
attr1,
attr2,
attr3,
attr4,
create_by,
create_time,
update_by,
update_time,
factory_code,
del_flag,
#{id},
#{belongGoalId},
#{supplierCode},
#{supplierName},
#{attr1},
#{attr2},
#{attr3},
#{attr4},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{factoryCode},
#{delFlag},
update qc_goal_distribute
belong_goal_id =
#{belongGoalId},
supplier_code =
#{supplierCode},
supplier_name =
#{supplierName},
attr1 =
#{attr1},
attr2 =
#{attr2},
attr3 =
#{attr3},
attr4 =
#{attr4},
create_by =
#{createBy},
create_time =
#{createTime},
update_by =
#{updateBy},
update_time =
#{updateTime},
factory_code =
#{factoryCode},
del_flag =
#{delFlag},
where id = #{id}
update qc_goal_distribute set del_flag = '1' where id = #{id}
update qc_goal_distribute set del_flag = '1' where id in
#{id}
delete from qc_goal_distribute where belong_goal_id = #{belongGoalId}