Commit e19742922359bbc3239d4f619f2e9c3e34e60529
1 parent
882ce174ea
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 0 additions and 12 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/service/impl/MsgGenerateServiceImpl.java
View file @
e197429
| ... | ... | @@ -162,34 +162,22 @@ |
| 162 | 162 | */ |
| 163 | 163 | @Override |
| 164 | 164 | public void generaterAllMsg() { |
| 165 | - | |
| 166 | - final CountDownLatch countDownLatch = new CountDownLatch(2); | |
| 167 | 165 | logger.info("generater all msg starting."); |
| 168 | 166 | new Thread(new Runnable() { |
| 169 | 167 | @Override |
| 170 | 168 | public void run() { |
| 171 | 169 | generateTemplateMsg(null); |
| 172 | - countDownLatch.countDown(); | |
| 173 | 170 | } |
| 174 | 171 | }).start(); |
| 175 | 172 | |
| 176 | - | |
| 177 | 173 | new Thread(new Runnable() { |
| 178 | 174 | @Override |
| 179 | 175 | public void run() { |
| 180 | 176 | generateChanAmsMsg(null); |
| 181 | 177 | generateBabyAmsMsg(null); |
| 182 | 178 | generatePatAmsMsg(null); |
| 183 | - countDownLatch.countDown(); | |
| 184 | 179 | } |
| 185 | 180 | }).start(); |
| 186 | - try { | |
| 187 | - countDownLatch.await(); | |
| 188 | - } catch (InterruptedException e) { | |
| 189 | - e.printStackTrace(); | |
| 190 | - } | |
| 191 | - | |
| 192 | - logger.info("generater all msg ending."); | |
| 193 | 181 | } |
| 194 | 182 | } |