From 7ae6893e2746869f879d270544b7804a82ea88a9 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期五, 19 九月 2025 14:20:42 +0800
Subject: [PATCH] 会员列表导出

---
 framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderServiceImpl.java |  303 ++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 265 insertions(+), 38 deletions(-)

diff --git a/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderServiceImpl.java b/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderServiceImpl.java
index b41cddb..d458917 100644
--- a/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderServiceImpl.java
+++ b/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderServiceImpl.java
@@ -23,11 +23,20 @@
 import cn.lili.common.utils.CurrencyUtil;
 import cn.lili.common.utils.SnowFlake;
 import cn.lili.common.utils.StringUtils;
+import cn.lili.common.vo.ResultMessage;
 import cn.lili.modules.goods.entity.dos.Goods;
+import cn.lili.modules.goods.entity.dos.GoodsSku;
 import cn.lili.modules.goods.entity.dto.GoodsCompleteMessage;
 import cn.lili.modules.goods.service.GoodsService;
+import cn.lili.modules.goods.service.GoodsSkuService;
+import cn.lili.modules.lmk.domain.entity.CouponVirtual;
+import cn.lili.modules.lmk.domain.vo.OrderCountVO;
 import cn.lili.modules.lmk.enums.general.AdminRoleEnum;
+import cn.lili.modules.lmk.enums.general.VirtualGoodsTypeEnum;
+import cn.lili.modules.lmk.service.CouponVirtualService;
+import cn.lili.modules.member.entity.dos.Member;
 import cn.lili.modules.member.entity.dto.MemberAddressDTO;
+import cn.lili.modules.member.mapper.MemberMapper;
 import cn.lili.modules.order.cart.entity.dto.TradeDTO;
 import cn.lili.modules.order.cart.entity.enums.DeliveryMethodEnum;
 import cn.lili.modules.order.order.aop.OrderLogPoint;
@@ -43,7 +52,9 @@
 import cn.lili.modules.permission.entity.dos.AdminUser;
 import cn.lili.modules.permission.service.AdminUserService;
 import cn.lili.modules.permission.service.RoleService;
+import cn.lili.modules.promotion.entity.dos.Coupon;
 import cn.lili.modules.promotion.entity.dos.Pintuan;
+import cn.lili.modules.promotion.service.CouponService;
 import cn.lili.modules.promotion.service.PintuanService;
 import cn.lili.modules.store.entity.dto.StoreDeliverGoodsAddressDTO;
 import cn.lili.modules.store.service.StoreDetailService;
@@ -67,6 +78,7 @@
 import cn.lili.trigger.util.DelayQueueTools;
 import cn.lili.utils.COSUtil;
 import cn.lili.utils.CommonUtil;
+import com.alibaba.fastjson.JSON;
 import com.baomidou.mybatisplus.core.conditions.Wrapper;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
@@ -82,17 +94,23 @@
 import org.apache.poi.ss.util.CellRangeAddressList;
 import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 import org.apache.rocketmq.spring.core.RocketMQTemplate;
+import org.redisson.api.RLock;
+import org.redisson.api.RedissonClient;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.ApplicationEventPublisher;
+import org.springframework.data.redis.core.RedisTemplate;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.web.multipart.MultipartFile;
 
+import javax.annotation.Resource;
 import javax.servlet.ServletOutputStream;
 import javax.servlet.http.HttpServletResponse;
 import java.io.InputStream;
+import java.math.BigDecimal;
 import java.net.URLEncoder;
 import java.util.*;
+import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import cn.lili.modules.permission.entity.dos.Role;
 /**
@@ -107,6 +125,8 @@
 
     private static final String ORDER_SN_COLUMN = "order_sn";
 
+    @Autowired
+    private MemberMapper memberMapperMapper;
     /**
      * 寤舵椂浠诲姟
      */
@@ -184,7 +204,23 @@
     @Autowired
     private AdminUserService adminUserService;
 
+    @Resource
+    private RedisTemplate<Object,Object> redisTemplate;
 
