|
|
@ -3,6 +3,7 @@ package com.fuint.common.service.impl;
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.fuint.common.Constants;
|
|
|
|
import com.fuint.common.Constants;
|
|
|
@ -60,7 +61,7 @@ public class OrderServiceImpl extends ServiceImpl<MtOrderMapper, MtOrder> implem
|
|
|
|
private MtOrderMapper mtOrderMapper;
|
|
|
|
private MtOrderMapper mtOrderMapper;
|
|
|
|
|
|
|
|
|
|
|
|
private MtGoodsMapper mtGoodsMapper;
|
|
|
|
private MtGoodsMapper mtGoodsMapper;
|
|
|
|
|
|
|
|
private MtUserMapper mtUserMapper;
|
|
|
|
private MtOrderGoodsMapper mtOrderGoodsMapper;
|
|
|
|
private MtOrderGoodsMapper mtOrderGoodsMapper;
|
|
|
|
|
|
|
|
|
|
|
|
private MtCartMapper mtCartMapper;
|
|
|
|
private MtCartMapper mtCartMapper;
|
|
|
@ -2237,8 +2238,20 @@ public class OrderServiceImpl extends ServiceImpl<MtOrderMapper, MtOrder> implem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String userName = rowContent.get(6);
|
|
|
|
String userName = rowContent.get(6);
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(userName)){
|
|
|
|
|
|
|
|
MtUser m= mtUserMapper.selectOne(new QueryWrapper<MtUser>().lambda().eq(MtUser::getMobile,userName));
|
|
|
|
|
|
|
|
if(ObjectUtil.isNotEmpty(m)){
|
|
|
|
|
|
|
|
order.setUserId(m.getId());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
String isVisitor = rowContent.get(7);
|
|
|
|
String isVisitor = rowContent.get(7);
|
|
|
|
order.setIsVisitor(isVisitor);
|
|
|
|
if(StringUtil.isNotEmpty(isVisitor)){
|
|
|
|
|
|
|
|
String keyName = YesOrNoEnum.getKeyName(isVisitor);
|
|
|
|
|
|
|
|
if(StringUtil.isNotEmpty(keyName)){
|
|
|
|
|
|
|
|
order.setIsVisitor(keyName);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String amount = rowContent.get(8);
|
|
|
|
String amount = rowContent.get(8);
|
|
|
|
if(StringUtil.isNotEmpty(amount)){
|
|
|
|
if(StringUtil.isNotEmpty(amount)){
|
|
|
|
order.setAmount(new BigDecimal(amount));
|
|
|
|
order.setAmount(new BigDecimal(amount));
|
|
|
|