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

Commit 3e93d2bc authored by 胡佳晨's avatar 胡佳晨

修改erp推送 sku原价改为支付价格

parent 9d63b8d3
...@@ -228,6 +228,9 @@ public class WdtServiceImpl implements IGoblinErpService { ...@@ -228,6 +228,9 @@ public class WdtServiceImpl implements IGoblinErpService {
TradePushVo data = JsonUtils.fromJson(json, TradePushVo.class); TradePushVo data = JsonUtils.fromJson(json, TradePushVo.class);
int newCount = data.getNew_count(); int newCount = data.getNew_count();
if (listOrder.size() < newCount) { if (listOrder.size() < newCount) {
for (String orderId : b) {
goblinRedisUtils.erpAddPush(1, orderId);
}
log.error("同步 erp 失败 "); log.error("同步 erp 失败 ");
} }
} }
......
...@@ -2889,6 +2889,12 @@ public class GoblinRedisUtils { ...@@ -2889,6 +2889,12 @@ public class GoblinRedisUtils {
} }
} }
//添加erp订单
public int erpAddPush(int index,String orderId) {
String rdk = GoblinRedisConst.ERP_GOBLIN_GOODS_LIST.concat(index+"");
return (int) redisUtil.rightPush(rdk,orderId);
}
/* ---------------------------------------- ---------------------------------------- */ /* ---------------------------------------- ---------------------------------------- */
/* ---------------------------------------- ---------------------------------------- */ /* ---------------------------------------- ---------------------------------------- */
/* ---------------------------------------- ---------------------------------------- */ /* ---------------------------------------- ---------------------------------------- */
......
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