|
|
@@ -142,8 +142,8 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
//广场的
|
|
|
acceptableProject.addAll(projectDao.findAllByStatusLessThanAndProjectDistributionTypeId(CrowdTestProjectStatus.HAS_RECEIVED, 2L));
|
|
|
//区域的
|
|
|
- for (Regional regional : user.getRegionalManager().getRegionalList()) {
|
|
|
- acceptableProject.addAll(projectDao.findByStatusLessThanAndProjectDistributionTypeIdAndDistributionCity(CrowdTestProjectStatus.HAS_RECEIVED, 1L, regional.getName()));
|
|
|
+ for (RegionalManagerToRegional regional : user.getRegionalManager().getRegionalList()) {
|
|
|
+ acceptableProject.addAll(projectDao.findByStatusLessThanAndProjectDistributionTypeIdAndDistributionCity(CrowdTestProjectStatus.HAS_RECEIVED, 1L, regional.getCity()));
|
|
|
}
|
|
|
myCrowdDTO.setAcceptableProjects(acceptableProject.stream().map(crowdTestProjectPO -> {
|
|
|
CrowdTestProject project = new CrowdTestProject();
|
|
|
@@ -347,7 +347,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
} //下面两种情况为非定向未被接收
|
|
|
else if (project.getProjectDistributionTypeId()==1){
|
|
|
if (project.getStatus()==CrowdTestProjectStatus.HAS_RELEASED
|
|
|
- && user.getRegionalManager().getRegionalList().stream().anyMatch(regional -> regional.getName().equals(project.getDistributionCity()))){
|
|
|
+ && user.getRegionalManager().getRegionalList().stream().anyMatch(regional -> regional.getCity().equals(project.getDistributionCity()))){
|
|
|
operationControl.setReceive(true);
|
|
|
}
|
|
|
} else if (project.getProjectDistributionTypeId() == 2){
|