+    @Autowired
+    private CouponService couponService;
+
+    @Autowired
+    private CouponVirtualService couponVirtualService;
+
+    @Autowired
+    private RedissonClient redissonClient;
+
+    @Autowired
+    private GoodsSkuService goodsSkuService;
+    private final static  String LOCK_ORDER_NO_MQ="lock_order_no_mq:";
+    private final static  String LOCK_EDIT_ORDER_ADDRESS="lock_edit_order_address:";
+    private final static  String LOCK_COUPON_CARD="lock_coupon_card:";
     @Override
     @Transactional(rollbackFor = Exception.class)
     public void intoDB(TradeDTO tradeDTO) {
@@ -220,7 +256,21 @@
 //                        item.getPriceDetailDTO().setPlatFormCommissionPoint(Double.valueOf(goods.getCommission().toString()));
 //                        e.setPriceDetailDTO(item.getPriceDetailDTO());
 //                        orderItems.add(e);
-                        orderItems.add(new OrderItem(sku, item, tradeDTO));
+                        //鐗规畩澶勭悊绾夸笂绀煎搧鍗¢棶棰�
+                        String skuId = sku.getGoodsSku().getId();
+                        GoodsSku skuInfo = goodsSkuService.getById(skuId);
+                        OrderItem orderItem = new OrderItem(sku, item, tradeDTO);
+                        if (skuInfo != null) {
+                            String goodsId = skuInfo.getGoodsId();
+                            Goods goodsInfo = goodsService.getById(goodsId);
+                            if (goodsInfo != null&& VirtualGoodsTypeEnum.COUPON.name().equals(goodsInfo.getVirtualGoodsType())) {
+                                String couponId = skuInfo.getCouponId();
+                                String couponName = skuInfo.getCouponName();
+                                orderItem.setCouponId(couponId);
+                                orderItem.setCouponName(couponName);
+                            }
+                        }
+                        orderItems.add(orderItem);
                         currentOrderItems.add(new OrderItem(sku, item, tradeDTO));
                     }
             );
@@ -239,23 +289,57 @@
     }
 
     @Override
