A.gmpg_id,
A.oc_id,
A.group_id,
A.account_id,
A.position_id,
A.grant_group_id,
B.group_name AS grant_group_name
insert into s_group_member_position_grant
gmpg_id,
oc_id,
group_id,
account_id,
position_id,
grant_group_id,
created_by,
created_at,
#{gmpgId,jdbcType=BIGINT},
#{ocId,jdbcType=BIGINT},
#{groupId,jdbcType=BIGINT},
#{accountId,jdbcType=BIGINT},
#{positionId,jdbcType=BIGINT},
#{grantGroupId,jdbcType=BIGINT},
#{createdBy,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP},
UPDATE s_group_member_position_grant
group_id = #{groupId,jdbcType=BIGINT},
account_id = #{accountId,jdbcType=BIGINT},
position_id = #{positionId,jdbcType=BIGINT},
grant_group_id = #{grantGroupId,jdbcType=BIGINT},
updated_by = #{updatedBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
WHERE gmpg_id = #{gmpgId,jdbcType=BIGINT}
DELETE
FROM s_group_member_position_grant
WHERE 1 = 1
AND gmpg_id = #{gmpgId,jdbcType=BIGINT}
and oc_id = #{ocId}
AND group_id = #{groupId,jdbcType=BIGINT}
AND account_id = #{accountId,jdbcType=BIGINT}
AND position_id = #{pId,jdbcType=BIGINT}