A.lgm_id,
A.oc_id,
A.lg_id,
A.account_id,
A.lgp_id,
B.lgp_name,
C.account_name,
C.account_real_name,
C.account_avatar,
C.account_phone,
A.group_id,
D.group_name,
A.position_id,
E.position_name,
A.duty,
A.remark,
A.sort_no
INSERT INTO leading_group_member
oc_id,
lgm_id,
lg_id,
lgp_id,
group_id,
position_id,
account_id,
duty,
remark,
sort_no,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{lgmId ,jdbcType=BIGINT},
#{lgId ,jdbcType=BIGINT},
#{lgpId ,jdbcType=BIGINT},
#{groupId ,jdbcType=BIGINT},
#{positionId ,jdbcType=BIGINT},
#{accountId ,jdbcType=BIGINT},
#{duty ,jdbcType=VARCHAR},
#{remark ,jdbcType=VARCHAR},
#{sortNo ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE leading_group_member
lgp_Id = #{lgpId ,jdbcType=BIGINT},
group_id = #{groupId ,jdbcType=BIGINT},
position_id = #{positionId ,jdbcType=BIGINT},
account_id = #{accountId ,jdbcType=BIGINT},
duty = #{duty ,jdbcType=VARCHAR},
remark = #{remark ,jdbcType=VARCHAR},
sort_no = #{sortNo ,jdbcType=BIGINT},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE oc_Id = #{ocId ,jdbcType=BIGINT} AND lgm_id = #{lgmId ,jdbcType=BIGINT}
UPDATE leading_group_member
position_id = #{positionId ,jdbcType=BIGINT},
WHERE oc_Id = #{ocId ,jdbcType=BIGINT} AND account_id = #{accountId ,jdbcType=BIGINT}
DELETE FROM leading_group_member
WHERE oc_id = #{ocId ,jdbcType=BIGINT} AND deleted_flag = 0
AND lgm_id = #{lgmId ,jdbcType=BIGINT}
AND lg_id = #{lgId ,jdbcType=BIGINT}
AND account_id = #{accountId ,jdbcType=BIGINT}