|
@@ -21,10 +21,12 @@ import com.sd.business.service.price.PriceBillingStandardDetailService;
|
|
import com.sd.business.service.sku.SkuSpecLinkService;
|
|
import com.sd.business.service.sku.SkuSpecLinkService;
|
|
import com.sd.business.service.sku.SkuSpecService;
|
|
import com.sd.business.service.sku.SkuSpecService;
|
|
import lombok.Getter;
|
|
import lombok.Getter;
|
|
-import lombok.Setter;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
-import java.util.*;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.Collections;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
@@ -69,23 +71,10 @@ public class OrderContext {
|
|
private final List<OrderPackageBom> orderPackageBomList = new ArrayList<>();
|
|
private final List<OrderPackageBom> orderPackageBomList = new ArrayList<>();
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 当前时间
|
|
|
|
- */
|
|
|
|
- @Getter
|
|
|
|
- public final Date endDate;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 仓库编码
|
|
|
|
- */
|
|
|
|
- @Getter
|
|
|
|
- public final String warehouseCode;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
* 万里牛订单列表
|
|
* 万里牛订单列表
|
|
*/
|
|
*/
|
|
@Getter
|
|
@Getter
|
|
- @Setter
|
|
|
|
- private List<JSONObject> wlnOrderList;
|
|
|
|
|
|
+ private final List<JSONObject> wlnOrderList;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 事业部
|
|
* 事业部
|
|
@@ -136,9 +125,8 @@ public class OrderContext {
|
|
/**
|
|
/**
|
|
* 实例化
|
|
* 实例化
|
|
*/
|
|
*/
|
|
- public OrderContext(String warehouseCode) {
|
|
|
|
- this.endDate = new Date();
|
|
|
|
- this.warehouseCode = warehouseCode;
|
|
|
|
|
|
+ public OrderContext(String warehouseCode, List<JSONObject> wlnOrderList) {
|
|
|
|
+ this.wlnOrderList = wlnOrderList;
|
|
this.department = departmentService.getDepartmentByWarehouseCode(warehouseCode);
|
|
this.department = departmentService.getDepartmentByWarehouseCode(warehouseCode);
|
|
}
|
|
}
|
|
|
|
|