“mitao”
2026-03-06 412fa709df33fcad4647f394fcebba8f68c2d471
xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsRoleController.java
@@ -6,9 +6,7 @@
import com.xiaopeng.api.model.account.XpOperationsRole;
import com.xiaopeng.common.core.domain.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@@ -43,5 +41,17 @@
        return R.ok(list);
    }
    /**
     * 内部调用
     * 查询运维人员关联的角色列表
     *
     * @param operationUserId 运维人员id
     */
    @GetMapping("/inner/xp-operations-role/listByOperationUserId")
    public R<List<XpOperationsRole>> listByOperationUserId(@RequestParam("operationUserId") Long operationUserId) {
        List<XpOperationsRole> list = xpOperationsRoleService.list(new QueryWrapper<XpOperationsRole>()
                .eq("operations_user_id", operationUserId));
        return R.ok(list);
    }
}