-    public IPage<OrderSimpleVO> queryByParams(OrderSearchParams orderSearchParams) {
+    public OrderCountVO countByIdOrder(String id) {
+        OrderSearchParams orderSearchParams = new OrderSearchParams();
+
+        orderSearchParams.setOrderStatus(OrderStatusEnum.COMPLETED.name());
+        orderSearchParams.setMemberId(id);
+        QueryWrapper queryWrapper = orderSearchParams.queryWrapper();
+        queryWrapper.groupBy("o.id");
+        queryWrapper.orderByDesc("o.id");
+        List<OrderSimpleVO> list =  this.baseMapper.queryByParamsCount(queryWrapper);
+        OrderCountVO orderCountVO = new OrderCountVO();
+        orderCountVO.setOrderNumCount(0);
+        orderCountVO.setOrderPriceCount(BigDecimal.ZERO);
+        if (CollectionUtil.isEmpty(list)) {
+            return orderCountVO;
+        }else {
+            for (OrderSimpleVO vo : list) {
+                if (vo == null) {
+                    System.out.println("鍑虹幇绌哄厓绱�");
+                    continue; // 璺宠繃null鍏冪礌锛屾垨鏍规嵁涓氬姟澶勭悊
+                }
+                orderCountVO.setOrderNumCount(orderCountVO.getOrderNumCount() + 1);
+
+                // 閲戦绱姞锛氱敤BigDecimal澶勭悊锛岄伩鍏嶇簿搴﹂棶棰�
+                BigDecimal flowPrice = vo.getFlowPrice() != null ?
+                        BigDecimal.valueOf(vo.getFlowPrice()) : BigDecimal.ZERO;
+
+                // 鐢˙igDecimal鐨刟dd鏂规硶绱姞
+                BigDecimal totalPrice = orderCountVO.getOrderPriceCount().add(flowPrice);
+                orderCountVO.setOrderPriceCount(totalPrice);
+
+            }
+        }
+        return orderCountVO;
+    }
+    @Override
+    public IPage<OrderSimpleVO> queryByParams(OrderSearchParams orderSearchParams,Boolean needHide) {
         QueryWrapper queryWrapper = orderSearchParams.queryWrapper();
         queryWrapper.groupBy("o.id");
         queryWrapper.orderByDesc("o.id");
         IPage<OrderSimpleVO> page =  this.baseMapper.queryByParams(PageUtil.initPage(orderSearchParams), queryWrapper);
-
-        if (!adminUserService.havePermissionRole(AdminRoleEnum.ORDER_INFO_PERMISSION)){
-            for (OrderSimpleVO vo : page.getRecords()){
-                vo.setConsigneeName(CommonUtil.maskName(vo.getConsigneeName()));
-                vo.setConsigneeMobile(CommonUtil.maskMobile(vo.getConsigneeMobile()));
+        if (needHide){
+            if (!adminUserService.havePermissionRole(AdminRoleEnum.ORDER_INFO_PERMISSION)){
+                for (OrderSimpleVO vo : page.getRecords()){
+                    vo.setConsigneeName(CommonUtil.maskName(vo.getConsigneeName()));
+                    vo.setConsigneeMobile(CommonUtil.maskMobile(vo.getConsigneeMobile()));
+                }
             }
         }
+
         return page;
     }
-
-
-
     @Override
     public IPage<OrderSimpleXcxVO> queryByXcxParams(OrderSearchXcxParams orderSearchParams) {
         QueryWrapper queryWrapper = orderSearchParams.queryWrapper();
@@ -404,8 +488,6 @@
                 vo.setConsigneeMobile(CommonUtil.maskMobile(vo.getConsigneeMobile()));
             }
         }
-
-
         XSSFWorkbook workbook = initOrderExportData(orderExportDTOS);
         try {
             // 璁剧疆鍝嶅簲澶�
@@ -441,6 +523,42 @@
         //鏌ヨ璁㈠崟鍜岃嚜璁㈠崟锛岀劧鍚庡啓鍏o杩斿洖
         return new OrderDetailVO(order, orderItems, orderLogs, receipt);
     }
+    @Override
+    public OrderDetailVO queryEditAddressDetail(String orderSn) {
+        Order order = this.getBySn(orderSn);
+        if (order == null) {
+            throw new ServiceException(ResultCode.ORDER_NOT_EXIST);
+        }
+        //鏌ヨ璁㈠崟椤逛俊鎭�
+        List<OrderItem> orderItems = orderItemService.getByOrderSn(orderSn);
+
+        //鏌ヨ璁㈠崟鍜岃嚜璁㈠崟锛岀劧鍚庡啓鍏o杩斿洖
+        return new OrderDetailVO(order, orderItems, null, null);
+    }
+
+    @Override
+    @Transactional
+    public String sendMqMessage(String snNo) {
+        //闄愬埗30绉掑彧鑳借姹備竴娆¢伩鍏嶅嚭鐜伴噸鏂版彁浜ら棶棰�
+        Boolean b = redisTemplate.opsForValue().setIfAbsent(LOCK_ORDER_NO_MQ + snNo, snNo,30, TimeUnit.SECONDS);
+        if ( Boolean.FALSE.equals(b)){
+            throw new ServiceException("璇峰湪30绉掑悗閲嶈瘯");
+        }
+        Order order = this.getBySn(snNo);
+        if (order == null) {
+            throw new ServiceException(ResultCode.ORDER_NOT_EXIST);
+        }
+        if (!OrderStatusEnum.PAID.name().equals(order.getOrderStatus())) {
+            throw new ServiceException("璁㈠崟鐘舵�佷笉鏄凡鏀粯鐘舵��");
+        }
+        OrderMessage orderMessage = new OrderMessage();
+        //鍙戦�佽鍗曞凡浠樻娑堟伅
+        orderMessage.setOrderSn(order.getSn());
+        orderMessage.setPaymentMethod(order.getPaymentMethod());
+        orderMessage.setNewStatus(OrderStatusEnum.PAID);
+        this.sendUpdateStatusMessage(orderMessage);
+        return null;
+    }
 
     @Override
     @OrderLogPoint(description = "'璁㈠崟['+#orderSn+']鍙栨秷锛屽師鍥犱负锛�'+#reason", orderSn = "#orderSn")
@@ -473,6 +591,7 @@
             throw new ServiceException(ResultCode.ORDER_CAN_NOT_CANCEL);
         }
     }
