a.id AS "id",
a.cate_name AS "cateName",
a.cate_code AS "cateCode",
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 sys_business_cate(
id,
cate_name,
cate_code,
sort,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag
) VALUES (
#{id},
#{cateName},
#{cateCode},
#{sort},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag}
)
UPDATE sys_business_cate SET
cate_name = #{cateName},
cate_code = #{cateCode},
sort = #{sort},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks}
WHERE id = #{id}
UPDATE sys_business_cate SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}