insert into mm_disassembly
(
org_id,opt_time,opter,type,code,url,remark
)values(
#{orgId},#{optTime},#{opter},#{type},#{code},#{url},#{remark}
)
insert into mm_disold_record
(
TASK_ID,OPT_TIME,OPTER,TYPE_ID,MA_ID,DEVICE_CODE,NEW_DEVICE_CODE,URL,REMARK
)values(
#{taskId},#{optTime},#{opter},#{typeId},#{maId},#{originNum},#{deviceCode},#{url},#{remark}
)
insert into mm_disnew_record
(
TASK_ID,OPT_TIME,OPTER,TYPE_ID,MA_ID,URL,REMARK,DEVICE_CODE,NEW_DEVICE_CODE
)values(
#{taskId},#{optTime},#{opter},#{typeId},#{maId},#{url},#{remark},#{originNum},#{deviceCode}
)
update ma_org_relation set NUM=#{num} where TYPE_ID=#{typeId} and ORG_ID=#{orgId}