+
 
 
     @Override
@@ -594,16 +713,52 @@
 
         return order;
     }
+    @Override
+    @SystemLogPoint(description = "淇敼璁㈠崟", customerLog = "'璁㈠崟[' + #orderSn + ']鏀惰揣淇℃伅淇敼锛屼慨鏀逛负'+#memberAddressDTO.consigneeDetail")
+    @Transactional(rollbackFor = Exception.class)
+    public Order updateAddressConsignee(String orderSn, MemberAddressDTO memberAddressDTO) {
+        Order order = this.getBySn(orderSn);
+        if (order == null) {
+            throw new ServiceException(ResultCode.ORDER_NOT_EXIST);
+        }
+        //闄愬埗30绉掑彧鑳借姹備竴娆¢伩鍏嶅嚭鐜伴噸鏂版彁浜ら棶棰�
+        Boolean b = redisTemplate.opsForValue().setIfAbsent(LOCK_EDIT_ORDER_ADDRESS + orderSn, orderSn,30, TimeUnit.SECONDS);
+        if ( Boolean.FALSE.equals(b)){
+            throw new ServiceException("璇峰湪30绉掑悗閲嶈瘯");
+        }
+        String modifyAddressFlag = order.getModifyAddressFlag();
+        if (StringUtils.isNotBlank(modifyAddressFlag)) {
+            throw new ServiceException("褰撳墠璁㈠崟宸茬粡琚鍙�");
+        }
+        QueryWrapper<Order> wrapper = new QueryWrapper<>();
+        wrapper.eq("id", order.getId());
+        // 浣跨敤 last 鏂规硶鎷兼帴 FOR UPDATE 璇彞
+        wrapper.last("FOR UPDATE");
+        baseMapper.selectOne(wrapper);
+        //瑕佽褰曚箣鍓嶇殑鏀惰揣鍦板潃锛屾墍浠ラ渶瑕佷互浠g爜鏂瑰紡杩涜璋冪敤 涓嶉噰鐢ㄦ敞瑙�
+        String message = "璁㈠崟[" + orderSn + "]鏀惰揣淇℃伅淇敼锛岀敱[" +order.getConsigneeAddressPath()+  order.getConsigneeDetail() + "]淇敼涓篬" + memberAddressDTO.getConsigneeAddressPath()+ memberAddressDTO.getConsigneeDetail() + "]";
+        //璁板綍璁㈠崟鎿嶄綔鏃ュ織
+        BeanUtil.copyProperties(memberAddressDTO, order);
+        order.setModifyAddressFlag(ModifyAddressEnums.USED.name());
+        this.updateById(order);
+        OrderLog orderLog = new OrderLog(orderSn, UserContext.getCurrentUser().getId(), UserContext.getCurrentUser().getRole().getRole(),
+                UserContext.getCurrentUser().getUsername(), message);
+        orderLogService.save(orderLog);
 
+        return order;
+    }
     @Override
     @OrderLogPoint(description = "'璁㈠崟['+#orderSn+']鍙戣揣锛屽彂璐у崟鍙穂'+#logisticsNo+']'", orderSn = "#orderSn")
     @Transactional(rollbackFor = Exception.class)
     public Order delivery(String orderSn, String logisticsNo, String logisticsId) {
         Order order = OperationalJudgment.judgment(this.getBySn(orderSn));
         //濡傛灉璁㈠崟鏈彂璐э紝骞朵笖璁㈠崟鐘舵�佸�肩瓑浜庡緟鍙戣揣
+        log.info("鑾峰彇鍒扮殑璁㈠崟淇℃伅涓簕}", JSON.toJSONString(order));
         if (order.getDeliverStatus().equals(DeliverStatusEnum.UNDELIVERED.name()) && order.getOrderStatus().equals(OrderStatusEnum.UNDELIVERED.name())) {
             //鑾峰彇瀵瑰簲鐗╂祦
             Logistics logistics = logisticsService.getById(logisticsId);
+            log.info("鑾峰彇鍒扮殑鐗╂祦淇℃伅id涓簕}", logisticsId);
+            log.info("鑾峰彇鍒扮殑鐗╂祦淇℃伅涓簕}", JSON.toJSONString(logistics));
             if (logistics == null) {
                 throw new ServiceException(ResultCode.ORDER_LOGISTICS_ERROR);
             }
@@ -665,17 +820,80 @@
     @OrderLogPoint(description = "'璁㈠崟['+#orderSn+']鏍搁攢锛屾牳閿�鐮乕'+#verificationCode+']'", orderSn = "#orderSn")
     @Transactional(rollbackFor = Exception.class)
     public Order take(String orderSn, String verificationCode) {
+        log.info("璁㈠崟鏍搁攢璁㈠崟鍙蜂负锛歿}锛屾牳閿�鐮佷负{}",orderSn,verificationCode);
+        Order order;
+        RLock lock = redissonClient.getLock(LOCK_COUPON_CARD + orderSn);
+        try {
+             lock.lock();
+            //鑾峰彇璁㈠崟淇℃伅
+            order = this.getBySn(orderSn);
+            log.info("鑾峰彇鍒扮殑璁㈠崟淇℃伅涓簕}",JSON.toJSONString(order));
+            //璁㈠崟骞傜瓑闂
+            if (OrderStatusEnum.COMPLETED.name().equals(order.getOrderStatus())) {
+                throw new ServiceException("褰撳墠璁㈠崟宸插畬鎴愭棤娉曞啀娆℃牳楠�");
+            }
 
-        //鑾峰彇璁㈠崟淇℃伅
-        Order order = this.getBySn(orderSn);
-        //妫�娴嬭櫄鎷熻鍗曚俊鎭�
-        checkVerificationOrder(order, verificationCode);
-        order.setOrderStatus(OrderStatusEnum.COMPLETED.name());
-        //璁㈠崟瀹屾垚
-        this.complete(orderSn);
+            //妫�娴嬭櫄鎷熻鍗曚俊鎭�
+            checkVerificationOrder(order, verificationCode);
+            order.setOrderStatus(OrderStatusEnum.COMPLETED.name());
+            //璁㈠崟瀹屾垚
+            //鑾峰彇鎵�鏈夌殑璁㈠崟瀛愰」鐢ㄤ簬鐢熸垚浼樻儬鍗疯鍗曚俊鎭�
+            List<OrderItem> orderItems = orderItemService.getByOrderSn(orderSn);
+            List<CouponVirtual> couponVirtuals = new  ArrayList<>();
+            for (OrderItem orderItem : orderItems) {
+                log.info("鑾峰彇鍒扮殑瀛愯鍗曚俊鎭负{}",JSON.toJSONString(orderItem));
+                String couponId = orderItem.getCouponId();
+                if (StringUtils.isBlank(couponId)) {
+                    continue;
+                }
+                String storeId = order.getStoreId();
+                Coupon one = couponService.getOne(Wrappers.<Coupon>lambdaQuery().eq(Coupon::getStoreId, storeId).eq(Coupon::getId, couponId));
+                if (one == null) {
+                    log.error("褰撳墠璁㈠崟璁㈠崟鍙蜂负:{}涓嶅瓨鍦ㄤ腑鐨勪紭鎯犲嵎涓嶅瓨鍦�----------------------->{}",order.getId(),orderItem.getOrderSn());
+                }else {
+                    Integer num = orderItem.getNum();
+                    //褰撹喘涔版暟閲忎笉涓虹┖鐨勬椂鍊欒繘琛�
+                    if (num != null) {
+                        for (int i = 1; i <= num; i++) {
+                            CouponVirtual couponVirtual = getCouponVirtual(orderItem);
+                            couponVirtual.setCouponNo(String.format("%08d", i));
+                            couponVirtuals.add(couponVirtual);
+                        }
+                    }
+
+                }
+            }
+            if (!couponVirtuals.isEmpty()) {
+                log.info("鐢熸垚鐨勫厬鎹㈠崱涓簕}",JSON.toJSONString(couponVirtuals));
+                order.setCouponFlag(CouPonFlagEnum.COUPON.name());
+                couponVirtualService.saveBatch(couponVirtuals);
+                //鏇存柊鐘舵�佺敤浜庡悗缁皬绋嬪簭鍒ゆ柇寮瑰嚭鍗峰垪琛�
+                this.updateById(order);
+            }
+            this.complete(orderSn);
+        } finally {
+            assert lock != null;
+            if (lock.isHeldByCurrentThread()) {
+                lock.unlock();
+            }
+        }
         return order;
     }
 
+    private static CouponVirtual getCouponVirtual(OrderItem orderItem) {
+        CouponVirtual couponVirtual = new CouponVirtual();
+        couponVirtual.setOrderId(orderItem.getOrderSn());
+        couponVirtual.setCouponId(orderItem.getCouponId());
+        couponVirtual.setCouponName(orderItem.getCouponName());
+        couponVirtual.setGoodsId(orderItem.getGoodsId());
+        couponVirtual.setSkuId(orderItem.getSkuId());
+        couponVirtual.setItemOrderId(orderItem.getId());
+        couponVirtual.setSkuName(orderItem.getGoodsName());
+        couponVirtual.setName(orderItem.getCouponName());
+        couponVirtual.setShareStatus(ShareStatusEnum.NOT_SHARE.name());
+        couponVirtual.setClaimStatus(ClaimStatusEnum.NOT_CLAIM.name());
+        return couponVirtual;
+    }
     @Override
     public Order take(String verificationCode) {
         String storeId = OperationalJudgment.judgment(UserContext.getCurrentUser()).getStoreId();
@@ -1270,6 +1488,12 @@
         this.update(new LambdaUpdateWrapper<Order>()
                 .eq(Order::getSn, orderSn)
                 .set(Order::getOrderStatus, orderStatusEnum.name()));
+        //淇敼璁㈠崟鍟嗗搧 todo 鎵�鏈夌殑璁㈠崟闇�瑕佸鏍稿悗鎵嶈兘閫�娆�
+        orderItemService.update(new LambdaUpdateWrapper<OrderItem>()
+                .eq(OrderItem::getOrderSn,orderSn)
+                .set(OrderItem::getAfterSaleStatus, OrderItemAfterSaleStatusEnum.NOT_APPLIED.name())
+                .set(OrderItem::getCommentStatus,CommentStatusEnum.UNFINISHED.name())
+                .set(OrderItem::getComplainStatus, OrderComplaintStatusEnum.NO_APPLY.name()));
         //淇敼璁㈠崟
         OrderMessage orderMessage = new OrderMessage();
         orderMessage.setNewStatus(orderStatusEnum);
@@ -1392,7 +1616,7 @@
         // 鍒涘缓琛ㄥご
         Row header = sheet.createRow(0);
         String[] headers = {"涓昏鍗曠紪鍙�", "瀛愯鍗曠紪鍙�", "閫夎喘鍟嗗搧", "鍟嗗搧鏁伴噺", "鍟嗗搧ID", "鍟嗗搧鍗曚环", "璁㈠崟搴斾粯閲戦",
-                "杩愯垂", "浼樻儬鎬婚噾棰�", "骞冲彴浼樻儬", "鍟嗗浼樻儬", "鍟嗗鏀逛环", "鏀粯鏂瑰紡", "鏀朵欢浜�", "鏀朵欢浜烘墜鏈哄彿",
+                "杩愯垂", "浼樻儬鎬婚噾棰�", "骞冲彴浼樻儬", "鍟嗗浼樻儬", "鍟嗗鏀逛环", "鏀粯鏂瑰紡","涔板鍚嶇О", "鏀朵欢浜�", "鏀朵欢浜烘墜鏈哄彿",
                 "鐪�", "甯�", "鍖�", "琛楅亾", "璇︾粏鍦板潃", "涔板鐣欒█", "璁㈠崟鎻愪氦鏃堕棿", "鏀粯瀹屾垚鏃堕棿", "鏉ユ簮",
                 "璁㈠崟鐘舵��", "璁㈠崟绫诲瀷", "鍞悗鐘舵��", "鍙栨秷鍘熷洜", "鍙戣揣鏃堕棿", "瀹屾垚鏃堕棿", "搴楅摵"};
 
@@ -1417,24 +1641,27 @@
             row.createCell(10).setCellValue(dto.getStoreMarketingCost()!=null?dto.getStoreMarketingCost():0);
             row.createCell(11).setCellValue(dto.getUpdatePrice()!=null?dto.getUpdatePrice():0);
             row.createCell(12).setCellValue(dto.getPaymentMethod());
-            row.createCell(13).setCellValue(dto.getConsigneeName());
-            row.createCell(14).setCellValue(dto.getConsigneeMobile());
-            row.createCell(15).setCellValue(dto.getProvince());
-            row.createCell(16).setCellValue(dto.getCity());
-            row.createCell(17).setCellValue(dto.getDistrict());
-            row.createCell(18).setCellValue(dto.getStreet());
-            row.createCell(19).setCellValue(dto.getConsigneeDetail());
-            row.createCell(20).setCellValue(dto.getRemark());
-            row.createCell(21).setCellValue(dto.getCreateTime());
-            row.createCell(22).setCellValue(dto.getPaymentTime());
-            row.createCell(23).setCellValue(dto.getClientType());
-            row.createCell(24).setCellValue(dto.getOrderStatus());
-            row.createCell(25).setCellValue(dto.getOrderType());
-            row.createCell(26).setCellValue(dto.getAfterSaleStatus());
-            row.createCell(27).setCellValue(dto.getCancelReason());
-            row.createCell(28).setCellValue(dto.getLogisticsTime());
-            row.createCell(29).setCellValue(dto.getCompleteTime());
-            row.createCell(30).setCellValue(dto.getStoreName());
+
+            row.createCell(13).setCellValue(dto.getNickName());
+
+            row.createCell(14).setCellValue(dto.getConsigneeName());
+            row.createCell(15).setCellValue(dto.getConsigneeMobile());
+            row.createCell(16).setCellValue(dto.getProvince());
+            row.createCell(17).setCellValue(dto.getCity());
+            row.createCell(18).setCellValue(dto.getDistrict());
+            row.createCell(19).setCellValue(dto.getStreet());
+            row.createCell(20).setCellValue(dto.getConsigneeDetail());
+            row.createCell(21).setCellValue(dto.getRemark());
+            row.createCell(22).setCellValue(dto.getCreateTime());
+            row.createCell(23).setCellValue(dto.getPaymentTime());
+            row.createCell(24).setCellValue(dto.getClientType());
+            row.createCell(25).setCellValue(dto.getOrderStatus());
+            row.createCell(26).setCellValue(dto.getOrderType());
+            row.createCell(27).setCellValue(dto.getAfterSaleStatus());
+            row.createCell(28).setCellValue(dto.getCancelReason());
+            row.createCell(29).setCellValue(dto.getLogisticsTime());
+            row.createCell(30).setCellValue(dto.getCompleteTime());
+            row.createCell(31).setCellValue(dto.getStoreName());
         }
 
         //淇敼鍒楀

--
Gitblit v1.8.0