A.oc_id, A.group_id, A.group_name, A.group_code, A.group_cat_id, C.group_cat_title, A.node_left, A.node_right, A.parent_id, A.root_id, B.group_name as parent_name, A.node_level, A.is_leaf, A.is_fixed, A.group_desc INSERT INTO s_group oc_id, group_id, group_name, group_code, group_cat_id, node_left, node_right, parent_id, root_id, node_level, is_leaf, is_fixed, group_desc, group_select, created_by, created_at, #{ocId,jdbcType=BIGINT}, #{groupId,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, #{groupCode,jdbcType=VARCHAR}, #{groupCatId,jdbcType=BIGINT}, #{nodeLeft,jdbcType=BIGINT}, #{nodeRight,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, #{rootId,jdbcType=BIGINT}, #{nodeLevel,jdbcType=BIGINT}, #{isLeaf,jdbcType=BIGINT}, #{isFixed,jdbcType=BIGINT}, #{groupDesc,jdbcType=VARCHAR}, #{groupSelect,jdbcType=VARCHAR}, #{createdBy,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, UPDATE s_group group_name = #{groupName,jdbcType=VARCHAR}, group_code = #{groupCode,jdbcType=VARCHAR}, group_cat_id = #{groupCatId,jdbcType=BIGINT}, node_left = #{nodeLeft,jdbcType=BIGINT}, node_right = #{nodeRight,jdbcType=BIGINT}, parent_id = #{parentId,jdbcType=BIGINT}, node_level = #{nodeLevel,jdbcType=BIGINT}, group_desc = #{groupDesc,jdbcType=VARCHAR}, is_leaf = #{isLeaf,jdbcType=BIGINT}, oc_id = #{ocId,jdbcType=BIGINT}, group_select =#{groupSelect,jdbcType=VARCHAR}, updated_by = #{updatedBy,jdbcType=BIGINT}, updated_at = #{updatedAt,jdbcType=TIMESTAMP}, WHERE oc_id = #{ocId,jdbcType=BIGINT} AND group_id = #{groupId ,jdbcType=BIGINT} UPDATE s_group deleted_by = #{deletedBy ,jdbcType=BIGINT}, deleted_at = #{deletedAt ,jdbcType=DATE}, deleted_flag = #{deletedFlag ,jdbcType=BIGINT}, WHERE deleted_flag = 0 AND oc_id = #{ocId,jdbcType=BIGINT} AND group_id = #{groupId ,jdbcType=BIGINT} = #{nodeLeft ,jdbcType=BIGINT} AND node_right <= #{nodeRight ,jdbcType=BIGINT} ]]>