a.id AS "id",
a.title AS "title",
a.image AS "image",
a.small_image AS "smallImage",
a.show_flag AS "showFlag",
a.sort AS "sort",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag"
INSERT INTO gc_web_banner(
id,
title,
image,
small_image,
show_flag,
sort,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag
) VALUES (
#{id},
#{title},
#{image},
#{smallImage},
#{showFlag},
#{sort},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag}
)
UPDATE gc_web_banner SET
title = #{title},
image = #{image},
small_image = #{smallImage},
show_flag = #{showFlag},
sort = #{sort},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks}
WHERE id = #{id}
UPDATE gc_web_banner SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}