Commit 3335f12b authored by hanfeng's avatar hanfeng

修改违章

parent 8f14cb65
...@@ -41,6 +41,7 @@ public class CertificationController { ...@@ -41,6 +41,7 @@ public class CertificationController {
private UserFeign userFeign; private UserFeign userFeign;
@Qualifier("applicationTaskExecutor") @Qualifier("applicationTaskExecutor")
@Autowired @Autowired
private TaskExecutor executor; private TaskExecutor executor;
...@@ -102,12 +103,13 @@ public class CertificationController { ...@@ -102,12 +103,13 @@ public class CertificationController {
if (type!=null&&type==0){ if (type!=null&&type==0){
ObjectRestResponse<Integer> result = certificationService.certificate(idInformation); ObjectRestResponse<Integer> result = certificationService.certificate(idInformation);
if (result.getRel()) { if (result.getRel()) {
executor.execute(new Runnable() { Thread thread = new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
setIntegral(appUserDTO.getUserid(),result.getData()); setIntegral(appUserDTO.getUserid(),result.getData());
} }
}); });
thread.start();
} }
return result ; return result ;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment