|
@@ -236,7 +236,7 @@ public class KwaiJSTServiceImpl implements IKwaiJSTService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public JSONObject costDetail(String skuNick, Integer dataType,Long date) {
|
|
|
|
|
|
+ public JSONObject costDetail(String skuNick, Integer dataType, Long date) {
|
|
JSONObject returnJSon = new JSONObject();
|
|
JSONObject returnJSon = new JSONObject();
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -373,6 +373,8 @@ public class KwaiJSTServiceImpl implements IKwaiJSTService {
|
|
Integer startQty = rangeJson.getInteger("startQty");
|
|
Integer startQty = rangeJson.getInteger("startQty");
|
|
Integer endQty = rangeJson.getInteger("endQty");
|
|
Integer endQty = rangeJson.getInteger("endQty");
|
|
BigDecimal price = rangeJson.getBigDecimal("price");
|
|
BigDecimal price = rangeJson.getBigDecimal("price");
|
|
|
|
+ Long poiId = rangeJson.getLong("poiId");
|
|
|
|
+ Long poId = rangeJson.getLong("poId");
|
|
List<JSONObject> details = new ArrayList<>();
|
|
List<JSONObject> details = new ArrayList<>();
|
|
if (dataSize >= endQty) { // 如果数据量大于采购
|
|
if (dataSize >= endQty) { // 如果数据量大于采购
|
|
details = costDetail.subList(startQty, endQty + 1);
|
|
details = costDetail.subList(startQty, endQty + 1);
|
|
@@ -405,6 +407,8 @@ public class KwaiJSTServiceImpl implements IKwaiJSTService {
|
|
addCostDetailEnd.setDataType(dataType);
|
|
addCostDetailEnd.setDataType(dataType);
|
|
addCostDetailEnd.setSortNum(sortNum);
|
|
addCostDetailEnd.setSortNum(sortNum);
|
|
addCostDetailEnd.setCostPrice(price);
|
|
addCostDetailEnd.setCostPrice(price);
|
|
|
|
+ addCostDetailEnd.setPoId(poId);
|
|
|
|
+ addCostDetailEnd.setPoiId(poiId);
|
|
addCostDetailEnd.setSendTime(sendTime);
|
|
addCostDetailEnd.setSendTime(sendTime);
|
|
costDetailEnds.add(addCostDetailEnd);
|
|
costDetailEnds.add(addCostDetailEnd);
|
|
}
|
|
}
|
|
@@ -465,7 +469,7 @@ public class KwaiJSTServiceImpl implements IKwaiJSTService {
|
|
KwaixiaodianJstPurchase jst = JSONObject.parseObject(skuInfo.toJSONString(), KwaixiaodianJstPurchase.class);
|
|
KwaixiaodianJstPurchase jst = JSONObject.parseObject(skuInfo.toJSONString(), KwaixiaodianJstPurchase.class);
|
|
jstList.add(jst);
|
|
jstList.add(jst);
|
|
if (!Check.isNull(skuInfo.getJSONArray("items"))) {
|
|
if (!Check.isNull(skuInfo.getJSONArray("items"))) {
|
|
- addPurchaseItems(skuInfo.getString("po_date"),skuInfo.getJSONArray("items"));
|
|
|
|
|
|
+ addPurchaseItems(skuInfo.getString("po_date"), skuInfo.getJSONArray("items"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|