select id,
tj_num,
sampling_number,
cus_id,
application_time,
is_sign_for,
tj_time,
specimen_type,
pro_id,
pro_name,
create_by,
create_time,
update_by,
update_time,
deleted,
parent_id,
jyxh,
specimen_type_code,
is_merge,
jyxmdm,
jxbz,
create_id,
update_id
from tj_sampling
insert into tj_sampling
id,
tj_num,
sampling_number,
cus_id,
application_time,
is_sign_for,
tj_time,
specimen_type,
pro_id,
pro_name,
create_by,
create_time,
update_by,
update_time,
deleted,
parent_id,
jyxh,
specimen_type_code,
is_merge,
jyxmdm,
jxbz,
create_id,
update_id,
is_pay,
is_apply,
#{id},
tj_num,
#{samplingNumber},
#{cusId},
#{applicationTime},
#{isSignFor},
#{tjTime},
#{specimenType},
#{proId},
#{proName},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{deleted},
#{parentId},
#{jyxh},
#{specimenTypeCode},
#{isMerge},
#{jyxmdm},
#{jxbz},
#{createId},
#{updateId},
#{isPay},
#{isApply},
update tj_sampling
sampling_number =
#{samplingNumber},
tj_num=#{tjNum},
cus_id =
#{cusId},
application_time =
#{applicationTime},
is_sign_for =
#{isSignFor},
tj_time =
#{tjTime},
specimen_type =
#{specimenType},
pro_id =
#{proId},
pro_name =
#{proName},
create_by =
#{createBy},
create_time =
#{createTime},
update_by =
#{updateBy},
update_time =
#{updateTime},
deleted =
#{deleted},
parent_id =
#{parentId},
jyxh =
#{jyxh},
specimen_type_code =
#{specimenTypeCode},
is_merge =
#{isMerge},
jyxmdm =
#{jyxmdm},
jxbz =
#{jxbz},
create_id = #{createId},
update_id = #{updateId},
is_pay = #{isPay},
is_apply = #{isApply},
where id = #{id}
delete
from tj_sampling
where id = #{id}
delete from tj_sampling where id in
#{id}
UPDATE tj_sampling a SET a.parent_id=#{parentId} WHERE a.id in
#{id}
UPDATE tj_sampling a SET a.parent_id=null WHERE a.parent_id in
#{id}