UPDATE
m_pictures_template_area
SET
modifier = #{modifier},
template_area_font_color = #{templateAreaFontColor},
template_area_font_family = #{templateAreaFontFamily},
template_area_font_bold = #{templateAreaFontBold},
template_area_font_size = #{templateAreaFontSize},
template_area_font_center = #{templateAreaFontCenter},
gmt_modified = #{gmtModified}
WHERE
pictures_template_id = #{picturesTemplateId}
UPDATE
m_pictures_template_area
SET
template_area_module_data = #{templateAreaModuleData},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
pictures_template_area_id = #{picturesTemplateAreaId}
UPDATE
m_pictures_template_area
SET
template_area_left = #{templateAreaLeft},
template_area_top = #{templateAreaTop},
template_area_down = #{templateAreaDown},
template_area_right = #{templateAreaRight},
template_area_height = #{templateAreaHeight},
template_area_width = #{templateAreaWidth},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
pictures_template_area_id = #{picturesTemplateAreaId}
INSERT INTO m_pictures_template_area(
pictures_template_area_id,
pictures_template_id,
template_area_source,
template_area_left,
template_area_top,
template_area_down,
template_area_right,
template_area_height,
template_area_width,
template_area_color,
template_area_remark,
template_area_status,
template_area_file,
template_area_server_link,
template_area_font_center,
template_area_font_size,
template_area_font_bold,
template_area_font_family,
template_area_font_color,
template_area_font_value,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{picturesTemplateAreaId},
#{picturesTemplateId},
#{templateAreaSource},
#{templateAreaLeft},
#{templateAreaTop},
#{templateAreaDown},
#{templateAreaRight},
#{templateAreaHeight},
#{templateAreaWidth},
#{templateAreaColor},
#{templateAreaRemark},
#{templateAreaStatus},
#{templateAreaFile},
#{templateAreaServerLink},
#{templateAreaFontCenter},
#{templateAreaFontSize},
#{templateAreaFontBold},
#{templateAreaFontFamily},
#{templateAreaFontColor},
#{templateAreaFontValue},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
m_pictures_template_area
SET
is_delete = 1,
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
pictures_template_area_id IN
#{picturesTemplateAreaIds[${index}]}
DELETE FROM
m_pictures_template_area
WHERE
pictures_template_area_id IN
#{picturesTemplateAreaIds[${index}]}
UPDATE
m_pictures_template_area
SET
template_area_color = #{templateAreaColor},
template_area_source = #{templateAreaSource},
template_area_font_center = #{templateAreaFontCenter},
template_area_font_size = #{templateAreaFontSize},
template_area_font_bold = #{templateAreaFontBold},
template_area_font_family = #{templateAreaFontFamily},
template_area_font_color = #{templateAreaFontColor},
template_area_font_value = #{templateAreaFontValue},
template_area_remark = #{templateAreaRemark},
template_area_file = #{templateAreaFile},
template_area_server_link = #{templateAreaServerLink},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
pictures_template_area_id = #{picturesTemplateAreaId}