Commit 3e3c26a925ea5bce60c81c9864cdbebf18484d23
1 parent
07ea9227
1
Showing
5 changed files
with
7 additions
and
8 deletions
src/main/java/com/bsth/XDApplication.java
| @@ -144,7 +144,7 @@ public class XDApplication implements CommandLineRunner { | @@ -144,7 +144,7 @@ public class XDApplication implements CommandLineRunner { | ||
| 144 | 144 | ||
| 145 | /** 线调业务 */ | 145 | /** 线调业务 */ |
| 146 | sexec.scheduleWithFixedDelay(scheduleRefreshThread, 30, 120, TimeUnit.SECONDS);//班次更新线程 | 146 | sexec.scheduleWithFixedDelay(scheduleRefreshThread, 30, 120, TimeUnit.SECONDS);//班次更新线程 |
| 147 | - sexec.scheduleWithFixedDelay(scheduleLateThread, 140, 20, TimeUnit.SECONDS);//检查班次误点 | 147 | + //sexec.scheduleWithFixedDelay(scheduleLateThread, 140, 20, TimeUnit.SECONDS);//检查班次误点 |
| 148 | //sexec.scheduleWithFixedDelay(gpsDataLoader, 100, 2, TimeUnit.SECONDS);//抓取GPS数据 | 148 | //sexec.scheduleWithFixedDelay(gpsDataLoader, 100, 2, TimeUnit.SECONDS);//抓取GPS数据 |
| 149 | //sexec.scheduleWithFixedDelay(rfidDataLoader, 5, 5, TimeUnit.SECONDS);//抓取RFID数据 | 149 | //sexec.scheduleWithFixedDelay(rfidDataLoader, 5, 5, TimeUnit.SECONDS);//抓取RFID数据 |
| 150 | sexec.scheduleWithFixedDelay(fixedCheckStationCodeThread, 60, 60 * 5, TimeUnit.SECONDS);//检查班次站点编码 | 150 | sexec.scheduleWithFixedDelay(fixedCheckStationCodeThread, 60, 60 * 5, TimeUnit.SECONDS);//检查班次站点编码 |
| @@ -191,7 +191,7 @@ public class XDApplication implements CommandLineRunner { | @@ -191,7 +191,7 @@ public class XDApplication implements CommandLineRunner { | ||
| 191 | 191 | ||
| 192 | /** 线调业务 */ | 192 | /** 线调业务 */ |
| 193 | sexec.scheduleWithFixedDelay(scheduleRefreshThread, 30, 120, TimeUnit.SECONDS);//班次更新线程 | 193 | sexec.scheduleWithFixedDelay(scheduleRefreshThread, 30, 120, TimeUnit.SECONDS);//班次更新线程 |
| 194 | - sexec.scheduleWithFixedDelay(scheduleLateThread, 140, 20, TimeUnit.SECONDS);//检查班次误点 | 194 | + //sexec.scheduleWithFixedDelay(scheduleLateThread, 140, 20, TimeUnit.SECONDS);//检查班次误点 |
| 195 | //sexec.scheduleWithFixedDelay(gpsDataLoader, 100, 2, TimeUnit.SECONDS);//抓取GPS数据 | 195 | //sexec.scheduleWithFixedDelay(gpsDataLoader, 100, 2, TimeUnit.SECONDS);//抓取GPS数据 |
| 196 | //sexec.scheduleWithFixedDelay(rfidDataLoader, 5, 5, TimeUnit.SECONDS);//抓取RFID数据 | 196 | //sexec.scheduleWithFixedDelay(rfidDataLoader, 5, 5, TimeUnit.SECONDS);//抓取RFID数据 |
| 197 | sexec.scheduleWithFixedDelay(fixedCheckStationCodeThread, 60, 60 * 5, TimeUnit.SECONDS);//检查班次站点编码 | 197 | sexec.scheduleWithFixedDelay(fixedCheckStationCodeThread, 60, 60 * 5, TimeUnit.SECONDS);//检查班次站点编码 |
src/main/java/com/bsth/repository/subject/SubjectUserRepository.java
| @@ -25,7 +25,7 @@ public interface SubjectUserRepository extends BaseRepository<SubjectUser, Integ | @@ -25,7 +25,7 @@ public interface SubjectUserRepository extends BaseRepository<SubjectUser, Integ | ||
| 25 | + " order by su.user_id",nativeQuery=true) | 25 | + " order by su.user_id",nativeQuery=true) |
| 26 | List<Object[]> searchSubjectUserByUserId(String rq, List<String> userIds); | 26 | List<Object[]> searchSubjectUserByUserId(String rq, List<String> userIds); |
| 27 | 27 | ||
| 28 | - @Query(value="select su.subject_id,su.rq,su.result,s.subject_text,s.operate_test,su.remark " | 28 | + @Query(value="select su.subject_id,su.rq,su.result,s.subject_text,s.operate_test,su.remark,su.fraction " |
| 29 | + " from bsth_subject_user su,bsth_subject s where su.subject_id =s.id and su.rq =?1 and su.user_id = ?2 " | 29 | + " from bsth_subject_user su,bsth_subject s where su.subject_id =s.id and su.rq =?1 and su.user_id = ?2 " |
| 30 | + " order by su.user_id",nativeQuery=true) | 30 | + " order by su.user_id",nativeQuery=true) |
| 31 | List<Object[]> searchSubjectUserDetail(String rq, String userId); | 31 | List<Object[]> searchSubjectUserDetail(String rq, String userId); |
src/main/resources/static/pages/subjectUser/subjectUserDetailList.html
| @@ -29,6 +29,7 @@ | @@ -29,6 +29,7 @@ | ||
| 29 | <td style="min-width: 150px">题目</td> | 29 | <td style="min-width: 150px">题目</td> |
| 30 | <td style="min-width: 150px">操作</td> | 30 | <td style="min-width: 150px">操作</td> |
| 31 | <td style="min-width: 150px">结果</td> | 31 | <td style="min-width: 150px">结果</td> |
| 32 | + <td style="min-width: 50px">分数</td> | ||
| 32 | <td style="min-width: 50px">成绩</td> | 33 | <td style="min-width: 50px">成绩</td> |
| 33 | </tr> | 34 | </tr> |
| 34 | </thead> | 35 | </thead> |
| @@ -69,6 +70,7 @@ | @@ -69,6 +70,7 @@ | ||
| 69 | <td>{{obj.subjectText}}</td> | 70 | <td>{{obj.subjectText}}</td> |
| 70 | <td>{{obj.operateTest}}</td> | 71 | <td>{{obj.operateTest}}</td> |
| 71 | <td>{{obj.remark}}</td> | 72 | <td>{{obj.remark}}</td> |
| 73 | + <td>{{obj.fraction}}</td> | ||
| 72 | <td>{{obj.result}}</td> | 74 | <td>{{obj.result}}</td> |
| 73 | </tr> | 75 | </tr> |
| 74 | {{/each}} | 76 | {{/each}} |
src/main/resources/static/real_control_v2/js/subject/subject.js
| @@ -20,7 +20,6 @@ var su_subject = (function () { | @@ -20,7 +20,6 @@ var su_subject = (function () { | ||
| 20 | //otify_succ('全部题目已操作完成 请查看自己的成绩!'); | 20 | //otify_succ('全部题目已操作完成 请查看自己的成绩!'); |
| 21 | return; //所有题目已经考完 无考题的情况 | 21 | return; //所有题目已经考完 无考题的情况 |
| 22 | } | 22 | } |
| 23 | - debugger | ||
| 24 | var htmlStr = template('suject_pop_wrap', list); | 23 | var htmlStr = template('suject_pop_wrap', list); |
| 25 | $wrap.append(htmlStr); | 24 | $wrap.append(htmlStr); |
| 26 | 25 | ||
| @@ -33,7 +32,6 @@ var su_subject = (function () { | @@ -33,7 +32,6 @@ var su_subject = (function () { | ||
| 33 | }, function(index) { | 32 | }, function(index) { |
| 34 | // 关闭弹出层. | 33 | // 关闭弹出层. |
| 35 | layer.closeAll(); | 34 | layer.closeAll(); |
| 36 | - debugger | ||
| 37 | var thisall= $('.uk-panels .north-button #submit'); | 35 | var thisall= $('.uk-panels .north-button #submit'); |
| 38 | var id= thisall.data('id'); | 36 | var id= thisall.data('id'); |
| 39 | //判断答题是否正确 返回参数 返回下一题的情况 | 37 | //判断答题是否正确 返回参数 返回下一题的情况 |
| @@ -58,7 +56,6 @@ var su_subject = (function () { | @@ -58,7 +56,6 @@ var su_subject = (function () { | ||
| 58 | function retunhtml(list){ | 56 | function retunhtml(list){ |
| 59 | let i = 1; | 57 | let i = 1; |
| 60 | for (let t in list){ | 58 | for (let t in list){ |
| 61 | - debugger | ||
| 62 | list[t].index = i; | 59 | list[t].index = i; |
| 63 | if(list[t].result == null || list[t].result == ""){ | 60 | if(list[t].result == null || list[t].result == ""){ |
| 64 | list[t].number = list.length; | 61 | list[t].number = list.length; |
src/main/resources/static/real_control_v2/main.html
| @@ -87,8 +87,8 @@ | @@ -87,8 +87,8 @@ | ||
| 87 | <div class="north-tm"> | 87 | <div class="north-tm"> |
| 88 | 操作:{{subjectId.reason}} | 88 | 操作:{{subjectId.reason}} |
| 89 | </div> | 89 | </div> |
| 90 | - <div class="north-tmx"> | ||
| 91 | - 答案:({{subjectId.dir == 0 ? '上行':'下行'}}){{subjectId.operateTest}} | 90 | + <div class="north-tmx" style="visibility: {{isOperateTest == 1 ? 'hidden':'visible'}}" > |
| 91 | + 答案:({{subjectId.dir == 0 ? '上行':'下行'}}){{subjectId.operateTest}} | ||
| 92 | </div> | 92 | </div> |
| 93 | <div class="north-button"> | 93 | <div class="north-button"> |
| 94 | <button id="submit" class="subject_button" data-id="{{id}}">提交</button> | 94 | <button id="submit" class="subject_button" data-id="{{id}}">提交</button> |