|
|
@ -1,9 +1,11 @@ |
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.exception.ValidateException; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.screencoll.ScreenCollFormDTO; |
|
|
|
import com.epmet.dto.screencoll.form.*; |
|
|
|
import com.epmet.service.evaluationindex.screen.AnScreenCollService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@ -30,6 +32,7 @@ public class AnScreenCollController { |
|
|
|
*/ |
|
|
|
@PostMapping("pmtotal") |
|
|
|
public Result pmTotal(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<AnGrassRootsPmTotalMonthlyFormDTO> formDTO){ |
|
|
|
if(StringUtils.isBlank(customerId)) throw new ValidateException("客户Id不能为空"); |
|
|
|
screenCollService.pmTotal(formDTO,customerId); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -44,6 +47,7 @@ public class AnScreenCollController { |
|
|
|
*/ |
|
|
|
@PostMapping("pmrank") |
|
|
|
public Result pmRank(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<AnGrassRootsPmRankFormDTO> formDTO){ |
|
|
|
if(StringUtils.isBlank(customerId)) throw new ValidateException("客户Id不能为空"); |
|
|
|
screenCollService.pmRank(formDTO,customerId); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -58,6 +62,7 @@ public class AnScreenCollController { |
|
|
|
*/ |
|
|
|
@PostMapping("grassrootsorg") |
|
|
|
public Result grassrootsOrg(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<AnGrassRootsOrgMonthlyFormDTO> formDTO){ |
|
|
|
if(StringUtils.isBlank(customerId)) throw new ValidateException("客户Id不能为空"); |
|
|
|
screenCollService.grassrootsOrg(formDTO,customerId); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -72,6 +77,7 @@ public class AnScreenCollController { |
|
|
|
*/ |
|
|
|
@PostMapping("grassrootsgovern") |
|
|
|
public Result grassrootsGovern(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<AnGrassRootsGovernMonthlyFormDTO> formDTO){ |
|
|
|
if(StringUtils.isBlank(customerId)) throw new ValidateException("客户Id不能为空"); |
|
|
|
screenCollService.grassrootsGovern(formDTO,customerId); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -86,6 +92,7 @@ public class AnScreenCollController { |
|
|
|
*/ |
|
|
|
@PostMapping("projectFile") |
|
|
|
public Result projectFile(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<AnCommunityProjectProfileFormDTO> formDTO){ |
|
|
|
if(StringUtils.isBlank(customerId)) throw new ValidateException("客户Id不能为空"); |
|
|
|
screenCollService.communityProjectProfile(formDTO,customerId); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|