|
@@ -15,7 +15,6 @@ import com.qmth.exam.reserve.bean.org.OrgInfo;
|
|
|
import com.qmth.exam.reserve.bean.stdapply.CategoryVO;
|
|
|
import com.qmth.exam.reserve.bean.student.*;
|
|
|
import com.qmth.exam.reserve.cache.impl.ApplyTaskCacheService;
|
|
|
-import com.qmth.exam.reserve.cache.impl.CategoryCacheService;
|
|
|
import com.qmth.exam.reserve.cache.impl.OrgCacheService;
|
|
|
import com.qmth.exam.reserve.config.SysProperty;
|
|
|
import com.qmth.exam.reserve.dao.StudentDao;
|
|
@@ -55,7 +54,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
private static final Logger log = LoggerFactory.getLogger(StudentServiceImpl.class);
|
|
|
|
|
|
@Autowired
|
|
|
- private CategoryCacheService categoryCacheService;
|
|
|
+ private SystemPropertyService systemPropertyService;
|
|
|
|
|
|
@Autowired
|
|
|
private StudentApplyService studentApplyService;
|
|
@@ -152,6 +151,12 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
throw new StatusException("学生信息不存在");
|
|
|
}
|
|
|
|
|
|
+ // 自主预约全局开关
|
|
|
+ boolean globalOpen = systemPropertyService.existPropValue(info.getOrgId(), Constants.APPLY_SWITCH, Constants.APPLY_SWITCH_OPEN);
|
|
|
+ if (!globalOpen) {
|
|
|
+ info.setSelfApplyEnable(false);
|
|
|
+ }
|
|
|
+
|
|
|
return info;
|
|
|
}
|
|
|
|