Blame view

ProjectController.java 42.4 KB
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665
package com.zhongzhi.controller;

import com.zhongzhi.common.constant.Platform;
import com.zhongzhi.common.constant.ProjectType;
import com.zhongzhi.common.utils.LoginRequired;
import com.zhongzhi.common.utils.ResponseData;
import com.zhongzhi.dto.member.CreateProjectMemberDTO;
import com.zhongzhi.dto.project.*;
import com.zhongzhi.dto.review.ProjectReviewPageDTO;
import com.zhongzhi.dto.review.ProjectReviewScoreDTO;
import com.zhongzhi.model.ProjectDO;
import com.zhongzhi.service.ProjectService;
import com.zhongzhi.vo.ResponseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 项目表 前端控制器
 * </p>
 *
 * @author DengMin
 * @since 2021-05-11
 */
@RestController
@Api(tags = "项目")
@RequestMapping("/project")
public class ProjectController {

    @Autowired
    private ProjectService projectService;

    @PostMapping(value = "/getProjectDetail")
    @LoginRequired({Platform.student})
    @ApiOperation("学生端(高职赛道、种子赛道通用) ---项目详情: id/项目ID")
    public ResponseVO getProjectDetail(@RequestBody ProjectDO projectDO) {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectById(projectDO.getId()));
    }

    @PostMapping(value = "/getMainTrackProject")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---主赛道项目分页查询: matchId/赛事年份ID, pageNo/当前页数, pageSize/每页显示条数")
    public ResponseVO getMainTrackProject(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getMainTrackProject(projectListPageDTO));
    }

    @PostMapping(value = "/getMainTrackProjectById")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端---根据ID查询主赛道项目信息")
    public ResponseVO getMainTrackProjectById() {
        return ResponseData.generateCreatedResponse(0, projectService.getMainTrackProjectById());
    }

    @PostMapping(value = "/createMainTrackProject")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---保存主赛道项目信息: 项目logo/logoUri、项目名称/projectName、所在地/address、itemField/所属领域、项目概述/projectIntro、projectTransform/国家级重大、重点科研项目的科研成果转化项目" +
            "学校科技成果转化/resultTransfer、参赛申报人为科技成果的完成人或所有人/competitionOwner、参赛申报人为科技成果的第一完成人或所有人/competitionFirst" +
            "师生共创/bothInvention、项目进展/projectProgress(创意设计阶段,已注册公司)、公司名称/companyName、法人身份/legalPersonStatus、法人姓名/legalPersonName、职务/position、注册资金/registerFund" +
            "注册时间/registerDate、注册省份/registerProvince、注册地址/registerAddress、统一社会信用代码/unifyCode" +
            "股权结构/pos:[{ shareholderStatus/股东身份、shareholderName/股东名称、shareholdingRatio/持股比例 }]" +
            "隐私设置/privacySetting(保密,公开)、materialsType/项目计划书类型、materialsSize/项目计划书大小、materialsName/项目计划书名称、materialsUrl/项目计划书地址" +
            "vodUrl 视频地址")
    public ResponseVO createMainTrackProject(@RequestBody CreateMainTrackProjectDTO createMainTrackProjectDTO) {
        projectService.createMainTrackProject(createMainTrackProjectDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getProjectMemberById")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---根据项目ID查询主赛道团队成员")
    public ResponseVO getProjectMemberById() {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectMemberById());
    }

    @PostMapping(value = "/createProjectMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---保存主赛道团队信息:name/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号" +
            "teamMember/团队成员:[{ teamName/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号 }]" +
            "mentor/指导老师:[{ teacherName/姓名、 company/工作单位、positionTitle/职称、position/职务、telephone/手机号}]")
    public ResponseVO createProjectMember(@RequestBody CreateProjectMemberDTO createProjectMemberDTO) {
        createProjectMemberDTO.setProjectGroup(ProjectType.MAIN_TRACK);
        createProjectMemberDTO.setProjectType(ProjectType.MAIN_TRACK);
        projectService.createProjectMember(createProjectMemberDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/withdrawn")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---撤回申请:id/项目ID")
    public ResponseVO withdrawn(@RequestBody ProjectDO projectDO) {
        projectService.withdrawn(projectDO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/rollback")
//    @LoginRequired(Platform.school)
    @ApiOperation("院校端 ---上报撤回:id/项目ID")
    public ResponseVO rollback(@RequestBody ProjectDO projectDO) {
        projectService.rollback(projectDO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getSeedTrackProject")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---种子赛道项目分页查询: matchId/年份ID, pageNo/当前页数, pageSize/每页显示条数")
    public ResponseVO getSeedTrackProject(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getSeedTrackProject(projectListPageDTO));
    }

    @PostMapping(value = "/createSeedTrackProject")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---保存种子赛道项目信息: projectProgress:红色文创/科技创新  projectName/项目名称、projectGroup/组别、projectIntro/介绍及创新点、projectCreativity/设计背景、" +
            "scientificPrinciple/科学设计、applicationProspect/应用前景、roadShowForm/路演形式、restriction/创意实施或实验所受条件的限制" +
            "、materials/项目材料:[{ materialsType/项目计划书类型、materialsSize/项目计划书大小、materialsName/项目计划书名称、materialsUrl/项目计划书地址 }]")
    public ResponseVO createSeedTrackProject(@RequestBody CreateSeedTrackProjectDTO createSeedTrackProjectDTO) {
        projectService.createSeedTrackProject(createSeedTrackProjectDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getTechnologyProjectById")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---根据ID查询科技创新项目")
    public ResponseVO getTechnologyProjectById() {
        return ResponseData.generateCreatedResponse(0, projectService.getSeedTrackProjectById());
    }

    @PostMapping(value = "/getCulturalProjectById")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---根据ID查询红色文创项目")
    public ResponseVO getCulturalProjectById() {
        return ResponseData.generateCreatedResponse(0, projectService.getCulturalProjectById());
    }

    @PostMapping(value = "/uploadTechnologyProjectAttachment")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 --- 上传科技创新项目加盖公章的附件: printAttachment/附件地址, printAttachmentType/附件类型, printAttachmentName/附件名称")
    public ResponseVO uploadTechnologyProjectAttachment(@RequestBody PrintAttachmentDTO printAttachmentDTO) {
        printAttachmentDTO.setProjectGroup(ProjectType.TECHNOLOGY_INNOVATION_GROUP);
        projectService.uploadPrintAttachment(printAttachmentDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/createTechnologyProjectMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---保存科技创新项目团队信息:name/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、idCard身份证 studentNo/学籍号 fiveYears" +
            "teamMember/团队成员:[{ teamName/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号 }]" +
            "mentor/指导老师:[{ teacherName/姓名、 company/工作单位、positionTitle/职称、position/职务、telephone/手机号}]")
    public ResponseVO createTechnologyProjectMember(@RequestBody CreateProjectMemberDTO createProjectMemberDTO) {
        createProjectMemberDTO.setProjectGroup(ProjectType.TECHNOLOGY_INNOVATION_GROUP);
        createProjectMemberDTO.setProjectType(ProjectType.SEED_TRACK);
        projectService.createProjectMember(createProjectMemberDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getTechnologyProjectMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---查询科技创新项目团队信息")
    public ResponseVO getTechnologyProjectMember() {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectMember(ProjectType.TECHNOLOGY_INNOVATION_GROUP));
    }

    @PostMapping(value = "/uploadCulturalProjectAttachment")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 --- 上传红色文创项目加盖公章的附件: printAttachment/附件地址, printAttachmentType/附件类型, printAttachmentName/附件名称")
    public ResponseVO uploadCulturalProjectAttachment(@RequestBody PrintAttachmentDTO printAttachmentDTO) {
        printAttachmentDTO.setProjectGroup(ProjectType.CULTURAL_CREATIVE_GROUP);
        projectService.uploadPrintAttachment(printAttachmentDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/createCulturalProjectMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---保存红色文创项目团队信息:name/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、idCard 身份证 studentNo/学籍号  fiveYears" +
            "teamMember/团队成员:[{ teamName/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号 }]" +
            "mentor/指导老师:[{ teacherName/姓名、 company/工作单位、positionTitle/职称、position/职务、telephone/手机号}]")
    public ResponseVO createCulturalProjectMember(@RequestBody CreateProjectMemberDTO createProjectMemberDTO) {
        createProjectMemberDTO.setProjectGroup(ProjectType.CULTURAL_CREATIVE_GROUP);
        createProjectMemberDTO.setProjectType(ProjectType.SEED_TRACK);
        projectService.createProjectMember(createProjectMemberDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getCulturalProjectMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---查询红色文创项目团队信息")
    public ResponseVO getCulturalProjectMember() {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectMember(ProjectType.CULTURAL_CREATIVE_GROUP));
    }

    @PostMapping(value = "/getMainTrackProjectPage")
    @LoginRequired(Platform.school)
    @ApiOperation("院校端 --- 分页查询主赛道全部项目:matchId/赛事ID, projectSchedule/项目进度(全部项目传空字符串、校内赛、复赛、决赛), " +
            "projectStatus/项目状态, itemField/领域, name/搜名称, pageNo/当前页数 、pageSize/每页显示条数")
    public ResponseVO getMainTrackProjectPage(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getMainTrackProjectPage(projectListPageDTO));
    }

    @PostMapping(value = "/getMainTrackProjectDetail")
    @LoginRequired({Platform.center, Platform.school, Platform.review})
    @ApiOperation("学生端/中心端 ---查询主赛道项目详情:id/项目ID")
    public ResponseVO getMainTrackProjectDetail(@RequestBody ProjectDO projectDO) {
        return ResponseData.generateCreatedResponse(0, projectService.getMainTrackProjectDetail(projectDO.getId()));
    }

    @PostMapping(value = "/delete")
    @LoginRequired({Platform.center, Platform.school})
    @ApiOperation("中心端/院校端 --- 删除项目:id/项目ID")
    public ResponseVO delete(@RequestBody ProjectDO projectDO) {
        projectService.removeById(projectDO.getId());
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getSeedTrackProjectList")
    @LoginRequired(Platform.school)
    @ApiOperation("院校端 --- 分页查询种子赛道全部项目:matchId/赛事ID,projectGroup/项目组别(科技创新、红色文创)、projectSchedule/项目进度(全部项目传空字符串、校内赛、复赛、决赛), " +
            "projectStatus/项目状态, itemField/领域, name/搜名称, pageNo/当前页数 、pageSize/每页显示条数")
    public ResponseVO getSeedTrackProjectList(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getSeedTrackProjectList(projectListPageDTO));
    }

    @PostMapping(value = "/getSeedTrackProjectPage")
    @LoginRequired(Platform.center)
    @ApiOperation("中心端 --- 分页查询种子赛道全部项目:matchId/赛事ID,projectGroup/项目组别(科技创新、红色文创)、projectSchedule/项目进度(全部项目传空字符串、校内赛、复赛、决赛), " +
            "projectStatus/项目状态, itemField/领域, name/搜名称, pageNo/当前页数 、pageSize/每页显示条数  projectProgress")
    public ResponseVO getSeedTrackProjectPage(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getSeedTrackProjectPage(projectListPageDTO));
    }

    @PostMapping(value = "/downloadTechnologyPDF")
    @LoginRequired({Platform.student})
    @ApiOperation("学生端 --- 种子赛道科技创新申请表下载")
    public void downloadTechnologyPDF() {
        projectService.downloadPDF(ProjectType.TECHNOLOGY_INNOVATION_GROUP);
    }

    @PostMapping(value = "/downloadCulturalPDF")
    @LoginRequired({Platform.student})
    @ApiOperation("学生端 --- 种子赛道红色文创申请表下载")
    public void downloadCulturalPDF() {
        projectService.downloadPDF(ProjectType.CULTURAL_CREATIVE_GROUP);
    }

    @PostMapping(value = "/getSeedTrackProjectDetail")
    @LoginRequired({Platform.center, Platform.school, Platform.review})
    @ApiOperation("中心端/院校端 --- 种子赛道项目详情:id/项目ID")
    public ResponseVO getSeedTrackProjectDetail(@RequestBody ProjectDO projectDO) {
        return ResponseData.generateCreatedResponse(0, projectService.getSeedTrackProjectDetail(projectDO.getId()));
    }

    @PostMapping(value = "/weedOut")
    @LoginRequired({Platform.center, Platform.school})
    @ApiOperation("院校端 --- 不予提交:id/项目ID")
    public ResponseVO weedOut(@RequestBody ApproveDTO approveDTO) {
        projectService.weedOut(approveDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/batchWeedOut")
    @LoginRequired({Platform.center, Platform.school})
    @ApiOperation("院校端 --- 批量不予提交:ids/项目ID")
    public ResponseVO batchWeedOut(@RequestBody ApproveDTO approveDTO) {
        projectService.batchWeedOut(approveDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/pass")
    @LoginRequired({Platform.center, Platform.school})
    @ApiOperation("中心端/院校端 --- (校内赛/初赛/复赛/决赛)通过:id/项目ID、" +
            "projectStatus/1:市级复赛通过, 2:市级优胜奖,3/6:市级银奖,4:市级铜奖,5:市级金奖")
    public ResponseVO pass(@RequestBody ApproveDTO approveDTO) {
        projectService.pass(approveDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/batchPass")
    @LoginRequired({Platform.center, Platform.school})
    @ApiOperation("中心端/院校端 --- 批量(校内赛/初赛/复赛/决赛)通过:ids/项目ID、" +
            "projectStatus/1:市级复赛通过, 2:市级优胜奖,3/6:市级银奖,4:市级铜奖,5:市级金奖")
    public ResponseVO batchPass(@RequestBody ApproveDTO approveDTO) {
        projectService.batchPass(approveDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getReviewList")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 评审列表:projectGroup/组别(科技创新、红色文创、主赛道)、projectName/搜索项目或院校、 projectStatus/项目状态(市级复赛、市级决赛)、projectReview/评审分配状态(已分配/未分配)、" +
            "pageNo/当前页数、pageSize/每页显示条数")
    public ResponseVO getReviewList(@RequestBody ReviewListDTO reviewListDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getReviewList(reviewListDTO));
    }

    @PostMapping(value = "/getProjectReviewNum")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 评审列表项目数量统计:matchId/赛事年份ID、projectProgress/组别(科技创新、文化创意), projectStatus/项目进度(市级复赛、市级决赛)")
    public ResponseVO getProjectReviewNum(@RequestBody ReviewListDTO reviewListDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectReviewNum(reviewListDTO));
    }

    @PostMapping(value = "/getProjectReviewAssignNum")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 评审分配项目数量统计:matchId/赛事年份ID、projectGroup/组别(科技创新、红色文创), projectStatus/项目进度(市级复赛、市级决赛)")
    public ResponseVO getProjectReviewAssignNum(@RequestBody ReviewListDTO reviewListDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectReviewAssignNum(reviewListDTO));
    }

    @PostMapping(value = "/getReviewProjectNum")
    @LoginRequired({Platform.review})
    @ApiOperation("评审端 --- 评审项目数量统计:matchId/赛事年份ID、projectGroup/组别(科技创新、红色文创), projectStatus/项目状态(市级复赛、市级决赛)")
    public ResponseVO getReviewProjectNum(@RequestBody ReviewListDTO reviewListDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getReviewProjectNum(reviewListDTO));
    }

    @PostMapping(value = "/getExportProjectListField")
    @LoginRequired({Platform.center, Platform.school})
    @ApiOperation("中心端 --- 种子赛道项目字段")
    public ResponseVO getExportProjectListField() {
        return ResponseData.generateCreatedResponse(0, projectService.getExportProjectField());
    }

    @PostMapping(value = "/exportProjectCollegeList")
    @LoginRequired({Platform.school})
    @ApiOperation("院校端 --- 批量导出院校项目:matchId/赛事ID")
    public void exportProjectCollegeList(@RequestBody ProjectCollegeListDTO projectCollegeListDTO) {
        projectService.exportProjectCollegeList(projectCollegeListDTO);
    }

    @PostMapping(value = "/exportProjectList")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 批量导出种子赛道项目:matchId/赛事ID")
    public void exportProjectList(@RequestBody ProjectCollegeListDTO projectCollegeListDTO) {
        projectService.exportProjectList(projectCollegeListDTO);
    }

    @PostMapping(value = "/exportProjectAll")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 导出全部种子赛道项目:matchId/赛事ID, projectSchedule/项目进度,projectGroup/项目组别")
    public void exportProjectAll(@RequestBody ProjectCollegeListDTO projectCollegeListDTO) {
        projectService.exportProjectAll(projectCollegeListDTO);
    }

    @PostMapping(value = "/exportProjectAllProgress")
//    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 导出全部种子赛道项目:matchId/赛事ID, projectSchedule/项目进度,projectGroup/项目组别  projectProgress 组别")
    public void exportProjectAllProgress(@RequestBody ProjectCollegeListDTO projectCollegeListDTO) {
        projectService.exportProjectAllProgress(projectCollegeListDTO);
    }


    @PostMapping(value = "/getExportProjectField")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 评审项目字段")
    public ResponseVO getExportProjectField() {
        return ResponseData.generateCreatedResponse(0, projectService.getExportProjectReviewField());
    }

    @PostMapping(value = "/exportProject")
//    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 评审项目导出:matchId/赛事ID")
    public ResponseVO exportProject(@RequestBody ReviewListDTO reviewListDTO) {
        projectService.exportProjectReview(reviewListDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/exportProjectNew")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 评审项目导出:matchId/赛事ID")
    public ResponseVO exportProjectNew(@RequestBody ReviewListDTO reviewListDTO) {
        projectService.exportProjectNew(reviewListDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/exportProjectById")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 评审项目根据ID导出:id/ID")
    public ResponseVO exportProjectById(@RequestBody ReviewListDTO reviewListDTO) {
        projectService.exportProjectById(reviewListDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getProjectReviewPage")
    @LoginRequired({Platform.review})
    @ApiOperation("评审端 ---评审项目分页查询:matchId/赛事年份ID、projectSchedule/项目进度(复赛、决赛)、status/状态(待评审, 已评审)、projectGroup/项目组别、projectName/搜索名称、pageNo/当前页数、pageSize/每页显示条数")
    public ResponseVO getProjectReviewPage(@RequestBody ProjectReviewPageDTO projectReviewPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectReviewPage(projectReviewPageDTO));
    }

    @PostMapping(value = "/setScore")
    @LoginRequired({Platform.review})
    @ApiOperation("评审端 ---批量预评分:reviewScore[{ id/项目ID、score/分数 }] +" +
            "   --- 单个预评分:id/项目ID、score/分数")
    public ResponseVO setScore(@RequestBody ProjectReviewScoreDTO projectReviewScoreDTO) {
        projectService.setScore(projectReviewScoreDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/submitted")
    @LoginRequired({Platform.review})
    @ApiOperation("评审端 ---批量提交:ids:[项目ID]" +
            " --- 提交评分:id/项目ID ")
    public ResponseVO submitted(@RequestBody ProjectReviewScoreDTO projectReviewScoreDTO) {
        projectService.submitted(projectReviewScoreDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "getCollegeDataOverview")
    @LoginRequired({Platform.school})
    @ApiOperation("院校端 --- 种子赛道数据概览")
    public ResponseVO getCollegeDataOverview(@RequestBody DataOverviewDTO dataOverviewDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getCollegeDataOverview(dataOverviewDTO));
    }

//    @PostMapping(value = "getCollegeVocationalDataOverview")
//    @LoginRequired({Platform.school})
//    @ApiOperation("院校端 --- 职教赛道数据概览")
//    public ResponseVO getCollegeVocationalDataOverview() {
//        return ResponseData.generateCreatedResponse(0, projectService.getCollegeVocationalDataOverview());
//    }

    @PostMapping(value = "getDataOverview")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 数据概览")
    public ResponseVO getDataOverview(@RequestBody DataOverviewDTO dataOverviewDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalDataOverview(dataOverviewDTO));
    }

//    @PostMapping(value = "getSeedTrackDataOverview")
//    @LoginRequired({Platform.center})
//    @ApiOperation("中心端 --- 种子赛道数据概览")
//    public ResponseVO getSeedTrackDataOverview() {
//        return ResponseData.generateCreatedResponse(0, projectService.getSeedTrackDataOverview());
//    }
//
//    @PostMapping(value = "getMainTrackDataOverview")
//    @LoginRequired({Platform.center})
//    @ApiOperation("中心端 --- 主赛道数据概览")
//    public ResponseVO getMainTrackDataOverview() {
//        return ResponseData.generateCreatedResponse(0, projectService.getMainTrackDataOverview());
//    }

    @PostMapping(value = "exportCollegeProject")
    @LoginRequired({Platform.school})
    @ApiOperation("院校端 --- 批量导出项目")
    public ResponseVO exportCollegeProject(@RequestBody CollegeProjectDTO collegeProjectDTO) {
        projectService.exportCollegeProject(collegeProjectDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "getProjectByStudentId")
    @LoginRequired({Platform.student})
    @ApiOperation("学生端 --- 项目查重:matchId/赛事ID, projectGroup/组别")
    public ResponseVO getProjectByStudentId(@RequestBody StudentProjectDTO studentProjectDTO) {
        projectService.getProjectByStudentId(studentProjectDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "getSeedTrackProjectNum")
    @LoginRequired({Platform.center, Platform.school})
    @ApiOperation("中心端/院校端 --- 项目数量: matchId/赛事ID、projectGroup/项目组别")
    public ResponseVO getSeedTrackProjectNum(@RequestBody SeedTrackProjectNumDTO seedTrackProjectNumDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getSeedTrackProjectNum(seedTrackProjectNumDTO));
    }

    /* -- 职教接口(学生端) -- */
    @PostMapping(value = "createVocationalProject")
    @LoginRequired({ Platform.student })
    @ApiOperation("学生端(职教)--创建职教项目:项目logo/logoUri、项目名称/projectName、所属领域/itemField、项目概述/projectIntro、国家级重大、重点科研项目的科研成果转化项目/projectTransform、" +
    "学校科技成果转化/resultTransfer、参赛申报人为科技成果的完成人或所有人/competitionOwner、参赛申报人为科技成果的第一完成人或所有人/competitionFirst、师生共创/bothInvention、组别/projectProgress、项目进展/projectStage" +
    "公司名称/companyName、法人姓名/legalPersonName、法人职务/position、注册资金/registerFund、注册时间/registerDate、注册省份/registerProvince、注册地址/registerAddress、统一社会信用代码/unifyCode、财务报表地址/financialStatement、是否获得投资/investment、" +
    "ownership(股权结构): [{ shareholderStatus/股东身份、shareholderName/股东名称、shareholdingRatio/持股比例 }]" +
    "隐私设置/privacySetting(保密,公开)、materialsType/项目计划书类型、materialsSize/项目计划书大小、materialsName/项目计划书名称、materialsUrl/项目计划书地址、项目PPT地址/projectPptUrl、项目TTP类型/projectPptType、项目PPT名称/projectPptName" +
    "patent(获得专利): [{专利国别/country、公开号/publicationNumber、专利标题/patentTitle、专利类型/patentType、专利号/patentNumber、专利申请人/patentApplicants、获得时间/issuedTime、到期时间/expirationTime、发明人/inventor、其他发明人/otherInventors}]"+
    "paper(论文发表): [{论文名称/paperTitle、发表期刊/publishedJournals、DOI号/doi、是否有共同/common、第一作者/firstAuthor、其他作者/otherAuthor}]"+
    "award(奖项): [{奖项名称/awardTitle、获奖项目名称/awardProjectTitle、level/级别、获奖人/prizewinner、获奖时间/winningTime}]"+
    "copyright(软件著作): [{软件名称/dynacomm、著作权人/copyrightOwner、权利获取方式/rightAcquisitionMethod、开发完成日期/developmentDate、开发发表日期/publishedDate、权利范围/interestField、登记号/registerNumber}]"+
    "works(作品著作): [{作品名称/worksName、作者/author、创作完成日期/completionDate、首次发表日期/firstPublicationDate、作品类别/worksType、登记号/registerNumber}]" +
    "trademark(商标): [{国际分类号/classificationNumber、商标名称/tradeName、注册人/registeredPerson、注册时间/registeredDate、有效日期/effectiveDate、商标编号/trademarkNumber}]" +
            "vodUrl")
    public ResponseVO createVocationalProject(@RequestBody CreateVocationalProjectDTO createVocationalProjectDTO) {
        projectService.createVocationalProject(createVocationalProjectDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "updateVocationalProject")
    @LoginRequired({ Platform.student })
    @ApiOperation("学生端(职教)--修改职教项目:id/项目ID、项目logo/logoUri、所属领域/itemField、项目概述/projectIntro、国家级重大、重点科研项目的科研成果转化项目/projectTransform、" +
    "学校科技成果转化/resultTransfer、参赛申报人为科技成果的完成人或所有人/competitionOwner、参赛申报人为科技成果的第一完成人或所有人/competitionFirst、师生共创/bothInvention、组别/projectProgress、项目进展/projectStage" +
    "公司名称/companyName、法人姓名/legalPersonName、法人职务/position、注册资金/registerFund、注册时间/registerDate、注册省份/registerProvince、注册地址/registerAddress、统一社会信用代码/unifyCode、财务报表地址/financialStatement、是否获得投资/investment、" +
    "ownership(股权结构): [{ shareholderStatus/股东身份、shareholderName/股东名称、shareholdingRatio/持股比例 }]" +
    "隐私设置/privacySetting(保密,公开)、materialsType/项目计划书类型、materialsSize/项目计划书大小、materialsName/项目计划书名称、materialsUrl/项目计划书地址、项目PPT地址/projectPptUrl、项目TTP类型/projectPptType、项目PPT名称/projectPptName" +
    "patent(获得专利): [{专利国别/country、公开号/publicationNumber、专利标题/patentTitle、专利类型/patentType、专利号/patentNumber、专利申请人/patentApplicants、获得时间/issuedTime、到期时间/expirationTime、发明人/inventor、其他发明人/otherInventors}]"+
    "paper(论文发表): [{论文名称/paperTitle、发表期刊/publishedJournals、DOI号/doi、是否有共同/common、第一作者/firstAuthor、其他作者/otherAuthor}]"+
    "award(奖项): [{奖项名称/awardTitle、获奖项目名称/awardProjectTitle、level/级别、获奖人/prizewinner、获奖时间/winningTime}]"+
    "copyright(软件著作): [{软件名称/dynacomm、著作权人/copyrightOwner、权利获取方式/rightAcquisitionMethod、开发完成日期/developmentDate、开发发表日期/publishedDate、权利范围/interestField、登记号/registerNumber}]"+
    "works(作品著作): [{作品名称/worksName、作者/author、创作完成日期/completionDate、首次发表日期/firstPublicationDate、作品类别/worksType、登记号/registerNumber}]" +
    "trademark(商标): [{国际分类号/classificationNumber、商标名称/tradeName、注册人/registeredPerson、注册时间/registeredDate、有效日期/effectiveDate、商标编号/trademarkNumber}]")
    public ResponseVO updateVocationalProject(@RequestBody CreateVocationalProjectDTO createVocationalProjectDTO) {
        projectService.updateVocationalProject(createVocationalProjectDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "getVocationalProject")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端 ---职教赛道项目分页查询: matchId/赛事届数ID ,pageNo/当前页数, pageSize/每页显示条数")
    public ResponseVO getVocationalProject(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalProject(projectListPageDTO));
    }

    @PostMapping(value = "getVocationalProjectById")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端(职教)--根据ID查询高职赛道项目信息")
    public ResponseVO getVocationalProjectById() {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalProjectById());
    }

    @PostMapping(value = "createVocationalMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端(职教) ---保存职教赛道团队信息:name/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号、email/邮箱  fiveYears" +
            "teamMember/团队成员:[{ teamName/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号  teamTelephone 手机号 }]" +
                "mentor/指导老师:[{ teacherName/姓名、 company/工作单位、positionTitle/职称、position/职务、telephone/手机号  idCard}]")
    public ResponseVO createVocationalMember(@RequestBody CreateProjectMemberDTO createProjectMemberDTO) {
        projectService.createVocationalMember(createProjectMemberDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "updateVocationalMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端(职教) ---保存职教赛道团队信息:id/项目ID、name/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号、email/邮箱" +
            "teamMember/团队成员:[{ teamName/姓名、school/就读学校、grade/年级、major/就读专业、sex/性别、studentNo/学籍号 }]" +
            "mentor/指导老师:[{ teacherName/姓名、 company/工作单位、positionTitle/职称、position/职务、telephone/手机号}]")
    public ResponseVO updateVocationalMember(@RequestBody CreateProjectMemberDTO createProjectMemberDTO) {
        projectService.updateVocationalMember(createProjectMemberDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "getVocationalProjectMember")
    @LoginRequired(Platform.student)
    @ApiOperation("学生端(职教) ---查询职教项目团队信息")
    public ResponseVO getVocationalProjectMember() {
        return ResponseData.generateCreatedResponse(0, projectService.getProjectMember(ProjectType.VOCATIONAL));
    }

    /* -- 管理端 -- */
    @PostMapping(value = "/getVocationalProjectPage")
    @LoginRequired(Platform.center)
    @ApiOperation("中心端 --- 分页查询职教赛道项目管理:matchId/赛事ID,projectGroup/项目组别(高职、中职)、projectSchedule/项目进度(全部项目传空字符串、校内赛、市级初赛、市级复赛、市级决赛), " +
            "projectStatus/项目状态, itemField/领域, name/搜名称, pageNo/当前页数 、pageSize/每页显示条数")
    public ResponseVO getVocationalProjectPage(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalProjectPage(projectListPageDTO));
    }

    @PostMapping(value = "updateAllEditStatus")
    @LoginRequired(Platform.center)
    @ApiOperation("中心端 --- 更新所有编辑状态:matchId/赛事ID、projectGroup/项目组别、projectSchedule/项目进度、editStatus/状态(0:关闭,1:开启)")
    public ResponseVO updateAllEditStatus(@RequestBody EditStatusDTO editStatusDTO) {
        projectService.updateAllEditStatus(editStatusDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "batchUpdateEditStatus")
    @LoginRequired(Platform.center)
    @ApiOperation("中心端 --- 批量更新编辑状态:ids/项目ID(数组)、editStatus/状态(0:关闭,1:开启)")
    public ResponseVO batchUpdateEditStatus(@RequestBody EditStatusDTO editStatusDTO) {
        projectService.batchUpdateEditStatus(editStatusDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "updateEditStatus")
    @LoginRequired(Platform.center)
    @ApiOperation("中心端 --- 更新编辑状态:id/项目ID、editStatus/状态(0:关闭,1:开启)")
    public ResponseVO updateEditStatus(@RequestBody EditStatusDTO editStatusDTO) {
        projectService.updateEditStatus(editStatusDTO);
        return ResponseData.generateCreatedResponse(0);
    }

    @PostMapping(value = "/getVocationalReviewList")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 职教评审列表:projectGroup/组别、projectName/搜索项目或院校、 projectStatus/项目状态(市级初赛、市级复赛、市级决赛)、projectReview/评审分配状态(已分配/未分配)、" +
            "pageNo/当前页数、pageSize/每页显示条数")
    public ResponseVO getVocationalReviewList(@RequestBody ReviewListDTO reviewListDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalReviewList(reviewListDTO));
    }

    @PostMapping(value = "/getVocationalProjectDetail")
    @LoginRequired({Platform.center, Platform.school, Platform.review})
    @ApiOperation("中心端/院校端 --- 职教赛道项目详情:id/项目ID")
    public ResponseVO getVocationalProjectDetail(@RequestBody ProjectDO projectDO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalProjectDetail(projectDO.getId()));
    }

    /* -- 院校端 -- */
    @PostMapping(value = "/getVocationalProjectList")
    @LoginRequired(Platform.school)
    @ApiOperation("院校端 --- 分页查询职教赛道项目:matchId/赛事ID,projectGroup/项目组别、projectSchedule/项目进度(全部项目传空字符串、校内赛、初赛、复赛、决赛), " +
            "projectStatus/项目状态, itemField/领域, name/搜名称, pageNo/当前页数 、pageSize/每页显示条数")
    public ResponseVO getVocationalProjectList(@RequestBody ProjectListPageDTO projectListPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalProjectList(projectListPageDTO));
    }

    @PostMapping(value = "getReviewVocationalNum")
    @LoginRequired(Platform.review)
    @ApiOperation("评审端 --- (职教)项目数量: matchId/赛事ID、projectGroup/项目组别、 projectSchedule/赛事状态  projectJudgeId")
    public ResponseVO getReviewVocationalNum(@RequestBody ReviewVocationalNumDTO reviewVocationalNumDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getReviewVocationalNum(reviewVocationalNumDTO));
    }

    /* -- 评审端 -- */
    @PostMapping(value = "/getVocationalProjectReviewPage")
    @LoginRequired({Platform.review})
    @ApiOperation("评审端 ---职教评审项目分页查询:matchId/赛事年份ID、projectSchedule/项目进度(初赛、复赛、决赛)、status/状态(待评审, 已评审)、projectGroup/项目组别、projectName/搜索名称、pageNo/当前页数、pageSize/每页显示条数")
    public ResponseVO getVocationalProjectReviewPage(@RequestBody ProjectReviewPageDTO projectReviewPageDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalProjectReviewPage(projectReviewPageDTO));
    }

    @PostMapping(value = "getVocationalProjectNum")
    @LoginRequired({Platform.center, Platform.school, Platform.review})
    @ApiOperation("中心端/院校端 --- (职教)项目管理数量: matchId/赛事ID、projectGroup/项目组别")
    public ResponseVO getVocationalProjectNum(@RequestBody SeedTrackProjectNumDTO seedTrackProjectNumDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalProjectNum(seedTrackProjectNumDTO));
    }

    @PostMapping(value = "/getVocationalReviewNum")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 职教评审列表(已评审 + 待评审)项目数量统计:matchId/赛事年份ID、projectGroup/组别(高职、中职), projectStatus/项目进度(校级申请项目、市级初赛项目、市级复赛项目、市级 决赛项目)")
    public ResponseVO getVocationalReviewNum(@RequestBody ReviewListDTO reviewListDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalReviewNum(reviewListDTO));
    }

    @PostMapping(value = "/getVocationalAssignNum")
    @LoginRequired({Platform.center})
    @ApiOperation("中心端 --- 职教评审分配(已分配 + 未分配)项目数量统计:matchId/赛事年份ID、projectGroup/组别(高职、中职), projectStatus/项目进度(校级申请项目、市级初赛项目、市级复赛项目、市级 决赛项目)")
    public ResponseVO getVocationalAssignNum(@RequestBody ReviewListDTO reviewListDTO) {
        return ResponseData.generateCreatedResponse(0, projectService.getVocationalAssignNum(reviewListDTO));
    }

    @PostMapping(value = "importVocationalProject")
    @ApiOperation("中心端/院校端 --- 导出高职项目赛事: projectGroup/项目组别")
    @LoginRequired({ Platform.center, Platform.school })
    public void importVocationalProject(@RequestBody ImportVocationalProjectDTO importVocationalProjectDTO) {
        projectService.importVocationalProject(importVocationalProjectDTO);
    }

    @PostMapping(value = "importProjectByGroup")
    @ApiOperation("中心端/院校端 ---excel 数据预览导出市级初赛/市级复赛项目: projectGroup/项目组别")
    @LoginRequired({ Platform.center, Platform.school })
    public void importProjectByGroup(@RequestBody ImportVocationalProjectDTO importVocationalProjectDTO) {
        projectService.importProjectByGroup(importVocationalProjectDTO);
    }

    @PostMapping("exportProjectByGroup")
    @ApiOperation("中心端/院校端 ---pdf 数据预览导出市级初赛/市级复赛项目: projectGroup/项目组别 matchId")
//    @LoginRequired({ Platform.center, Platform.school })
    public void exportProjectByGroup(@RequestBody ImportVocationalProjectDTO importVocationalProjectDTO) {
        projectService.exportProjectByGroup(importVocationalProjectDTO);
    }





}