insert into plan_need_info
unit_id,
create_by,
remark,
company_id,
create_time
#{unitId},
#{createBy},
#{remark},
#{companyId},
now()
insert into plan_borrow_info
need_unit_id,
borrow_unit_id,
create_by,
remark,
create_time
#{needUnitId},
#{borrowUnitId},
#{createBy},
#{remark},
now()
insert into ma_whole_set (type_id,parent_id,part_num,whole_type_name,create_by,ascription_type,create_time,status,company_id)
values(#{item.typeId},#{item.parentId},#{item.totalNum},#{item.wholeTypeName},#{item.createBy},#{item.ascriptionType}, now(),1,#{item.companyId})
delete from ma_whole_set
where parent_id = #{id}