|
|
@ -18,7 +18,6 @@ import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDetailFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDistributionFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.ProjectDetailResultDTO; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@ -62,9 +61,10 @@ public class ScreenProjectController { |
|
|
|
*/ |
|
|
|
@PostMapping("projectdistribution") |
|
|
|
public Result projectDistribution(@RequestBody ScreenProjectDistributionFormDTO formDTO){ |
|
|
|
if (StringUtils.isBlank(formDTO.getAreaCode()) && StringUtils.isBlank(formDTO.getAgencyId())){ |
|
|
|
/*if (StringUtils.isBlank(formDTO.getAreaCode()) && StringUtils.isBlank(formDTO.getAgencyId())){ |
|
|
|
formDTO.setAreaCode("370124"); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return screenProjectService.projectDistribution(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|