Commit 9e9e559954e79367581844e8370669e96903cf65
1 parent
cf5ab197
初始创建线路从1开始
Showing
1 changed file
with
5 additions
and
0 deletions
src/main/java/com/bsth/service/ddexam/impl/DdexamServiceImpl.java
| ... | ... | @@ -476,6 +476,11 @@ public class DdexamServiceImpl implements DdexamService { |
| 476 | 476 | if(litst.size() != 6){ |
| 477 | 477 | return false; |
| 478 | 478 | } |
| 479 | + //让线路从1开始 部分功能0会异常 | |
| 480 | + if(linebumber == 0){ | |
| 481 | + linebumber = 1; | |
| 482 | + } | |
| 483 | + | |
| 479 | 484 | String lineCodeStr = ""; |
| 480 | 485 | for(int j = 0 ; j < litst.size() ; j++){ //6个 <6 |
| 481 | 486 | LineSt linest = litst.get(j).getLine(); //旧line | ... | ... |