select id,
template_id,
content,
text_align,
font_size,
font_weight,
height,
font_color,
backgroud_color,
create_time,
sort,
is_auto,
page_distance,
image_distance,
image_url,
separate_type,
separate_style,
title,
remark,
system_module_id,
type
from zdy_print_template_module ptm
insert into zdy_print_template_module
template_id,
content,
text_align,
font_size,
font_weight,
height,
font_color,
backgroud_color,
create_time,
sort,
is_auto,
page_distance,
image_distance,
image_url,
separate_type,
separate_style,
title,
remark,
system_module_id,
type,
#{templateId},
#{content},
#{textAlign},
#{fontSize},
#{fontWeight},
#{height},
#{fontColor},
#{backgroudColor},
#{createTime},
#{sort},
#{isAuto},
#{pageDistance},
#{imageDistance},
#{imageUrl},
#{separateType},
#{separateStyle},
#{title},
#{remark},
#{systemModuleId},
#{type},
update zdy_print_template_module
template_id =
#{templateId},
content =
#{content},
text_align =
#{textAlign},
font_size =
#{fontSize},
font_weight =
#{fontWeight},
height =
#{height},
font_color =
#{fontColor},
backgroud_color =
#{backgroudColor},
create_time =
#{createTime},
sort =
#{sort},
is_auto =
#{isAuto},
page_distance =
#{pageDistance},
image_distance =
#{imageDistance},
image_url =
#{imageUrl},
separate_type =
#{separateType},
separate_style =
#{separateStyle},
title =
#{title},
remark =
#{remark},
system_module_id =
#{systemModuleId},
type =
#{type},
where id = #{id}
delete
from zdy_print_template_module
where id = #{id}
delete from zdy_print_template_module where id in
#{id}
delete
from zdy_print_template_module
where template_id = #{template_id}