|
@@ -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());
|
|
|
+ /*if (efastOrder.getOrderStatus() == 1){//1代表已发货 发货状态: 0(未发货)1(已发货,即已扫描出库)3(备货中)
|
|
|
+
|
|
|
+ }*/
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*同步换货订单*/
|
|
|
+
|
|
|
+ /*同步补发订单*/
|
|
|
+ }
|
|
|
}
|