Commit 9058e6ea126978a84db247b04ac56a25955a6b8a
1 parent
cf24dba1
生成排班改多线程
Showing
2 changed files
with
3 additions
and
7 deletions
src/main/java/com/bsth/service/ddexam/impl/DdexamServiceImpl.java
| @@ -246,9 +246,7 @@ public class DdexamServiceImpl implements DdexamService { | @@ -246,9 +246,7 @@ public class DdexamServiceImpl implements DdexamService { | ||
| 246 | if (userList.size() > 0) { | 246 | if (userList.size() > 0) { |
| 247 | //已有的人检查分配线路 | 247 | //已有的人检查分配线路 |
| 248 | List<SysUser> finalUserList = userList; | 248 | List<SysUser> finalUserList = userList; |
| 249 | - if (snt(finalUserList,false)) { | ||
| 250 | - kk(); | ||
| 251 | - } | 249 | + snt(finalUserList,false); |
| 252 | } | 250 | } |
| 253 | }catch (Exception e){ | 251 | }catch (Exception e){ |
| 254 | log.error("-----考试初始化失败------",e); | 252 | log.error("-----考试初始化失败------",e); |
| @@ -341,7 +339,7 @@ public class DdexamServiceImpl implements DdexamService { | @@ -341,7 +339,7 @@ public class DdexamServiceImpl implements DdexamService { | ||
| 341 | useryType(user,type); | 339 | useryType(user,type); |
| 342 | System.out.println("分配班次..."); | 340 | System.out.println("分配班次..."); |
| 343 | sysUserRepository.changeKsStatus(user.getId()); ////状态 表示今日账户已用 | 341 | sysUserRepository.changeKsStatus(user.getId()); ////状态 表示今日账户已用 |
| 344 | - | 342 | + kk(); |
| 345 | } | 343 | } |
| 346 | }.start(); | 344 | }.start(); |
| 347 | } | 345 | } |
src/main/java/com/bsth/service/subject/impl/SubjectUserServiceImpl.java
| @@ -254,8 +254,6 @@ public class SubjectUserServiceImpl extends BaseServiceImpl<SubjectUser, Integer | @@ -254,8 +254,6 @@ public class SubjectUserServiceImpl extends BaseServiceImpl<SubjectUser, Integer | ||
| 254 | } | 254 | } |
| 255 | } | 255 | } |
| 256 | //初始化考生排班 只初始化A线 | 256 | //初始化考生排班 只初始化A线 |
| 257 | - if (ddexamService.snt(userList,true)) { | ||
| 258 | - ddexamService.kk(); | ||
| 259 | - } | 257 | + ddexamService.snt(userList,true); |
| 260 | } | 258 | } |
| 261 | } | 259 | } |