|
|
@ -21,6 +21,12 @@ public class CJTOperateCallBackFactory {
|
|
|
|
private SaleDispatchSyncCallOperate saleDispatchSyncCallOperate;
|
|
|
|
private SaleDispatchSyncCallOperate saleDispatchSyncCallOperate;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private SaleOrderSyncCallBackOperate saleOrderSyncCallBackOperate;
|
|
|
|
private SaleOrderSyncCallBackOperate saleOrderSyncCallBackOperate;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private PurchaseArrivalOrderCallBackOperate purchaseArrivalOrderCallBackOperate;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private PurchaseOrderSyncCallBackOperate purchaseOrderSyncCallBackOperate;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private SaleDeliverySyncCallBackOperate saleDeliverySyncCallBackOperate;
|
|
|
|
|
|
|
|
|
|
|
|
public void handle(JSONObject jsonObject){
|
|
|
|
public void handle(JSONObject jsonObject){
|
|
|
|
String appKey = jsonObject.getString("appKey");
|
|
|
|
String appKey = jsonObject.getString("appKey");
|
|
|
@ -44,36 +50,32 @@ public class CJTOperateCallBackFactory {
|
|
|
|
case SALE_DISPATCH_CREATE:
|
|
|
|
case SALE_DISPATCH_CREATE:
|
|
|
|
case SALE_DISPATCH_UPDATE:
|
|
|
|
case SALE_DISPATCH_UPDATE:
|
|
|
|
case SALE_DISPATCH_DELETE:
|
|
|
|
case SALE_DISPATCH_DELETE:
|
|
|
|
switch (cjtAccountEnum){
|
|
|
|
saleDispatchSyncCallOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
case ONE:
|
|
|
|
|
|
|
|
saleDispatchSyncCallOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SALE_ORDER_CREATE:
|
|
|
|
case SALE_ORDER_CREATE:
|
|
|
|
case SALE_ORDER_UPDATE:
|
|
|
|
case SALE_ORDER_UPDATE:
|
|
|
|
case SALE_ORDER_DELETE:
|
|
|
|
case SALE_ORDER_DELETE:
|
|
|
|
switch (cjtAccountEnum){
|
|
|
|
saleOrderSyncCallBackOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
case ONE:
|
|
|
|
|
|
|
|
saleOrderSyncCallBackOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case MANUFACTURE_ORDER_CREATE:
|
|
|
|
case MANUFACTURE_ORDER_CREATE:
|
|
|
|
case MANUFACTURE_ORDER_UPDATE:
|
|
|
|
case MANUFACTURE_ORDER_UPDATE:
|
|
|
|
case MANUFACTURE_ORDER_DELETE:
|
|
|
|
case MANUFACTURE_ORDER_DELETE:
|
|
|
|
switch (cjtAccountEnum){
|
|
|
|
manufactureOrderSyncCallOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
case TWO:
|
|
|
|
break;
|
|
|
|
manufactureOrderSyncCallOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
case PURCHASE_ORDER_CREATE:
|
|
|
|
break;
|
|
|
|
case PURCHASE_ORDER_UPDATE:
|
|
|
|
default:
|
|
|
|
case PURCHASE_ORDER_DELETE:
|
|
|
|
break;
|
|
|
|
purchaseOrderSyncCallBackOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case PURCHASE_ARRIVAL_ORDER_CREATE:
|
|
|
|
|
|
|
|
case PURCHASE_ARRIVAL_ORDER_UPDATE:
|
|
|
|
|
|
|
|
case PURCHASE_ARRIVAL_ORDER_DELETE:
|
|
|
|
|
|
|
|
purchaseArrivalOrderCallBackOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SALE_DELIVERY_CREATE:
|
|
|
|
|
|
|
|
case SALE_DELIVERY_UPDATE:
|
|
|
|
|
|
|
|
case SALE_DELIVERY_DELETE:
|
|
|
|
|
|
|
|
saleDeliverySyncCallBackOperate.execute(cjtEdiCallbackRequestVo);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
saleDispatchSyncCallOperate.preHandle(cjtEdiCallbackRequestVo);
|
|
|
|
saleDispatchSyncCallOperate.preHandle(cjtEdiCallbackRequestVo);
|
|
|
|