|
@@ -9,6 +9,7 @@ import com.rongwei.bsentity.vo.CheckAndSaveOrUpdateBlankReq;
|
|
|
import com.rongwei.bsentity.vo.CheckScheduleReq;
|
|
|
import com.rongwei.bsentity.vo.OrderLockVo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
+import lombok.SneakyThrows;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -130,9 +131,17 @@ public class ApsBlankOrderController {
|
|
|
R resData = apsBlankOrderService.insertOrder(params);
|
|
|
if (resData.getCode().equals("200")) {
|
|
|
//重新排程
|
|
|
- apsBlankOrderService.apsReScheduling();
|
|
|
+ Thread thread = new Thread(new Runnable() {
|
|
|
+ @SneakyThrows
|
|
|
+ public void run() {
|
|
|
+ apsBlankOrderService.apsReScheduling();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ thread.start(); // 启动线程
|
|
|
+ return resData;
|
|
|
+ } else {
|
|
|
+ return R.error();
|
|
|
}
|
|
|
- return resData;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.info("插单异常:" + e.getMessage());
|