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

Commit 4da22adc authored by 胡佳晨's avatar 胡佳晨

提交 接口

parent 529842f0
......@@ -151,7 +151,7 @@ public class GoblinMixAppServiceImpl implements IGoblinMixAppService {
for (String orderId : goblin) {
GoblinStoreOrderVo orderVo = redisUtils.getGoblinOrder(orderId);
GoblinAppOrderListVo vos = GoblinAppOrderListVo.getNew();
BeanUtils.copyProperties(orderVo, vo);
BeanUtils.copyProperties(orderVo, vos);
vos.setRestTime(0L);
List<GoblinOrderSkuVo> skuVos = ObjectUtil.getGoblinOrderSkuVoArrayList();
for (String orderSkuId : orderVo.getOrderSkuVoIds()) {
......
......@@ -356,12 +356,13 @@ public class MixOrderServiceImpl implements IMixOrderService {
String details = "";
String payCode;
String orderStr = "";
StringBuilder orderMixStr = new StringBuilder();//nft订单id || 商品订单id
String orderMixStr = "";
String nftOrderStr = "";
for (GoblinNftOrder item : nftOrder) {
payPrice = payPrice.add(item.getPriceActual());
details = details.concat(item.getSkuTitle()).concat(",");
orderStr = orderStr.concat(item.getOrderId()).concat(",");
nftOrderStr = nftOrderStr.concat(item.getOrderId()).concat(",");
}
details = details.concat(preParam.getSkuName()).substring(1);
......@@ -376,7 +377,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
httpData.add("name", preParam.getStoreName());
httpData.add("detail", details);
httpData.add("orderCode", masterCode);
httpData.add("orderId", orderStr);
httpData.add("orderId", nftOrderStr.concat(orderStr));
httpData.add("clientIp", CurrentUtil.getCliIpAddr());
httpData.add("notifyUrl", orderUrl + "/order/mix/syncOrder");
httpData.add("createDate", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
......@@ -430,7 +431,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
//构建 nft sql对象
LinkedList<Object[]> sqlDataOrder = CollectionUtil.linkedListObjectArr();
for (GoblinNftOrder nftItem : nftOrder) {
orderMixStr.append(nftItem.getOrderId().contains(","));
orderMixStr = orderMixStr.concat(nftItem.getOrderId()).concat(",");
nftItem.setPayCode(payCode);
sqlDataOrder.add(new Object[]{
nftItem.getOrderId(), nftItem.getSpuId(), nftItem.getSkuId(), nftItem.getBoxSkuId(),
......@@ -486,8 +487,8 @@ public class MixOrderServiceImpl implements IMixOrderService {
redisUtils.setMasterCode(orderVo.getMasterOrderCode(), orderStr);
queueUtils.setMongoList(GoblinStoreOrderVo.class.getSimpleName(), "orderId", orderVo.getOrderId(), GoblinRedisConst.REDIS_GOBLIN_ORDER, 1);
orderMixStr.append("&&".contains(orderStr));
redisUtils.setMasterCode(masterCode, orderMixStr.toString());
orderMixStr = orderMixStr.concat("&&").concat(orderStr);
redisUtils.setMasterCode(masterCode, orderMixStr);
// 执行sql
String sqlData = SqlMapping.gets(sqls, sqlDataOrder, sqlDataSku, sqlDataGoblin, sqlDataAttr);
......
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