|
@@ -1,13 +1,16 @@
|
|
|
package com.iamberry.rst.controllers.mq;
|
|
|
|
|
|
import com.iamberry.rst.controllers.sys.SysController;
|
|
|
+import com.iamberry.rst.core.cm.Repair;
|
|
|
import com.iamberry.rst.core.cm.SalesOrder;
|
|
|
import com.iamberry.rst.core.cm.SalesOrderItem;
|
|
|
import com.iamberry.rst.core.cm.StoreInfo;
|
|
|
+import com.iamberry.rst.core.order.EfastOrder;
|
|
|
import com.iamberry.rst.core.order.ProductColor;
|
|
|
import com.iamberry.rst.core.sms.OrderMessage;
|
|
|
import com.iamberry.rst.core.sms.SmsMessage;
|
|
|
import com.iamberry.rst.core.sys.Relu;
|
|
|
+import com.iamberry.rst.faces.cm.RepairService;
|
|
|
import com.iamberry.rst.faces.cm.SalesOrderService;
|
|
|
import com.iamberry.rst.faces.cm.StoreInfoService;
|
|
|
import com.iamberry.rst.faces.order.EfastOrderService;
|
|
@@ -54,6 +57,8 @@ public class MQTask implements InitializingBean {
|
|
|
private SalesOrderService salesOrderService;
|
|
|
@Autowired
|
|
|
private SysService sysService;
|
|
|
+ @Autowired
|
|
|
+ private RepairService repairService;
|
|
|
|
|
|
private Object lock = new Object();
|
|
|
private Object lock1 = new Object();
|
|
@@ -215,4 +220,28 @@ public class MQTask implements InitializingBean {
|
|
|
} while (returnFlag);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @Scheduled(cron = "0 0/1 * * * ?")
|
|
|
+ public void synchronousDelivery()throws Exception{
|
|
|
+
|
|
|
+ Repair repair = new Repair();
|
|
|
+ repair.setRepairSendStatus(1);
|
|
|
+ List<Repair> listRepair = repairService.listSynchronizingRepair(repair);
|
|
|
+ if(listRepair.size() > 0){
|
|
|
+ for(Repair re:listRepair){
|
|
|
+ if(re.getSalesDealCode() != null){
|
|
|
+ EfastOrder efastOrder = efastOrderService.getOrderInfoFromEfast(re.getSalesDealCode());
|
|
|
+
|
|
|
+
|
|
|
+ }*/
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
}
|