|
@@ -26,7 +26,6 @@ import com.keao.edu.user.service.ExamRegistrationPaymentService;
|
|
|
import com.keao.edu.user.service.ExamRegistrationService;
|
|
|
import com.keao.edu.user.service.OrganizationService;
|
|
|
import com.keao.edu.util.collection.MapUtil;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Isolation;
|
|
@@ -118,9 +117,7 @@ public class ExamRegistrationPaymentServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
throw new BizException("报名人数报名金额更新失败");
|
|
|
}
|
|
|
Organization organization = organizationService.get(examRegistration.getOrganId());
|
|
|
- if(StringUtils.countMatches(organization.getParentOrganIdTag(), ",")<=0){
|
|
|
- return order;
|
|
|
- }
|
|
|
+
|
|
|
List<Integer> parentOrganIds = Arrays.stream(organization.getParentOrganIdTag().split(","))
|
|
|
.map(e -> Integer.valueOf(e)).collect(Collectors.toList());
|
|
|
List<ExamOrganizationRelation> examOrgans = examOrganizationRelationDao.getExamOrganizationRelations(examRegistration.getExaminationBasicId(), parentOrganIds);
|