a.id AS "id",
a.org_id AS "orgId",
a.org_code AS "orgCode",
a.valid_date AS "validDate",
a.rest_print_code AS "restPrintCode",
a.create_date AS "createDate",
a.create_by AS "createBy.id",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag"
INSERT INTO sys_org_print(
id,
org_id,
org_code,
valid_date,
rest_print_code,
create_date,
create_by,
update_by,
update_date,
remarks,
del_flag
) VALUES (
#{id},
#{orgId},
#{orgCode},
#{validDate},
#{restPrintCode},
#{createDate},
#{createBy.id},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag}
)
UPDATE sys_org_print SET
org_id = #{orgId},
org_code = #{orgCode},
valid_date = #{validDate},
rest_print_code = #{restPrintCode},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks}
WHERE id = #{id}
UPDATE sys_org_print SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}