Commit d1a11954c21ab1acbbdba8a32e33e0dc945193eb
1 parent
a4a93d14
update...
Showing
1 changed file
with
2 additions
and
4 deletions
src/main/java/com/bsth/service/directive/DirectiveServiceImpl.java
| ... | ... | @@ -114,10 +114,8 @@ public class DirectiveServiceImpl extends BaseServiceImpl<D60, Integer> implemen |
| 114 | 114 | + sch.getQdzName() + "发往" + sch.getZdzName(); |
| 115 | 115 | |
| 116 | 116 | //下发0x01指令 调度指令(闹钟有效) |
| 117 | - long t = System.currentTimeMillis(), alarmTime; | |
| 118 | - alarmTime = sch.getDfsjT(); | |
| 119 | - if (sch.getDfsjT() < t) | |
| 120 | - alarmTime = t + 1000 * 30; | |
| 117 | + long t = System.currentTimeMillis() + 1000 * 30, | |
| 118 | + alarmTime = sch.getDfsjT() < t?t:sch.getDfsjT(); | |
| 121 | 119 | |
| 122 | 120 | d60 = new DirectiveCreator().createD60_01(sch.getClZbh(), text, Integer.parseInt(sch.getXlDir()) |
| 123 | 121 | , 0, new Date(alarmTime)); | ... | ... |