记得上下班打卡 | git大法好,push需谨慎

Commit d8ecdebe authored by 胡佳晨's avatar 胡佳晨

取消id写死的bug

parent 54beec84
...@@ -31,7 +31,7 @@ public class GoblinImportServiceImpl implements IGoblinImportService { ...@@ -31,7 +31,7 @@ public class GoblinImportServiceImpl implements IGoblinImportService {
String skuIds = ""; String skuIds = "";
int init = 22; int init = 22;
int skip = 9; int skip = 9;
int count = (item.size() - init) / skip; int count = 1+(item.size() - init) / skip;
String orderId = item.get(0); String orderId = item.get(0);
String mailNo = item.get(13); String mailNo = item.get(13);
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
...@@ -49,7 +49,7 @@ public class GoblinImportServiceImpl implements IGoblinImportService { ...@@ -49,7 +49,7 @@ public class GoblinImportServiceImpl implements IGoblinImportService {
if (mailNo == null || mailNo.equals("")) { if (mailNo == null || mailNo.equals("")) {
log.error("发货失败 orderId = " + orderId + "skuIds = " + skuIds + " 快递单号空"); log.error("发货失败 orderId = " + orderId + "skuIds = " + skuIds + " 快递单号空");
} }
ResponseDto<Boolean> express = iGoblinStoreOrderService.express(orderId, skuIds, mailNo, "d0920ca469129c3950f70371b36c1ce2"); ResponseDto<Boolean> express = iGoblinStoreOrderService.express(orderId, skuIds, mailNo, CurrentUtil.getCurrentUid());
if (express.getCode().equals("0")) { if (express.getCode().equals("0")) {
} else { } else {
log.error("发货失败 orderId = " + orderId + "skuIds = " + skuIds + " mailNo = " + mailNo); log.error("发货失败 orderId = " + orderId + "skuIds = " + skuIds + " mailNo = " + mailNo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment