a.id AS "id",
a.member_code AS "memberCode",
a.contract_type AS "contractType",
a.contract_num AS "contractNum",
a.start_date AS "startDate",
a.man_in_charge AS "manInCharge",
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"
m.name AS "memberName"
LEFT JOIN sys_member m ON m.member_code = a.member_code
INSERT INTO member_vip(
id,
member_code,
contract_type,
contract_num,
start_date,
man_in_charge,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag
) VALUES (
#{id},
#{memberCode},
#{contractType},
#{contractNum},
#{startDate},
#{manInCharge},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag}
)
UPDATE member_vip SET
member_code = #{memberCode},
contract_type = #{contractType},
contract_num = #{contractNum},
start_date = #{startDate},
man_in_charge = #{manInCharge},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks}
WHERE id = #{id}