|
@@ -91,16 +91,32 @@ public class ApsProductionOrderController {
|
|
|
辅料申购提醒
|
|
|
*/
|
|
|
@PostMapping("/auxiliaryMaterial")
|
|
|
- public void auxiliaryMaterial() {
|
|
|
- apsProductionOrderService.auxiliaryMaterial();
|
|
|
+ public R auxiliaryMaterial() {
|
|
|
+ log.info("辅料申购提醒开始");
|
|
|
+ Thread thread = new Thread(new Runnable() {
|
|
|
+ @SneakyThrows
|
|
|
+ public void run() {
|
|
|
+ apsProductionOrderService.auxiliaryMaterial();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ thread.start(); // 启动线程
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
作业延期提醒
|
|
|
*/
|
|
|
@PostMapping("/processDelay")
|
|
|
- public void processDelay() {
|
|
|
- apsProductionOrderService.processDelay();
|
|
|
+ public R processDelay() {
|
|
|
+ log.info("作业延期提醒开始");
|
|
|
+ Thread thread = new Thread(new Runnable() {
|
|
|
+ @SneakyThrows
|
|
|
+ public void run() {
|
|
|
+ apsProductionOrderService.processDelay();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ thread.start(); // 启动线程
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -115,8 +131,16 @@ public class ApsProductionOrderController {
|
|
|
报工不合格提醒
|
|
|
*/
|
|
|
@PostMapping("/reportUnqualify")
|
|
|
- public void reportUnqualify() {
|
|
|
- apsProductionOrderService.reportUnqualify();
|
|
|
+ public R reportUnqualify() {
|
|
|
+ log.info("报工不合格提醒开始");
|
|
|
+ Thread thread = new Thread(new Runnable() {
|
|
|
+ @SneakyThrows
|
|
|
+ public void run() {
|
|
|
+ apsProductionOrderService.reportUnqualify();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ thread.start(); // 启动线程
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
|