|
|
@@ -155,9 +155,9 @@ public class DzCardsController extends BaseController
|
|
|
if (!sysUser.getDeptId().equals(agent.getDeptId())) {
|
|
|
throw new ValidationException("只能分配给下级代理");
|
|
|
}
|
|
|
- dzCardsService.assignCard(!NumberUtils.isPositive(agent.getParentId()) ? agentId : agent.getParentId(), agentId, begin, end, location, examType, schoolId);
|
|
|
+ dzCardsService.assignCard(NumberUtils.isPositive(agent.getParentId()) ? agent.getParentId() : agentId, agentId, begin, end, location, examType, schoolId);
|
|
|
} else { // 平台指定, TODO 暂只支持二级代理
|
|
|
- dzCardsService.assignCard(!NumberUtils.isPositive(agent.getParentId()) ? agentId : agent.getParentId(), agentId, begin, end, location, examType, schoolId);
|
|
|
+ dzCardsService.assignCard(NumberUtils.isPositive(agent.getParentId()) ? agent.getParentId() : agentId, agentId, begin, end, location, examType, schoolId);
|
|
|
}
|
|
|
return AjaxResult.success();
|
|
|
}
|