Browse Source

学校升级优化

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
a847caad8e

+ 2
- 0
sapi/src/main/java/com/xhkjedu/sapi/service/system/SchoolService.java View File

567
     private void checkUpTime() throws Exception {
567
     private void checkUpTime() throws Exception {
568
         //获取区域限制学年升级时间
568
         //获取区域限制学年升级时间
569
         TCloud cloud = cloudMapper.getCloudUpTime();
569
         TCloud cloud = cloudMapper.getCloudUpTime();
570
+        if (N_Utils.isEmpty(cloud.getStarttime())) throw new Exception("未设置升级时间,请联系区管理员");
571
+
570
         if (!ApiUtil.compareCurrDateTime(cloud.getStarttime(), cloud.getStoptime())) {
572
         if (!ApiUtil.compareCurrDateTime(cloud.getStarttime(), cloud.getStoptime())) {
571
             throw new Exception("不在学年升级时间范围,禁止升级");
573
             throw new Exception("不在学年升级时间范围,禁止升级");
572
         }
574
         }

Loading…
Cancel
Save