|
@@ -6,7 +6,6 @@ import com.rongwei.bsentity.vo.CheckAndSaveOrUpdateOrderReq;
|
|
|
import com.rongwei.bsentity.vo.DeleteOrderVo;
|
|
|
import com.rongwei.bsentity.vo.OrderHaveBeChangedReq;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
-import lombok.SneakyThrows;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -69,12 +68,7 @@ public class ApsProductionOrderController {
|
|
|
@PostMapping("/orderOuttimeAudit")
|
|
|
public R orderOuttimeAudit() {
|
|
|
log.info("订单未及时评审提醒开始...");
|
|
|
- Thread thread = new Thread(new Runnable() {
|
|
|
- @SneakyThrows
|
|
|
- public void run() {
|
|
|
- apsProductionOrderService.orderOuttimeAudit();
|
|
|
- }
|
|
|
- });
|
|
|
+ Thread thread = new Thread(() -> apsProductionOrderService.orderOuttimeAudit());
|
|
|
thread.start(); // 启动线程
|
|
|
return R.ok();
|
|
|
}
|
|
@@ -93,12 +87,7 @@ public class ApsProductionOrderController {
|
|
|
@PostMapping("/auxiliaryMaterial")
|
|
|
public R auxiliaryMaterial() {
|
|
|
log.info("辅料申购提醒开始");
|
|
|
- Thread thread = new Thread(new Runnable() {
|
|
|
- @SneakyThrows
|
|
|
- public void run() {
|
|
|
- apsProductionOrderService.auxiliaryMaterial();
|
|
|
- }
|
|
|
- });
|
|
|
+ Thread thread = new Thread(() -> apsProductionOrderService.auxiliaryMaterial());
|
|
|
thread.start(); // 启动线程
|
|
|
return R.ok();
|
|
|
}
|
|
@@ -109,12 +98,7 @@ public class ApsProductionOrderController {
|
|
|
@PostMapping("/processDelay")
|
|
|
public R processDelay() {
|
|
|
log.info("作业延期提醒开始");
|
|
|
- Thread thread = new Thread(new Runnable() {
|
|
|
- @SneakyThrows
|
|
|
- public void run() {
|
|
|
- apsProductionOrderService.processDelay();
|
|
|
- }
|
|
|
- });
|
|
|
+ Thread thread = new Thread(() -> apsProductionOrderService.processDelay());
|
|
|
thread.start(); // 启动线程
|
|
|
return R.ok();
|
|
|
}
|
|
@@ -133,12 +117,7 @@ public class ApsProductionOrderController {
|
|
|
@PostMapping("/reportUnqualify")
|
|
|
public R reportUnqualify() {
|
|
|
log.info("报工不合格提醒开始");
|
|
|
- Thread thread = new Thread(new Runnable() {
|
|
|
- @SneakyThrows
|
|
|
- public void run() {
|
|
|
- apsProductionOrderService.reportUnqualify();
|
|
|
- }
|
|
|
- });
|
|
|
+ Thread thread = new Thread(() -> apsProductionOrderService.reportUnqualify());
|
|
|
thread.start(); // 启动线程
|
|
|
return R.ok();
|
|
|
}
|