/**
* 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
没有合适的资源?快使用搜索试试~ 我知道了~
基于当前流行技术组合的前后端分离意象商城系统
共907个文件
java:839个
ftl:19个
xml:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 92 浏览量
2024-03-24
08:28:11
上传
评论
收藏 8.18MB ZIP 举报
温馨提示
yshop基于当前流行技术组合的前后端分离商城系统: SpringBoot2+MybatisPlus+SpringSecurity+jwt+redis+Vue的前后端分离的商城系统, 包含分类、sku、运费模板、素材库、小程序直播、拼团、砍价、商户管理、 秒杀、优惠券、积分、分销、会员、充值、多门店等功能,更适合企业或个人二次开发;
资源推荐
资源详情
资源评论
收起资源包目录
基于当前流行技术组合的前后端分离意象商城系统 (907个子文件)
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
QiNiuServiceImpl.java 10KB
StoreCombinationController.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
WxMpConfiguration.java 7KB
StoreAfterSalesController.java 7KB
RedisConfig.java 7KB
DeptServiceImpl.java 7KB
QueryHelpPlus.java 7KB
YxUserRechargeServiceImpl.java 7KB
YxUserSignServiceImpl.java 7KB
WeiXinSubscribeService.java 7KB
PictureServiceImpl.java 7KB
AuthController.java 7KB
GeneratorServiceImpl.java 7KB
YxStoreCategoryServiceImpl.java 7KB
YxStoreProduct.java 7KB
StoreCategoryController.java 6KB
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
共 907 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7364
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功