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

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

修改 添加 orderlist方法

parent 0ee4c885
......@@ -537,7 +537,6 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
List<GoblinOrderSkuVo> skuVoList = ObjectUtil.getGoblinOrderSkuVoArrayList();
long time3 = System.currentTimeMillis();
for (GoblinOrderSqlParam item : sqlParams) {
// List<GoblinOrderSkuVo> skuVoList = ObjectUtil.getGoblinOrderSkuVoArrayList();
long time2 = System.currentTimeMillis();
for (GoblinOrderSku orderSku : item.getOrderSkuList()) {
sqlDataSku.add(new Object[]{
......@@ -551,11 +550,6 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
skuVoList.add(orderSkuVo);
}
log.info("生成子订单逻辑:" + (System.currentTimeMillis() - time2) + "ms");
// time2 = System.currentTimeMillis();
// mongoUtils.insertGoblinOrderSkuVoList(skuVoList);
// log.info("mongo添加订单:" + (System.currentTimeMillis() - time2) + "ms");
time2 = System.currentTimeMillis();
GoblinStoreOrder storeOrder = item.getStoreOrder();
storeOrder.setPayCode(payCode);
......@@ -579,15 +573,14 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
time2 = System.currentTimeMillis();
//redis 添加未支付列表
// int randomKey = redisUtils.addUnPayOrder(orderVo.getOrderId());
int randomKey = redisUtils.addUnPayOrder(orderVo.getOrderId());
//redis 赋值
// orderVo.setRandomKey(randomKey);
orderVo.setRandomKey(randomKey);
orderVo.setOrderAttrVo(orderAttrVo);
orderVo.setOrderSkuVoIds(goblinOrderSkuIdList);
orderVo.setCreatedAt(getNowTime());
redisUtils.setGoblinOrder(orderVo.getOrderId(), orderVo);
redisUtils.setMasterCode(preParam.getOrderMasterCode(), preParam.getOrderIdList().substring(1));
// mongoUtils.insertGoblinStoreOrderVo(orderVo);
orderVoList.add(orderVo);
log.info("保存数据:" + (System.currentTimeMillis() - time2) + "ms");
......
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