/**
* Copyright (C) 2018-2022
* All rights reserved, Designed By www.yixiang.co
* 注意:
* 本软件为www.yixiang.co开发研制,未经购买不得使用
* 购买后可获得全部源代码(禁止转卖、分享、上传到码云、github等开源平台)
* 一经发现盗用、分享等行为,将追究法律责任,后果自负
*/
package co.yixiang.modules.order.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import co.yixiang.api.BusinessException;
import co.yixiang.api.YshopException;
import co.yixiang.common.service.impl.BaseServiceImpl;
import co.yixiang.common.utils.QueryHelpPlus;
import co.yixiang.constant.ShopConstants;
import co.yixiang.constant.SystemConfigConstants;
import co.yixiang.dozer.service.IGenerator;
import co.yixiang.enums.*;
import co.yixiang.event.TemplateBean;
import co.yixiang.event.TemplateEvent;
import co.yixiang.event.TemplateListenEnum;
import co.yixiang.exception.BadRequestException;
import co.yixiang.exception.EntityExistException;
import co.yixiang.exception.ErrorRequestException;
import co.yixiang.modules.activity.domain.YxStoreCouponUser;
import co.yixiang.modules.activity.domain.YxStorePink;
import co.yixiang.modules.activity.service.YxStoreBargainService;
import co.yixiang.modules.activity.service.YxStoreBargainUserService;
import co.yixiang.modules.activity.service.YxStoreCouponUserService;
import co.yixiang.modules.activity.service.YxStorePinkService;
import co.yixiang.modules.activity.vo.StoreCouponUserVo;
import co.yixiang.modules.cart.domain.YxStoreCart;
import co.yixiang.modules.cart.service.YxStoreCartService;
import co.yixiang.modules.cart.service.mapper.StoreCartMapper;
import co.yixiang.modules.cart.vo.YxStoreCartQueryVo;
import co.yixiang.modules.order.domain.YxExpress;
import co.yixiang.modules.order.domain.YxStoreOrder;
import co.yixiang.modules.order.domain.YxStoreOrderCartInfo;
import co.yixiang.modules.order.domain.YxStoreOrderStatus;
import co.yixiang.modules.order.param.OrderParam;
import co.yixiang.modules.order.service.YxExpressService;
import co.yixiang.modules.order.service.YxStoreOrderCartInfoService;
import co.yixiang.modules.order.service.YxStoreOrderService;
import co.yixiang.modules.order.service.YxStoreOrderStatusService;
import co.yixiang.modules.order.service.dto.*;
import co.yixiang.modules.order.service.mapper.StoreOrderMapper;
import co.yixiang.modules.order.vo.*;
import co.yixiang.modules.product.domain.YxStoreProductReply;
import co.yixiang.modules.product.service.YxStoreProductReplyService;
import co.yixiang.modules.product.service.YxStoreProductService;
import co.yixiang.modules.product.vo.YxStoreProductQueryVo;
import co.yixiang.modules.sales.domain.StoreAfterSales;
import co.yixiang.modules.sales.service.StoreAfterSalesService;
import co.yixiang.modules.shop.domain.YxSystemStore;
import co.yixiang.modules.shop.service.YxSystemConfigService;
import co.yixiang.modules.shop.service.YxSystemStoreService;
import co.yixiang.modules.shop.service.YxSystemStoreStaffService;
import co.yixiang.modules.template.domain.YxShippingTemplates;
import co.yixiang.modules.template.domain.YxShippingTemplatesFree;
import co.yixiang.modules.template.domain.YxShippingTemplatesRegion;
import co.yixiang.modules.template.service.YxShippingTemplatesFreeService;
import co.yixiang.modules.template.service.YxShippingTemplatesRegionService;
import co.yixiang.modules.template.service.YxShippingTemplatesService;
import co.yixiang.modules.user.domain.YxUser;
import co.yixiang.modules.user.domain.YxUserAddress;
import co.yixiang.modules.user.service.YxUserAddressService;
import co.yixiang.modules.user.service.YxUserBillService;
import co.yixiang.modules.user.service.YxUserLevelService;
import co.yixiang.modules.user.service.YxUserService;
import co.yixiang.modules.user.service.dto.YxUserDto;
import co.yixiang.modules.user.vo.YxUserQueryVo;
import co.yixiang.modules.tools.domain.AlipayConfig;
import co.yixiang.modules.tools.domain.vo.TradeVo;
import co.yixiang.modules.tools.service.AlipayConfigService;
import co.yixiang.utils.*;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.data.domain.Pageable;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
/**
* @author hupeng
* @date 2020-05-12
*/
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class YxStoreOrderServiceImpl extends BaseServiceImpl<StoreOrderMapper, YxStoreOrder> implements YxStoreOrderService {
@Autowired
private IGenerator generator;
@Autowired
private YxStorePinkService storePinkService;
@Autowired
private YxStoreOrderCartInfoService storeOrderCartInfoService;
@Autowired
private YxStoreCartService storeCartService;
@Autowired
private YxUserAddressService userAddressService;
@Autowired
private YxStoreOrderCartInfoService orderCartInfoService;
@Autowired
private YxStoreOrderStatusService orderStatusService;
@Autowired
private YxUserBillService billService;
@Autowired
private YxStoreCouponUserService couponUserService;
@Autowired
private YxUserService userService;
@Autowired
private YxStoreProductService productService;
@Autowired
private YxStorePinkService pinkService;
@Autowired
private YxStoreBargainUserService storeBargainUserService;
@Autowired
private YxStoreBargainService storeBargainService;
@Autowired
private YxExpressService expressService;
@Autowired
private AlipayConfigService alipayService;
@Autowired
private YxSystemStoreService systemStoreService;
@Autowired
private YxStoreProductReplyService productReplyService;
@Autowired
private YxStoreCartService yxStoreCartService;
@Autowired
private YxSystemStoreStaffService systemStoreStaffService;
@Autowired
private YxShippingTemplatesService shippingTemplatesService;
@Autowired
private YxShippingTemplatesRegionService shippingTemplatesRegionService;
@Autowired
private YxShippingTemplatesFreeService shippingTemplatesFreeService;
@Autowired
private YxSystemConfigService systemConfigService;
@Autowired
private YxUserLevelService userLevelService;
@Autowired
private StoreOrderMapper yxStoreOrderMapper;
@Autowired
private StoreCartMapper storeCartMapper;
@Autowired
private RedisUtils redisUtils;
@Autowired
private RedisTemplate<String, String> redisTemplate;
@Autowired
private ApplicationEventPublisher publisher;
@Autowired
private StoreAfterSalesService storeAfterSalesService;
/**
* 返回订单确认数据
*
* @param yxUser yxUser
* @param cartIds 购物车id
* @return ConfirmOrderVO
*/
@Override
public ConfirmOrderVo confirmOrder(YxUser yxUser, String cartIds) {
Long uid = yxUser.getUid();
Map<String
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该项目是一款采用Java语言编写的跨平台设计源码,集成了Shell脚本和多种文件类型,共计910个文件,其中Java源文件839个,Shell脚本6个,XML配置15个,SQL脚本11个,其他包括YAML、属性文件、工厂类、图片文件和Git忽略文件等。该项目以高效、灵活的架构,满足不同平台下的开发需求。
资源推荐
资源详情
资源评论
收起资源包目录
基于Java和Shell语言的跨平台设计源码实现 (911个子文件)
Dockerfile 419B
spring.factories 141B
spring.factories 134B
spring.factories 112B
spring.factories 110B
index.ftl 10KB
ServiceImpl.ftl 7KB
ServiceImplP.ftl 4KB
ControllerP.ftl 3KB
Controller.ftl 3KB
eForm.ftl 3KB
Entity.ftl 2KB
Service.ftl 2KB
QueryCriteriaP.ftl 2KB
QueryCriteria.ftl 2KB
EntityP.ftl 2KB
ServiceP.ftl 1KB
email.ftl 1KB
DtoP.ftl 1KB
Dto.ftl 1KB
Repository.ftl 1KB
Mapper.ftl 787B
MapperP.ftl 690B
api.ftl 437B
.gitignore 78B
YxStoreOrderServiceImpl.java 106KB
YxStoreProductServiceImpl.java 39KB
StoreAfterSalesServiceImpl.java 28KB
YxStorePinkServiceImpl.java 26KB
YxUserServiceImpl.java 24KB
PrintUtil4.java 23KB
StoreOrderController.java 21KB
Api_java_demo.java 21KB
HTMLFilter.java 19KB
YxStoreCartServiceImpl.java 18KB
GenUtil.java 18KB
RedisUtils.java 17KB
YxStoreCombinationServiceImpl.java 16KB
YxStoreBargainServiceImpl.java 16KB
StoreProductController.java 14KB
PrintUtil4.java 14KB
FileUtil.java 14KB
MenuServiceImpl.java 14KB
YxStoreCouponUserServiceImpl.java 14KB
YxStoreSeckillServiceImpl.java 13KB
YxWechatLiveServiceImpl.java 12KB
YxUserBillServiceImpl.java 12KB
SysUserServiceImpl.java 11KB
YxShippingTemplatesServiceImpl.java 11KB
YxStoreProductAttrServiceImpl.java 11KB
RoleServiceImpl.java 11KB
WeixinTemplateService.java 11KB
YxStoreProductReplyServiceImpl.java 11KB
SysUserController.java 10KB
StoreCombinationController.java 10KB
QiNiuServiceImpl.java 10KB
YxWechatLiveGoodsServiceImpl.java 10KB
YxUserExtractServiceImpl.java 10KB
YxStoreProductRelationServiceImpl.java 10KB
YxSystemUserTaskServiceImpl.java 9KB
StoreSeckillController.java 9KB
TemplateListener.java 9KB
LogServiceImpl.java 9KB
SwaggerUtil.java 9KB
WeixinPayService.java 9KB
OssTemplate.java 8KB
OrderUtil.java 8KB
YxStoreOrderService.java 8KB
YxStoreBargainUserServiceImpl.java 8KB
YxSystemUserLevelServiceImpl.java 8KB
SystemGroupDataController.java 7KB
StoreAfterSalesController.java 7KB
WxMpConfiguration.java 7KB
RedisConfig.java 7KB
DeptServiceImpl.java 7KB
QueryHelpPlus.java 7KB
YxUserRechargeServiceImpl.java 7KB
YxUserSignServiceImpl.java 7KB
PictureServiceImpl.java 7KB
AuthController.java 7KB
WeiXinSubscribeService.java 7KB
GeneratorServiceImpl.java 7KB
StoreCategoryController.java 7KB
YxStoreCategoryServiceImpl.java 7KB
YxStoreProduct.java 7KB
YxStoreCouponIssueServiceImpl.java 6KB
SwaggerConfig.java 6KB
RoleController.java 6KB
TokenUtil.java 6KB
ApiResult.java 6KB
YxSystemStoreServiceImpl.java 6KB
WechatArticleService.java 6KB
QuartzJobServiceImpl.java 6KB
SecurityConfig.java 6KB
YxStoreBargain.java 6KB
YxUserLevelServiceImpl.java 6KB
QuartzJobController.java 6KB
OnlineUserService.java 6KB
AliPayController.java 6KB
QuartzManage.java 6KB
共 911 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
csbysj2020
- 粉丝: 2808
- 资源: 5582
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 有源二阶低通滤波器系数运算
- 中医古籍珍稀抄本精选--诊验医方歌括.pdf
- 人大金仓数据库容器镜像构建.zip
- 中医古籍整理丛书--12外科精义-元齐德之.pdf
- Python在线考试系统后端-大学毕业设计-基于Django+Django -Rest-Framework.zip
- 从大数据存储中抽取最近的数据存入关系数据库中.zip
- Matlab Simulink建模仿真 光储系统、永磁同步发电、抽水蓄能、光伏发电、质子交膜燃料电池(pemfc)、锂离子电池、电解槽系统、逆变器、fuzzy模糊控制、柴油机、小车倒立摆模型、、三轮车
- 数字调制信号产生2FSK、2PSK、2ASK
- 中医古籍整理丛书--22医灯续焰-清潘楫.pdf
- 单片机的流水灯,个人学习整理,仅供参考
- 基于深度学习的图像识别1
- 中医古籍整理丛书--31王旭高临证医案-清王旭高着_张殿民点校.pdf
- python123.io平台部分题目答案资源整理
- 以慕课网日志分析为例 进入大数据 Spark SQL 的世界.zip
- 影视仓v5.0.13.apk
- 企业级数据大屏、数据可视化.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功