28 文件已重命名
2个文件已删除
2个文件已添加
24个文件已修改
| | |
| | | } |
| | | |
| | | @Override |
| | | public R<List<OrderAuctionBond>> getOrderAuctionBondList(MemberAuctionSalesroomDTO memberAuctionSalesroomDTO, String source) { |
| | | public R<List<OrderAuctionBond>> getOrderAuctionBondList1(MemberAuctionSalesroomDTO memberAuctionSalesroomDTO, String source) { |
| | | return R.fail("获取保证金订单列表失败:" + cause.getMessage()); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public R<Map<String, Object>> refund(List<RefundDTO> refundDTOS, String source) { |
| | | return R.fail("批量退款失败" + cause.getMessage()); |
| | |
| | | R<List<Order>> getOrderByGroupPurchaseId(@PathVariable("id") Long id, |
| | | @RequestHeader(SecurityConstants.FROM_SOURCE) String source); |
| | | |
| | | @PostMapping("/order-auction-bond/getOrderAuctionBondList") |
| | | R<List<OrderAuctionBond>> getOrderAuctionBondList(@RequestBody MemberAuctionSalesroomDTO memberAuctionSalesroomDTO, |
| | | @PostMapping("/order-auction-bond/getOrderAuctionBondList1") |
| | | R<List<OrderAuctionBond>> getOrderAuctionBondList1(@RequestBody MemberAuctionSalesroomDTO memberAuctionSalesroomDTO, |
| | | @RequestHeader(SecurityConstants.FROM_SOURCE) String source); |
| | | |
| | | /** |
File was renamed from ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/ArticleCommentsController.java |
| | |
| | | package com.ruoyi.article.controller; |
| | | package com.ruoyi.article.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.article.dto.ArticleCommentsDTO; |
| | | import com.ruoyi.article.dto.ArticleDTO; |
| | | import com.ruoyi.article.service.IArticleCommentsService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @RestController |
| | | @RequestMapping("/article-comments") |
| | | @Api(value = "用户端-评论回复表相关接口", tags = "用户端-评论回复表址相关接口", description = "用户端-评论回复表相关接口") |
| | | public class ArticleCommentsController { |
| | | public class ForepartArticleCommentsController { |
| | | |
| | | @Resource |
| | | private IArticleCommentsService articleCommentsService; |
File was renamed from ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/ArticleController.java |
| | |
| | | package com.ruoyi.article.controller; |
| | | package com.ruoyi.article.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.article.domain.Article; |
| | | import com.ruoyi.article.dto.ArticleDTO; |
| | | import com.ruoyi.article.dto.MemberLikeDTO; |
| | | import com.ruoyi.article.service.IArticleService; |
| | | import com.ruoyi.article.vo.ArticleCommentsVO; |
| | | import com.ruoyi.article.vo.ArticleVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.system.api.domain.MemberAddress; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.text.DateFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RestController |
| | | @RequestMapping("/article") |
| | | @Api(value = "用户端-资讯相关接口", tags = "用户端-资讯相关接口", description = "用户端-资讯相关接口") |
| | | public class ArticleController { |
| | | public class ForepartArticleController { |
| | | @Resource |
| | | private IArticleService iArticleService; |
| | | |
File was renamed from ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/MemberArticleCollectionController.java |
| | |
| | | package com.ruoyi.article.controller; |
| | | package com.ruoyi.article.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.article.domain.Article; |
| | | import com.ruoyi.article.dto.ArticleDTO; |
| | | import com.ruoyi.article.dto.MemberArticleCollectionDTO; |
| | | import com.ruoyi.article.dto.MemberLikeDTO; |
| | | import com.ruoyi.article.service.IMemberArticleCollectionService; |
| | | import com.ruoyi.article.vo.ArticleVO; |
| | | import com.ruoyi.article.vo.MemberArticleCollectionVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | |
| | | @RestController |
| | | @RequestMapping("/member-article-collection") |
| | | @Api(value = "用户端-资讯文章收藏相关接口", tags = "用户端-资讯文章收藏相关接口", description = "用户端-资讯文章收藏相关接口") |
| | | public class MemberArticleCollectionController { |
| | | public class ForepartMemberArticleCollectionController { |
| | | |
| | | @Resource |
| | | private IMemberArticleCollectionService memberArticleCollectionService; |
File was renamed from ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/MemberLikeController.java |
| | |
| | | package com.ruoyi.article.controller; |
| | | package com.ruoyi.article.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.article.dto.MemberLikeDTO; |
| | |
| | | @RestController |
| | | @RequestMapping("/member-like") |
| | | @Api(value = "用户端-资讯点赞相关接口", tags = "用户端-资讯点赞相关接口", description = "用户端-资讯点赞相关接口") |
| | | public class MemberLikeController { |
| | | public class ForepartMemberLikeController { |
| | | |
| | | @Resource |
| | | private IMemberLikeService memberLikeService; |
File was renamed from ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/SensitiveWordsController.java |
| | |
| | | package com.ruoyi.article.controller; |
| | | package com.ruoyi.article.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.article.domain.SensitiveWords; |
| | |
| | | @RestController |
| | | @RequestMapping("/sensitive-words") |
| | | @Api(value = "用户端-资讯敏感词相关接口", tags = "用户端-资讯敏感词相关接口", description = "用户端-资讯敏感词相关接口") |
| | | public class SensitiveWordsController { |
| | | public class ForepartSensitiveWordsController { |
| | | |
| | | @Resource |
| | | private ISensitiveWordsService SensitiveWordsService; |
| | |
| | | import com.ruoyi.article.domain.ArticleComments; |
| | | import com.ruoyi.article.dto.ArticleCommentsDTO; |
| | | import com.ruoyi.article.mapper.ArticleCommentsMapper; |
| | | import com.ruoyi.article.mapper.ArticleMapper; |
| | | import com.ruoyi.article.service.IArticleCommentsService; |
| | | import com.ruoyi.article.service.IArticleService; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | |
| | | @Service |
| | | public class ArticleCommentsServiceImpl extends |
| | | ServiceImpl<ArticleCommentsMapper, ArticleComments> implements IArticleCommentsService { |
| | | @Resource |
| | | private IArticleCommentsService articleCommentsService; |
| | | |
| | | @Resource |
| | | private IArticleService articleService; |
| | | private ArticleMapper articleMapper; |
| | | |
| | | @Override |
| | | public void saveMemberArticleComments(ArticleCommentsDTO articleCommentsDTO) { |
| | | ArticleComments articleComments=new ArticleComments(); |
| | | if (articleCommentsDTO.getId()!=null){ |
| | | articleComments= articleCommentsService.getById(articleCommentsDTO.getId()); |
| | | articleComments= this.getById(articleCommentsDTO.getId()); |
| | | } |
| | | if (articleCommentsDTO.getMemberId()==null){ |
| | | throw new ServiceException("用户id错误"); |
| | |
| | | articleComments.setBmemberId(articleCommentsDTO.getBmemberId()); |
| | | articleComments.setType(2); |
| | | } |
| | | Article byId = articleService.getById(articleCommentsDTO.getArticleId()); |
| | | Article byId = articleMapper.selectById(articleCommentsDTO.getArticleId()); |
| | | byId.setCommentCount(byId.getCommentCount()+1); |
| | | articleService.saveOrUpdate(byId); |
| | | articleCommentsService.saveOrUpdate(articleComments); |
| | | articleMapper.updateById(byId); |
| | | this.saveOrUpdate(articleComments); |
| | | } |
| | | |
| | | @Override |
| | | public void delMemberArticleComments(ArticleCommentsDTO articleCommentsDTO) { |
| | | ArticleComments byId1 = articleCommentsService.getById(articleCommentsDTO.getId()); |
| | | ArticleComments byId1 = this.getById(articleCommentsDTO.getId()); |
| | | |
| | | Article byId = articleService.getById(byId1.getArticleId()); |
| | | Article byId = articleMapper.selectById(byId1.getArticleId()); |
| | | byId.setCommentCount(byId.getCommentCount()-1); |
| | | articleService.saveOrUpdate(byId); |
| | | articleMapper.updateById(byId); |
| | | |
| | | articleCommentsService.removeById(articleCommentsDTO.getId()); |
| | | this.removeById(articleCommentsDTO.getId()); |
| | | } |
| | | } |
| | |
| | | @Service |
| | | public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService { |
| | | |
| | | @Resource |
| | | private IArticleService articleService; |
| | | |
| | | @Resource |
| | | private IArticleCommentsService articleCommentsService; |
| | |
| | | wrapper.eq(Article::getStatus,2); |
| | | wrapper.eq( Article::getDelFlag,0); |
| | | wrapper.orderByDesc(Article::getCreateTime); |
| | | Page< Article> page1 = articleService.page(page, wrapper); |
| | | Page< Article> page1 = this.page(page, wrapper); |
| | | |
| | | PageDTO<ArticleVO> articleCommentsVOPageDTO = PageDTO.of(page1, ArticleVO.class); |
| | | List<ArticleVO> list2 = articleCommentsVOPageDTO.getList(); |
| | |
| | | wrapper.eq(Article::getMemberId,articleDTO.getMemberId()); |
| | | wrapper.eq( Article::getDelFlag,0); |
| | | wrapper.orderByDesc(Article::getCreateTime); |
| | | Page<Article> page1 = articleService.page(page, wrapper); |
| | | Page<Article> page1 = this.page(page, wrapper); |
| | | return PageDTO.of(page1); |
| | | } |
| | | |
| | |
| | | public void saveMemberArticle(ArticleDTO articleDTO) { |
| | | Article article=new Article(); |
| | | if (articleDTO.getId()!=null){ |
| | | article=articleService.getById(articleDTO.getId()); |
| | | article=this.getById(articleDTO.getId()); |
| | | } |
| | | article.setMemberId(articleDTO.getMemberId()); |
| | | article.setArticleType(ArticleTypeEnum.USER_POSTING); |
| | |
| | | } |
| | | article.setImages(urlList.toString()); |
| | | } |
| | | articleService.saveOrUpdate(article); |
| | | this.saveOrUpdate(article); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void delMemberArticle(ArticleDTO articleDTO) { |
| | | articleService.removeById(articleDTO.getId()); |
| | | this.removeById(articleDTO.getId()); |
| | | } |
| | | |
| | | @Override |
| | | public ArticleVO getMemberArticleInfo(ArticleDTO articleDTO) { |
| | | Article article=articleService.getById(articleDTO.getId()); |
| | | Article article=this.getById(articleDTO.getId()); |
| | | ArticleVO articleVO=new ArticleVO(); |
| | | BeanUtils.copyProperties(article, articleVO); |
| | | |
| | |
| | | |
| | | @Override |
| | | public void getReport(ArticleDTO articleDTO) { |
| | | Article article= articleService.getById(articleDTO.getId()); |
| | | Article article= this.getById(articleDTO.getId()); |
| | | R<Member> membeOne = memberClient.getMembeOne(articleDTO.getMemberId(), |
| | | SecurityConstants.INNER); |
| | | Member data = membeOne.getData(); |
| | | article.setReportBy(data.getNickname()); |
| | | article.setReportedTime(LocalDateTime.now()); |
| | | articleService.saveOrUpdate(article); |
| | | this.saveOrUpdate(article); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.article.domain.MemberArticleCollection; |
| | | import com.ruoyi.article.dto.ArticleDTO; |
| | | import com.ruoyi.article.dto.MemberArticleCollectionDTO; |
| | | import com.ruoyi.article.mapper.ArticleMapper; |
| | | import com.ruoyi.article.mapper.MemberArticleCollectionMapper; |
| | | import com.ruoyi.article.service.IArticleService; |
| | | import com.ruoyi.article.service.IMemberArticleCollectionService; |
| | |
| | | @Service |
| | | public class MemberArticleCollectionServiceImpl extends ServiceImpl<MemberArticleCollectionMapper, MemberArticleCollection> implements IMemberArticleCollectionService { |
| | | |
| | | @Resource |
| | | private IMemberArticleCollectionService memberArticleCollectionService; |
| | | |
| | | @Resource |
| | | private IArticleService articleService; |
| | | private ArticleMapper articleMapper; |
| | | @Resource |
| | | private MemberClient memberClient; |
| | | |
| | |
| | | wrapper.eq(MemberArticleCollection::getTargetId,memberArticleCollectionDTO.getTargetId()); |
| | | |
| | | if (memberArticleCollectionDTO.getState()==1){ |
| | | List<MemberArticleCollection> list = memberArticleCollectionService.list(wrapper); |
| | | List<MemberArticleCollection> list = this.list(wrapper); |
| | | if (list.size()==0){ |
| | | MemberArticleCollection m =new MemberArticleCollection(); |
| | | m.setMemberId(memberArticleCollectionDTO.getMemberId()); |
| | | m.setTargetId(memberArticleCollectionDTO.getTargetId()); |
| | | memberArticleCollectionService.save(m); |
| | | this.save(m); |
| | | |
| | | Article byId = articleService.getById(memberArticleCollectionDTO.getTargetId()); |
| | | Article byId = articleMapper.selectById(memberArticleCollectionDTO.getTargetId()); |
| | | byId.setCollectCount(byId.getCollectCount()+1); |
| | | articleService.saveOrUpdate(byId); |
| | | articleMapper.updateById(byId); |
| | | } |
| | | |
| | | }else{ |
| | | List<MemberArticleCollection> list = memberArticleCollectionService.list(wrapper); |
| | | List<MemberArticleCollection> list = this.list(wrapper); |
| | | if (list.size()>0){ |
| | | for (MemberArticleCollection memberArticleCollection:list){ |
| | | Article byId = articleService.getById(memberArticleCollection.getTargetId()); |
| | | Article byId = articleMapper.selectById(memberArticleCollection.getTargetId()); |
| | | byId.setCollectCount(byId.getCollectCount()-1); |
| | | articleService.saveOrUpdate(byId); |
| | | memberArticleCollectionService.removeById(memberArticleCollection); |
| | | articleMapper.updateById(byId); |
| | | this.removeById(memberArticleCollection); |
| | | } |
| | | } |
| | | |
| | |
| | | Page<MemberArticleCollection> page = new Page<>(articleDTO.getPageCurr(), articleDTO.getPageSize()); |
| | | LambdaQueryWrapper< MemberArticleCollection> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(MemberArticleCollection::getMemberId,articleDTO.getMemberId()); |
| | | Page<MemberArticleCollection> page1 = memberArticleCollectionService.page(page, wrapper); |
| | | Page<MemberArticleCollection> page1 = this.page(page, wrapper); |
| | | PageDTO<MemberArticleCollectionVO> articleCommentsVOPageDTO = PageDTO.of(page1, MemberArticleCollectionVO.class); |
| | | List<MemberArticleCollectionVO> list2 = articleCommentsVOPageDTO.getList(); |
| | | for (MemberArticleCollectionVO memberArticleCollectionVO:list2){ |
| | | Article byId = articleService.getById(memberArticleCollectionVO.getTargetId()); |
| | | Article byId = articleMapper.selectById(memberArticleCollectionVO.getTargetId()); |
| | | memberArticleCollectionVO.setContent(byId.getContent()); |
| | | memberArticleCollectionVO.setImages(byId.getImages()); |
| | | memberArticleCollectionVO.setTitle(byId.getTitle()); |
| | |
| | | import com.ruoyi.article.domain.ArticleComments; |
| | | import com.ruoyi.article.domain.MemberLike; |
| | | import com.ruoyi.article.dto.MemberLikeDTO; |
| | | import com.ruoyi.article.mapper.ArticleMapper; |
| | | import com.ruoyi.article.mapper.MemberLikeMapper; |
| | | import com.ruoyi.article.service.IArticleCommentsService; |
| | | import com.ruoyi.article.service.IArticleService; |
| | |
| | | IMemberLikeService { |
| | | |
| | | @Resource |
| | | private IMemberLikeService memberLikeService; |
| | | @Resource |
| | | private IArticleService articleService; |
| | | private ArticleMapper articleMapper; |
| | | |
| | | @Resource |
| | | private IArticleCommentsService articleCommentsService; |
| | |
| | | wrapper.eq(MemberLike::getType,memberLikeDTO.getType()); |
| | | wrapper.eq( MemberLike::getDelFlag,0); |
| | | if (memberLikeDTO.getState()==1){ |
| | | List< MemberLike> memberLikes = memberLikeService.list(wrapper); |
| | | List< MemberLike> memberLikes = this.list(wrapper); |
| | | if (memberLikes.size()==0){ |
| | | MemberLike memberLike=new MemberLike(); |
| | | memberLike.setMemberId(memberLikeDTO.getMemberId()); |
| | | memberLike.setArticleId(memberLikeDTO.getArticleId()); |
| | | memberLike.setType(memberLikeDTO.getType()); |
| | | if (memberLikeDTO.getType()==1){ |
| | | Article byId = articleService.getById(memberLikeDTO.getArticleId()); |
| | | Article byId = articleMapper.selectById(memberLikeDTO.getArticleId()); |
| | | byId.setLikeCount(byId.getLikeCount()+1); |
| | | articleService.saveOrUpdate(byId); |
| | | articleMapper.updateById(byId); |
| | | } |
| | | if (memberLikeDTO.getType()==2){ |
| | | ArticleComments byId = articleCommentsService.getById(memberLikeDTO.getArticleId()); |
| | |
| | | byId.setLikeCount(byId.getLikeCount()+1); |
| | | articleCommentsService.saveOrUpdate(byId); |
| | | } |
| | | memberLikeService.save(memberLike); |
| | | this.save(memberLike); |
| | | } |
| | | }else{ |
| | | List< MemberLike> memberLikes = memberLikeService.list(wrapper); |
| | | List< MemberLike> memberLikes = this.list(wrapper); |
| | | if (memberLikes.size()>0){ |
| | | for (MemberLike memberLike:memberLikes){ |
| | | memberLikeService.removeById(memberLike); |
| | | this.removeById(memberLike); |
| | | |
| | | if (memberLikeDTO.getType()==1){ |
| | | Article byId = articleService.getById(memberLikeDTO.getArticleId()); |
| | | Article byId = articleMapper.selectById(memberLikeDTO.getArticleId()); |
| | | byId.setLikeCount(byId.getLikeCount()-1); |
| | | articleService.saveOrUpdate(byId); |
| | | articleMapper.updateById(byId); |
| | | } |
| | | if (memberLikeDTO.getType()==2){ |
| | | ArticleComments byId = articleCommentsService.getById(memberLikeDTO.getArticleId()); |
| | |
| | | @Service |
| | | public class SensitiveWordsServiceImpl extends ServiceImpl<SensitiveWordsMapper, SensitiveWords> implements ISensitiveWordsService { |
| | | |
| | | @Resource |
| | | private ISensitiveWordsService sensitiveWordsService; |
| | | @Override |
| | | public List<SensitiveWords> getMemberArticleList() { |
| | | LambdaQueryWrapper<SensitiveWords> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(SensitiveWords::getDelFlag,0); |
| | | return sensitiveWordsService.list(wrapper); |
| | | return this.list(wrapper); |
| | | } |
| | | } |
File was renamed from ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/forepart/AuctionBrowseRecordController.java |
| | |
| | | |
| | | import com.ruoyi.auction.service.IAuctionBrowseRecordService; |
| | | import com.ruoyi.auction.service.IAuctionGoodsService; |
| | | import com.ruoyi.auction.service.IAuctionSalesroomGoodsService; |
| | | import com.ruoyi.auction.service.IAuctionSalesroomService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.system.api.domain.dto.AuctionCollectionDTO; |
| | | import com.ruoyi.system.api.domain.dto.AuctionGoodsListDTO; |
| | | import com.ruoyi.system.api.domain.dto.MemberAuctionSalesroomDTO; |
| | | import com.ruoyi.system.api.domain.vo.AuctionGoodsListVO; |
| | |
| | | * @since 2024-05-30 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/auction-browse-record") |
| | | public class AuctionBrowseRecordController { |
| | | @RequestMapping("/forepart/auction-browse-record") |
| | | public class ForepartAuctionBrowseRecordController { |
| | | |
| | | @Resource |
| | | private IAuctionBrowseRecordService iAuctionBrowseRecordService; |
| | | |
| | | @Resource |
| | | private IAuctionSalesroomService iAuctionSalesroomService; |
| | | |
| | | @Resource |
| | | private IAuctionGoodsService iAuctionGoodsService; |
| | | |
| | | @RequestMapping("/getWdAuctionBrowseRecordList") |
| | | @ResponseBody |
| | |
| | | @Service |
| | | public class AuctionBrowseRecordServiceImpl extends ServiceImpl<AuctionBrowseRecordMapper, AuctionBrowseRecord> implements IAuctionBrowseRecordService { |
| | | |
| | | @Resource |
| | | private IAuctionBrowseRecordService iAuctionBrowseRecordService; |
| | | |
| | | |
| | | @Resource |
| | | private AuctionSalesroomMapper auctionSalesroomMapper; |
| | |
| | | wrapper3.ge(AuctionBrowseRecord::getCreateTime, parseTime7) |
| | | .le(AuctionBrowseRecord::getCreateTime, parseTime); |
| | | |
| | | List<AuctionBrowseRecord> list = iAuctionBrowseRecordService.list(wrapper3); |
| | | List<AuctionBrowseRecord> list = this.list(wrapper3); |
| | | Set<Long> goodsSkuIdList = null; |
| | | goodsSkuIdList = list.stream().map(AuctionBrowseRecord::getTargetId) |
| | | .collect(Collectors.toSet()); |
| | |
| | | wrapper3.ge(AuctionBrowseRecord::getCreateTime, parseTime7) |
| | | .le(AuctionBrowseRecord::getCreateTime, parseTime); |
| | | |
| | | List<AuctionBrowseRecord> list = iAuctionBrowseRecordService.list(wrapper3); |
| | | List<AuctionBrowseRecord> list = this.list(wrapper3); |
| | | Set<Long> goodsSkuIdList = null; |
| | | goodsSkuIdList = list.stream().map(AuctionBrowseRecord::getTargetId) |
| | | .collect(Collectors.toSet()); |
| | |
| | | MemberAuctionSalesroomDTO memberAuctionSalesroomDTO1=new MemberAuctionSalesroomDTO(); |
| | | memberAuctionSalesroomDTO1.setAuctionSalesroomId(auctionSalesroom.getId()); |
| | | memberAuctionSalesroomDTO1.setMemberId(MemberAuctionSalesroomDTO.getMemberId()); |
| | | List<OrderAuctionBond> data1 = orderClient.getOrderAuctionBondList(memberAuctionSalesroomDTO1, SecurityConstants.INNER).getData(); |
| | | List<OrderAuctionBond> data1 = orderClient.getOrderAuctionBondList1(memberAuctionSalesroomDTO1, SecurityConstants.INNER).getData(); |
| | | memberAuctionSalesroomVO.setBondTime(data1.get(0).getCreateTime()); |
| | | List.add(memberAuctionSalesroomVO); |
| | | } |
| | |
| | | @Resource |
| | | private AuctionSalesroomGoodsMapper auctionSalesroomGoodsMapper; |
| | | |
| | | @Resource |
| | | private IAuctionSalesroomGoodsService auctionSalesroomGoodsService; |
| | | |
| | | @Resource |
| | | private IAuctionGoodsService auctionGoodsService; |
| | |
| | | memberAuctionSalesroomVO.setStatus(auctionSalesroom.getStatus().getCode()); |
| | | memberAuctionSalesroomVO.setSalesroomId(auctionSalesroom.getId()); |
| | | memberAuctionSalesroomVO.setCoverPic(auctionSalesroom.getCoverPic()); |
| | | List<OrderAuctionBond> data = orderClient.getOrderAuctionBondList(memberAuctionSalesroomDTO, SecurityConstants.INNER).getData(); |
| | | List<OrderAuctionBond> data = orderClient.getOrderAuctionBondList1(memberAuctionSalesroomDTO, SecurityConstants.INNER).getData(); |
| | | if (data.size()>0){ |
| | | memberAuctionSalesroomVO.setIsApply(2); |
| | | }else{ |
| | |
| | | } |
| | | MemberAuctionSalesroomDTO memberAuctionSalesroomDTO1=new MemberAuctionSalesroomDTO(); |
| | | memberAuctionSalesroomDTO1.setAuctionSalesroomId(auctionSalesroom.getId()); |
| | | List<OrderAuctionBond> data1 = orderClient.getOrderAuctionBondList(memberAuctionSalesroomDTO1, SecurityConstants.INNER).getData(); |
| | | List<OrderAuctionBond> data1 = orderClient.getOrderAuctionBondList1(memberAuctionSalesroomDTO1, SecurityConstants.INNER).getData(); |
| | | memberAuctionSalesroomVO.setApplyNum(data1.size()); |
| | | List.add(memberAuctionSalesroomVO); |
| | | } |
| | |
| | | memberAuctionSalesroomInfoVO.setStartTime(byId.getStartTime()); |
| | | memberAuctionSalesroomInfoVO.setStatus(byId.getStatus()); |
| | | memberAuctionSalesroomInfoVO.setCoverPic(byId.getCoverPic()); |
| | | List<OrderAuctionBond> data = orderClient.getOrderAuctionBondList(memberAuctionSalesroomDTO, SecurityConstants.INNER).getData(); |
| | | List<OrderAuctionBond> data = orderClient.getOrderAuctionBondList1(memberAuctionSalesroomDTO, SecurityConstants.INNER).getData(); |
| | | if (data.size()>0){ |
| | | memberAuctionSalesroomInfoVO.setIsApply(2); |
| | | }else{ |
| | |
| | | public void SaveBid(BidDTO bidVO) { |
| | | Member membeOne = memberClient.getMembeOne(bidVO.getMemberId(), SecurityConstants.INNER).getData(); |
| | | if (bidVO.getAuctionType()==2){ |
| | | AuctionSalesroomGoods byId = auctionSalesroomGoodsService.getById(bidVO.getTargetId()); |
| | | AuctionSalesroomGoods byId = auctionSalesroomGoodsMapper.selectById(bidVO.getTargetId()); |
| | | if (byId.getStartingPrice().doubleValue()<bidVO.getLastBidAmount().doubleValue()){ |
| | | throw new ServiceException("出价不能比起拍价低"); |
| | | } |
| | |
| | | } |
| | | auctionSalesroom.setId(auctionSalesroomOrg.getId()); |
| | | this.updateById(auctionSalesroom); |
| | | List<AuctionSalesroomGoods> list = auctionSalesroomGoodsService.list( |
| | | List<AuctionSalesroomGoods> list = auctionSalesroomGoodsMapper.selectList( |
| | | Wrappers.<AuctionSalesroomGoods>lambdaQuery() |
| | | .eq(AuctionSalesroomGoods::getAuctionSalesroomId, id)); |
| | | // 封装库存修改实体 |
| | |
| | | .collect(Collectors.toList()); |
| | | goodsSkuClient.updGoodsStock(goodsStockUpdDTOS, SecurityConstants.INNER); |
| | | // 移除原来地拍卖商品 |
| | | auctionSalesroomGoodsService.remove(Wrappers.<AuctionSalesroomGoods>lambdaQuery() |
| | | auctionSalesroomGoodsMapper.delete(Wrappers.<AuctionSalesroomGoods>lambdaQuery() |
| | | .eq(AuctionSalesroomGoods::getAuctionSalesroomId, id)); |
| | | } |
| | | for (AuctionSalesroomGoods auctionSalesroomGood : auctionSalesroomGoods) { |
| | | auctionSalesroomGood.setAuctionSalesroomId(id); |
| | | } |
| | | // 添加拍卖商品 |
| | | auctionSalesroomGoodsService.saveBatch(auctionSalesroomGoods); |
| | | for (AuctionSalesroomGoods auctionSalesroomGoodss:auctionSalesroomGoods){ |
| | | auctionSalesroomGoodsMapper.insert(auctionSalesroomGoodss); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public PageDTO<WdMemberAuctionSalesroomVO> getWdAuctionSalesroomList(MemberAuctionSalesroomDTO MemberAuctionSalesroomDTO) { |
| | | MemberAuctionSalesroomDTO memberAuctionSalesroomDTO =new MemberAuctionSalesroomDTO(); |
| | | memberAuctionSalesroomDTO.setMemberId(MemberAuctionSalesroomDTO.getMemberId()); |
| | | List<OrderAuctionBond> data = orderClient.getOrderAuctionBondList(memberAuctionSalesroomDTO, SecurityConstants.INNER).getData(); |
| | | List<OrderAuctionBond> data = orderClient.getOrderAuctionBondList1(memberAuctionSalesroomDTO, SecurityConstants.INNER).getData(); |
| | | Set<Long> goodsSkuIdList = null; |
| | | goodsSkuIdList = data.stream().map(OrderAuctionBond::getAuctionSalesroomId) |
| | | .collect(Collectors.toSet()); |
| | |
| | | MemberAuctionSalesroomDTO memberAuctionSalesroomDTO1=new MemberAuctionSalesroomDTO(); |
| | | memberAuctionSalesroomDTO1.setAuctionSalesroomId(auctionSalesroom.getId()); |
| | | memberAuctionSalesroomDTO1.setMemberId(MemberAuctionSalesroomDTO.getMemberId()); |
| | | List<OrderAuctionBond> data1 = orderClient.getOrderAuctionBondList(memberAuctionSalesroomDTO1, SecurityConstants.INNER).getData(); |
| | | List<OrderAuctionBond> data1 = orderClient.getOrderAuctionBondList1(memberAuctionSalesroomDTO1, SecurityConstants.INNER).getData(); |
| | | memberAuctionSalesroomVO.setBondTime(data1.get(0).getCreateTime()); |
| | | List.add(memberAuctionSalesroomVO); |
| | | } |
| | |
| | | MgtAuctionSalesroomVO mgtAuctionSalesroomVO = BeanUtils.copyBean(auctionSalesroom, |
| | | MgtAuctionSalesroomVO.class); |
| | | // 获取拍卖场商品 |
| | | List<AuctionSalesroomGoods> list = auctionSalesroomGoodsService.lambdaQuery() |
| | | .eq(AuctionSalesroomGoods::getAuctionSalesroomId, id).list(); |
| | | LambdaQueryWrapper<AuctionSalesroomGoods> wrappers=new LambdaQueryWrapper<AuctionSalesroomGoods>(); |
| | | wrappers.eq(AuctionSalesroomGoods::getAuctionSalesroomId, id); |
| | | List<AuctionSalesroomGoods> list = auctionSalesroomGoodsMapper.selectList(wrappers); |
| | | if (StringUtils.isNotEmpty(list)) { |
| | | List<MgtAuctionSalesroomGoodsVO> mgtAuctionSalesroomGoodsVOS = BeanUtils.copyList(list, |
| | | MgtAuctionSalesroomGoodsVO.class); |
| | |
| | | import com.ruoyi.auction.controller.forepart.dto.ForepartAuctionVideo; |
| | | import com.ruoyi.auction.domain.AuctionSalesroomGoods; |
| | | import com.ruoyi.auction.domain.AuctionVideo; |
| | | import com.ruoyi.auction.mapper.AuctionSalesroomGoodsMapper; |
| | | import com.ruoyi.auction.mapper.AuctionSalesroomMapper; |
| | | import com.ruoyi.auction.mapper.AuctionVideoMapper; |
| | | import com.ruoyi.auction.service.IAuctionSalesroomGoodsService; |
| | | import com.ruoyi.auction.service.IAuctionVideoService; |
| | |
| | | private PromotionClient promotionClient; |
| | | |
| | | @Resource |
| | | private IAuctionSalesroomGoodsService iAuctionSalesroomGoodsService; |
| | | private AuctionSalesroomGoodsMapper auctionSalesroomGoodsMapper; |
| | | |
| | | /** |
| | | * 暖场视频or封面海报 |
| | |
| | | wrapper.eq(AuctionSalesroomGoods::getStatus,1); |
| | | wrapper.eq(AuctionSalesroomGoods::getAuctionSalesroomId,orepartAuctionVideo.getAuctionSalesroomId()); |
| | | wrapper.eq(AuctionSalesroomGoods::getDelFlag,0); |
| | | AuctionSalesroomGoods auctionSalesroomGoods=iAuctionSalesroomGoodsService.getOne(wrapper); |
| | | AuctionSalesroomGoods auctionSalesroomGoods=auctionSalesroomGoodsMapper.selectOne(wrapper); |
| | | if (auctionSalesroomGoods!=null){ |
| | | R.fail("当前有拍卖品正在拍卖中,请结束后再试!"); |
| | | } |
| | |
| | | package com.ruoyi.goods.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | |
| | | import com.ruoyi.goods.controller.management.vo.GoodsSkuVO; |
| | | import com.ruoyi.goods.domain.GoodsGroupPurchase; |
| | | import com.ruoyi.goods.domain.GoodsInfoTitleValue; |
| | | import com.ruoyi.goods.mapper.GoodsGroupPurchaseMapper; |
| | | import com.ruoyi.goods.mapper.GoodsSeckillMapper; |
| | | import com.ruoyi.goods.mapper.GoodsSkuMapper; |
| | | import com.ruoyi.goods.service.IGoodsGroupPurchaseService; |
| | | import com.ruoyi.goods.service.IGoodsInfoTitleValueService; |
| | | import com.ruoyi.goods.service.IGoodsSeckillService; |
| | | import com.ruoyi.goods.service.IGoodsSkuService; |
| | | import com.ruoyi.system.api.domain.GoodsSeckill; |
| | | import com.ruoyi.system.api.domain.GoodsSku; |
| | |
| | | public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> implements IGoodsSkuService { |
| | | |
| | | private final IGoodsInfoTitleValueService goodsInfoTitleValueService; |
| | | private final IGoodsSeckillService goodsSeckillService; |
| | | private final IGoodsGroupPurchaseService goodsGroupPurchaseService; |
| | | private final GoodsSeckillMapper goodsSeckillMapper; |
| | | private final GoodsGroupPurchaseMapper goodsGroupPurchaseMapper; |
| | | private final RedissonClient redissonClient; |
| | | |
| | | private static final ObjectMapper objectMapper = new ObjectMapper(); |
| | |
| | | } |
| | | |
| | | private void updateGoodsStatus(ListStatusDTO dto) { |
| | | goodsSeckillService.lambdaUpdate() |
| | | .set(GoodsSeckill::getListingStatus, |
| | | ListingStatusEnum.REMOVED_FROM_THE_SHELF) |
| | | .eq(GoodsSeckill::getListingStatus, ListingStatusEnum.ON_SHELVES) |
| | | .eq(GoodsSeckill::getGoodsSkuId, dto.getId()).update(); |
| | | goodsGroupPurchaseService.lambdaUpdate() |
| | | .set(GoodsGroupPurchase::getListingStatus, |
| | | ListingStatusEnum.REMOVED_FROM_THE_SHELF) |
| | | .eq(GoodsGroupPurchase::getListingStatus, |
| | | LambdaQueryWrapper<GoodsSeckill> queryWrapper =new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(GoodsSeckill::getListingStatus, ListingStatusEnum.ON_SHELVES) |
| | | .eq(GoodsSeckill::getGoodsSkuId, dto.getId()); |
| | | GoodsSeckill goodsSeckill = goodsSeckillMapper.selectOne(queryWrapper); |
| | | goodsSeckill.setListingStatus(ListingStatusEnum.REMOVED_FROM_THE_SHELF); |
| | | goodsSeckillMapper.updateById(goodsSeckill); |
| | | |
| | | LambdaQueryWrapper<GoodsGroupPurchase> queryWrapper1 =new LambdaQueryWrapper<>(); |
| | | queryWrapper1.eq(GoodsGroupPurchase::getListingStatus, |
| | | ListingStatusEnum.ON_SHELVES) |
| | | .eq(GoodsGroupPurchase::getGoodsSkuId, dto.getId()).update(); |
| | | .eq(GoodsGroupPurchase::getGoodsSkuId, dto.getId()); |
| | | GoodsGroupPurchase goodsGroupPurchase = goodsGroupPurchaseMapper.selectOne(queryWrapper1); |
| | | goodsGroupPurchase.setListingStatus(ListingStatusEnum.REMOVED_FROM_THE_SHELF); |
| | | |
| | | goodsGroupPurchaseMapper.updateById(goodsGroupPurchase); |
| | | } |
| | | |
| | | /** |
New file |
| | |
| | | package com.ruoyi.member.config; |
| | | |
| | | import cn.binarywang.wx.miniapp.api.WxMaService; |
| | | import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl; |
| | | import cn.binarywang.wx.miniapp.config.WxMaConfig; |
| | | import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppConfig |
| | | * @date 2023年02月17日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Configuration |
| | | public class AppConfig { |
| | | |
| | | |
| | | @Bean |
| | | public WxMaService wxMaService() { |
| | | WxMaService service = new WxMaServiceImpl(); |
| | | service.setWxMaConfig(memberWxMaConfig()); |
| | | return service; |
| | | } |
| | | |
| | | @Bean |
| | | public WxMaConfig memberWxMaConfig(){ |
| | | WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl(); |
| | | config.setAppid("wxb7f0ea286fc4e535"); |
| | | config.setSecret("852a2512a6ab559cafc68bae5d4160ac"); |
| | | return config; |
| | | } |
| | | } |
File was renamed from ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/AlipayAppController.java |
| | |
| | | package com.ruoyi.member.controller; |
| | | package com.ruoyi.member.controller.forepart; |
| | | |
| | | import com.alipay.api.AlipayApiException; |
| | | import com.alipay.api.AlipayClient; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | @Controller |
| | | @RequestMapping("/alipay") |
| | | public class AlipayAppController { |
| | | @RequestMapping("/forepart/alipay") |
| | | public class ForepartAlipayAppController { |
| | | |
| | | /** |
| | | * Alipay客户端 |
File was renamed from ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/MemberAddressController.java |
| | |
| | | package com.ruoyi.member.controller; |
| | | package com.ruoyi.member.controller.forepart; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/member-address") |
| | | @RequestMapping("/forepart/member-address") |
| | | @Api(value = "用户端-用户地址相关接口", tags = "用户端-用户地址相关接口", description = "用户端-用户地址相关接口") |
| | | public class MemberAddressController { |
| | | public class ForepartMemberAddressController { |
| | | /** |
| | | * 获取当前商品信息 |
| | | * |
File was renamed from ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/MemberController.java |
| | |
| | | package com.ruoyi.member.controller; |
| | | package com.ruoyi.member.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/member") |
| | | @RequestMapping("/forepart/member") |
| | | @Api(value = "用户端-用户信息相关接口", tags = "用户端-用户信息相关接口", description = "用户端-用户信息相关接口") |
| | | public class MemberController { |
| | | public class ForepartMemberController { |
| | | @Resource |
| | | private IMemberService iMemberService; |
| | | |
| | | @RequestMapping("/getMembeOne") |
| | | @ResponseBody |
| | | @InnerAuth |
| | | @ApiOperation(value = "获取通过id用户信息") |
| | | public R<Member> getMembeOne(@RequestBody Long userId) { |
| | | return R.ok(iMemberService.getById(userId)); |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping("/miniLogin") |
File was renamed from ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/MemberLevelController.java |
| | |
| | | package com.ruoyi.member.controller; |
| | | package com.ruoyi.member.controller.forepart; |
| | | |
| | | |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/member-level") |
| | | @RequestMapping("/forepart/member-level") |
| | | @RequiredArgsConstructor |
| | | public class MemberLevelController { |
| | | public class ForepartMemberLevelController { |
| | | |
| | | } |
File was renamed from ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/MemberPointsController.java |
| | |
| | | package com.ruoyi.member.controller; |
| | | package com.ruoyi.member.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | * @since 2024-05-23 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/member-points") |
| | | @RequestMapping("/forepart/member-points") |
| | | @Api(value = "用户端-用户积分", tags = "用户端-用户积分", description = "用户端-用户积分") |
| | | public class MemberPointsController { |
| | | public class ForepartMemberPointsController { |
| | | @Resource |
| | | private IMemberPointsService iMemberPointsService; |
| | | @RequestMapping("/getMemberPoints") |
| | |
| | | import com.ruoyi.system.api.domain.Member; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author mitao |
| | |
| | | return R.ok(memberService.getMemberListByIds(memberIdList)); |
| | | } |
| | | |
| | | @RequestMapping("/getMembeOne") |
| | | @ResponseBody |
| | | @InnerAuth |
| | | @ApiOperation(value = "获取通过id用户信息") |
| | | public R<Member> getMembeOne(@RequestBody Long userId) { |
| | | return R.ok(memberService.getById(userId)); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | <dependency> |
| | | <groupId>com.google.code.gson</groupId> |
| | | <artifactId>gson</artifactId> |
| | | <version>2.2.4</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.thoughtworks.xstream</groupId> |
| | | <artifactId>xstream</artifactId> |
| | | <version>1.4.8</version> |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/MemberInvoiceController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | * @since 2024-05-23 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/member-invoice") |
| | | @RequestMapping("/forepart/member-invoice") |
| | | @Api(value = "用户端-我的发票相关接口", tags = "用户端-我的发票相关接口", description = "用户端-我的发票相关接口") |
| | | public class MemberInvoiceController { |
| | | public class ForepartMemberInvoiceController { |
| | | |
| | | @Resource |
| | | private IMemberInvoiceService iMemberInvoiceService; |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/MemberInvoiceOrderController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | * @since 2024-05-23 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/member-invoice-order") |
| | | @RequestMapping("/forepart/member-invoice-order") |
| | | @Api(value = "用户端-用户开票历史详情相关接口", tags = "用户端-用户开票历史详情相关接口", description = "用户端-用户开票历史详情关接口") |
| | | public class MemberInvoiceOrderController { |
| | | public class ForepartMemberInvoiceOrderController { |
| | | |
| | | @Resource |
| | | private IMemberInvoiceOrderService iMemberInvoiceOrderService; |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/MemberInvoiceRiseController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | * @since 2024-05-23 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/member-invoice-rise") |
| | | @RequestMapping("/forepart/member-invoice-rise") |
| | | @Api(value = "用户端-用户发票相关接口", tags = "用户端-用户发票相关接口", description = "用户端-用户发票相关接口") |
| | | public class MemberInvoiceRiseController { |
| | | public class ForepartMemberInvoiceRiseController { |
| | | |
| | | @Resource |
| | | private IMemberInvoiceRiseService iMemberInvoiceRiseService; |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/PaylogController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.order.service.IPaylogService; |
| | | import com.ruoyi.order.service.impl.PaylogServiceImpl; |
| | | import com.ruoyi.order.util.DateUtil; |
| | | import com.ruoyi.order.util.SinataUtil; |
| | | import com.ruoyi.order.util.alipay.config.AlipayConfig; |
| | | import com.ruoyi.order.util.alipay.util.PayDemoActivity; |
| | | import com.ruoyi.order.util.tencent.common.Configure; |
| | | import com.ruoyi.order.util.tencent.common.Signature; |
| | | import com.ruoyi.order.util.tencent.common.XMLParser; |
| | | import com.ruoyi.order.util.tencent.protocol.AppPayReqData; |
| | | import com.ruoyi.order.util.tencent.protocol.UnifiedorderReqData; |
| | | import com.ruoyi.system.api.domain.dto.PayInfoDTO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | * @since 2024-05-22 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/paylog") |
| | | @RequestMapping("/forepart/paylog") |
| | | @Api(value = "用户端-获取支付信息", tags = "用户端-获取支付信息", description = "用户端-获取支付信息") |
| | | public class PaylogController { |
| | | public class ForepartPaylogController { |
| | | /** |
| | | * 获取支付信息 |
| | | * |
| | |
| | | * 金额 |
| | | * @return |
| | | */ |
| | | |
| | | @Resource |
| | | private IPaylogService iPaylogService; |
| | | |
| | | |
| | | @Resource |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderAuctionBondController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.inner; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.enums.AuctionOrderTypeEnum; |
| | | import com.ruoyi.common.core.enums.BondStatusEnum; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.order.service.IOrderAuctionBondService; |
| | | import com.ruoyi.system.api.domain.OrderAuctionBond; |
| | | import com.ruoyi.system.api.domain.dto.*; |
| | | import com.ruoyi.system.api.domain.vo.PayInfoVO; |
| | | |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.system.api.domain.vo.PayInfoVO; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/order-auction-bond") |
| | | public class OrderAuctionBondController { |
| | | public class InnerOrderAuctionBondController { |
| | | |
| | | @Resource |
| | | private IOrderAuctionBondService iOrderAuctionBondService; |
| | | |
| | | /** |
| | | * 获取当前商品信息 |
| | | * |
| | | */ |
| | | @InnerAuth |
| | | @PostMapping("/getOrderAuctionBond") |
| | |
| | | @InnerAuth |
| | | @PostMapping("/getOrderAuctionBondList") |
| | | @ResponseBody |
| | | public R<List<OrderAuctionBond>> getOrderAuctionBondList(@RequestBody MemberAuctionSalesroomDTO memberAuctionSalesroomDTO) { |
| | | public R<List<OrderAuctionBond>> getOrderAuctionBondList( |
| | | @RequestBody MemberAuctionSalesroomDTO memberAuctionSalesroomDTO) { |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(OrderAuctionBond::getMemberId, memberAuctionSalesroomDTO.getMemberId()); |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId, |
| | | memberAuctionSalesroomDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(OrderAuctionBond::getDelFlag, 0); |
| | | List<OrderAuctionBond> list = iOrderAuctionBondService.list(wrapper); |
| | | return R.ok(list); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 查询保证金订单列表 |
| | | * |
| | | * @param id 拍卖商品id |
| | | * @param auctionOrderTypeEnum 拍卖类型: 普通拍品 拍卖会拍品 |
| | | * @param bondStatusEnum 保证金状态 待支付 已支付 已退款 为null则查询所有 |
| | | * @return List<OrderAuctionBond> |
| | | */ |
| | | @InnerAuth |
| | | @PostMapping("/list") |
| | | public R<List<OrderAuctionBond>> getOrderAuctionBondList(@RequestParam("id") Long id, |
| | | @RequestParam("auctionOrderTypeEnum") AuctionOrderTypeEnum auctionOrderTypeEnum, |
| | | @RequestParam(value = "bondStatusEnum", required = false) BondStatusEnum bondStatusEnum) { |
| | | return R.ok(iOrderAuctionBondService.getOrderAuctionBondList(id, auctionOrderTypeEnum, |
| | | bondStatusEnum)); |
| | | } |
| | | |
| | | /** |
| | | * 批量更新保证金订单状态 |
| | | * |
| | | * @param ids 保证金订单id列表 |
| | | * @param bondStatusEnum 保证金状态 |
| | | */ |
| | | @InnerAuth |
| | | @PutMapping |
| | | R<?> updateOrderAuctionBondStatus(@RequestParam("ids") List<Long> ids, |
| | | @RequestParam("bondStatusEnum") BondStatusEnum bondStatusEnum) { |
| | | iOrderAuctionBondService.updateOrderAuctionBondStatus(ids, bondStatusEnum); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/getOrderAuctionBondList1") |
| | | @ResponseBody |
| | | public R<List<OrderAuctionBond>> getOrderAuctionBondList1(@RequestBody MemberAuctionSalesroomDTO memberAuctionSalesroomDTO) { |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(OrderAuctionBond::getMemberId,memberAuctionSalesroomDTO.getMemberId()); |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId,memberAuctionSalesroomDTO.getAuctionSalesroomId()); |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/InvoicingApplicationController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.inner; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderAuctionController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.inner; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.inner; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderMallController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.inner; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderReturnRequestController.java |
| | |
| | | package com.ruoyi.order.controller; |
| | | package com.ruoyi.order.controller.inner; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | public class PayController { |
| | | |
| | | private final IPaylogService paylogService; |
| | | private final PaylogServiceImpl paylogServiceImpl; |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/refund-batch") |
| | |
| | | public class OrderAuctionBondServiceImpl extends ServiceImpl<OrderAuctionBondMapper, OrderAuctionBond> implements IOrderAuctionBondService { |
| | | |
| | | @Resource |
| | | private IOrderAuctionBondService iOrderAuctionBondService; |
| | | |
| | | @Resource |
| | | private IPaylogService iPaylogService; |
| | | |
| | | @Resource |
| | |
| | | wrapper.notIn(OrderAuctionBond::getMemberId, orderAuctionBondDTO.getUserList()); |
| | | wrapper.eq(OrderAuctionBond::getDelFlag, 0); |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId, orderAuctionBondDTO.getAuctionSalesroomId()); |
| | | List<OrderAuctionBond> orderAuctionBondList = iOrderAuctionBondService.list(wrapper); |
| | | List<OrderAuctionBond> orderAuctionBondList = this.list(wrapper); |
| | | for (OrderAuctionBond orderAuctionBond : orderAuctionBondList) { |
| | | LambdaQueryWrapper<Paylog> wrapper1 = Wrappers.lambdaQuery(); |
| | | wrapper1.eq(Paylog::getOutTradeNo, orderAuctionBond.getOrderNo()); |
| | |
| | | orderAuctionBond.setBond(data.getBond()); |
| | | orderAuctionBond.setBoundStatus(BondStatusEnum.PAID); |
| | | orderAuctionBond.setBondType(AuctionOrderTypeEnum.AUCTION_ITEMS); |
| | | iOrderAuctionBondService.save(orderAuctionBond); |
| | | this.save(orderAuctionBond); |
| | | payInfoVO.setOrderNO(orderAuctionBond.getOrderNo()); |
| | | payInfoVO.setType(0); |
| | | payInfoVO.setSubject("保证金"); |
| | |
| | | orderAuctionBond.setPaymentMethod(PaymentMethodEnum.ALIPAY); |
| | | } |
| | | |
| | | iOrderAuctionBondService.save(orderAuctionBond); |
| | | this.save(orderAuctionBond); |
| | | |
| | | payInfoVO.setOrderNO(orderAuctionBond.getOrderNo()); |
| | | if (memberAuctionSalesroomBondDTO.getPaymentMethod() == 1) { |
| | |
| | | orderAuctionBond.setBond(data.getBond()); |
| | | orderAuctionBond.setBoundStatus(BondStatusEnum.PAID); |
| | | orderAuctionBond.setBondType(AuctionOrderTypeEnum.AUCTION_ITEMS); |
| | | iOrderAuctionBondService.save(orderAuctionBond); |
| | | this.save(orderAuctionBond); |
| | | payInfoVO.setOrderNO(orderAuctionBond.getOrderNo()); |
| | | payInfoVO.setType(0); |
| | | payInfoVO.setSubject("保证金"); |
| | |
| | | } else { |
| | | orderAuctionBond.setPaymentMethod(PaymentMethodEnum.ALIPAY); |
| | | } |
| | | iOrderAuctionBondService.save(orderAuctionBond); |
| | | this.save(orderAuctionBond); |
| | | payInfoVO.setOrderNO(orderAuctionBond.getOrderNo()); |
| | | if (memberAuctionSalesroomBondDTO.getPaymentMethod() == 1) { |
| | | payInfoVO.setType(2); |
| | |
| | | public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService { |
| | | |
| | | |
| | | @Resource |
| | | private IOrderService orderService; |
| | | |
| | | @Resource |
| | | private IOrderMallService orderMallService; |
| | | @Override |
| | |
| | | order.setReceiverCity(OrderDTO.getReceiverCity()); |
| | | order.setReceiverDetailAddress(OrderDTO.getReceiverDetailAddress()); |
| | | order.setBound(OrderDTO.getBound()); |
| | | orderService.save(order); |
| | | this.save(order); |
| | | } |
| | | |
| | | /** |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.system.api.feignClient.OrderClient; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class PaylogServiceImpl extends ServiceImpl<PaylogMapper, Paylog> implements IPaylogService { |
| | | |
| | | @Resource |
| | | private PaylogServiceImpl paylogServiceImpl; |
| | | |
| | | @Resource |
| | | private IPaylogService iPaylogService; |
| | | |
| | | @Resource |
| | | private OrderClient orderClient; |
| | |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | if (type == 1) { |
| | | // 支付宝预下单 |
| | | return paylogServiceImpl.alipay(orderNO, subject, body, price, request); |
| | | return this.alipay(orderNO, subject, body, price, request); |
| | | } else { |
| | | // 微信预下单 |
| | | return paylogServiceImpl.wxpay(2, orderNO, body,openId, price, request); |
| | | return this.wxpay(2, orderNO, body,openId, price, request); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | |
| | | try { |
| | | LambdaQueryWrapper<Paylog> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(Paylog::getOutTradeNo,paylog1.getOutTradeNo()); |
| | | Paylog one = iPaylogService.getOne(wrapper); |
| | | Paylog one = this.getOne(wrapper); |
| | | if(SinataUtil.isEmpty(one)) { |
| | | iPaylogService.save(paylog1); |
| | | this.save(paylog1); |
| | | if (paylog1.getOutTradeNo().contains("BO")) { |
| | | BondDTO bondVO=new BondDTO(); |
| | | bondVO.setOrderNO(paylog1.getOutTradeNo()); |
| | |
| | | |
| | | LambdaQueryWrapper<Paylog> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(Paylog::getOutTradeNo,out_trade_no); |
| | | Paylog one = iPaylogService.getOne(wrapper); |
| | | Paylog one = this.getOne(wrapper); |
| | | if(SinataUtil.isEmpty(one)) { |
| | | Paylog paylog = new Paylog(); |
| | | paylog.setOutTradeNo(out_trade_no); |
| | |
| | | paylog.setState(1); |
| | | System.out.println("支付完成时间" + time_end); |
| | | paylog.setAddTime(LocalDateTime.now()); |
| | | iPaylogService.save(paylog); |
| | | this.save(paylog); |
| | | if (paylog.getOutTradeNo().contains("BO")) { |
| | | BondDTO bondVO=new BondDTO(); |
| | | bondVO.setOrderNO(paylog.getOutTradeNo()); |
| | |
| | | Set<String> orderNoList = refundDTOS.stream().map(RefundDTO::getOrderNo) |
| | | .collect(Collectors.toSet()); |
| | | if (StringUtils.isNotEmpty(orderNoList)) { |
| | | Map<String, Paylog> paylogMap = iPaylogService.lambdaQuery() |
| | | Map<String, Paylog> paylogMap = this.lambdaQuery() |
| | | .in(Paylog::getOutTradeNo, orderNoList).eq(Paylog::getState, 1).list().stream() |
| | | .collect(Collectors.toMap(Paylog::getOutTradeNo, Function.identity())); |
| | | List<Paylog> updList = new ArrayList<>(); |
| | |
| | | } |
| | | }); |
| | | } |
| | | iPaylogService.updateBatchById(updList); |
| | | this.updateBatchById(updList); |
| | | } |
| | | return map; |
| | | } |
| | |
| | | boolean res = false; |
| | | if (StringUtils.isNotNull(paylog)) { |
| | | if (paylog.getPayType() == 1) { |
| | | res = paylogServiceImpl.refundForAlipay(paylog.getOutTradeNo(), |
| | | res = this.refundForAlipay(paylog.getOutTradeNo(), |
| | | paylog.getTradeNo(), amount.doubleValue()); |
| | | } |
| | | if (paylog.getPayType() == 2) { |
| | |
| | | String money = SinataUtil.doubleRetainTwo(paylog.getPayMoney() * 100d); |
| | | Integer totalFee = Integer.parseInt( |
| | | money.substring(0, money.length() - 3)); |
| | | res = paylogServiceImpl.refundForWxpay(2, paylog.getTradeNo(), |
| | | res = this.refundForWxpay(2, paylog.getTradeNo(), |
| | | paylog.getOutTradeNo(), orderNo, totalFee, |
| | | refundFee, "4"); |
| | | } |
| | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | import com.alibaba.nacos.shaded.com.google.gson.JsonObject; |
| | | import net.sf.json.JSONObject; |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | |
| | | import org.apache.http.impl.client.DefaultHttpClient; |
| | | import org.apache.http.util.EntityUtils; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.JsonObject; |
| | | |
| | | /*** |
| | | * @author V型知识库 www.vxzsk.com |
| | | * |
File was renamed from ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/CouponController.java |
| | |
| | | package com.ruoyi.promotion.controller; |
| | | package com.ruoyi.promotion.controller.forepart; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/coupon") |
| | | public class CouponController { |
| | | @RequestMapping("/forepart/coupon") |
| | | public class ForepartCouponController { |
| | | |
| | | } |
File was renamed from ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/CouponMemberController.java |
| | |
| | | package com.ruoyi.promotion.controller; |
| | | package com.ruoyi.promotion.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.promotion.controller.dto.CouponMemberDTO; |
| | | import com.ruoyi.promotion.controller.forepart.dto.CouponMemberDTO; |
| | | import com.ruoyi.promotion.domain.CouponMember; |
| | | import com.ruoyi.promotion.service.ICouponMemberService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/coupon-member") |
| | | @RequestMapping("/forepart/coupon-member") |
| | | @Api(value = "用户端-获取用户优惠卷", tags = "用户端-获取用户优惠卷", description = "用户端-获取用户优惠卷") |
| | | public class CouponMemberController { |
| | | public class ForepartCouponMemberController { |
| | | |
| | | @Resource |
| | | private ICouponMemberService iCouponMemberService; |
File was renamed from ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/PromotionBannerController.java |
| | |
| | | package com.ruoyi.promotion.controller; |
| | | package com.ruoyi.promotion.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/promotion-banner") |
| | | @RequestMapping("/forepart/promotion-banner") |
| | | @Api(value = "用户端-商场或者资讯的轮播图", tags = "用户端-商场或者资讯的轮播图", description = "用户端-商场或者资讯的轮播图") |
| | | public class PromotionBannerController { |
| | | public class ForepartPromotionBannerController { |
| | | @Resource |
| | | private IPromotionBannerService iPromotionBannerService; |
| | | @RequestMapping("/getBaanerList") |
New file |
| | |
| | | package com.ruoyi.promotion.controller.forepart; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * <p> |
| | | * 视频表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author mitao |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/forepart/promotion-video") |
| | | public class FrepartPromotionVideoController { |
| | | |
| | | |
| | | } |
File was renamed from ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/PromotionWishListController.java |
| | |
| | | package com.ruoyi.promotion.controller; |
| | | package com.ruoyi.promotion.controller.forepart; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.promotion.controller.dto.PromotionWishListDTO; |
| | | import com.ruoyi.promotion.controller.forepart.dto.PromotionWishListDTO; |
| | | import com.ruoyi.promotion.domain.PromotionWishList; |
| | | import com.ruoyi.promotion.service.IPromotionWishListService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/promotion-wish-list") |
| | | @RequestMapping("/forepart/promotion-wish-list") |
| | | @Api(value = "用户端-心愿单相关接口", tags = "用户端-心愿单相关接口", description = "用户端-心愿单相关接口") |
| | | public class PromotionWishListController { |
| | | public class FrepartPromotionWishListController { |
| | | @Resource |
| | | private IPromotionWishListService iPromotionWishListService; |
| | | @RequestMapping("/getPromotionWishList") |
File was renamed from ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/dto/CouponMemberDTO.java |
| | |
| | | package com.ruoyi.promotion.controller.dto; |
| | | package com.ruoyi.promotion.controller.forepart.dto; |
| | | |
| | | import com.ruoyi.common.core.web.page.BasePage; |
| | | import io.swagger.annotations.ApiModelProperty; |
File was renamed from ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/dto/PromotionWishListDTO.java |
| | |
| | | package com.ruoyi.promotion.controller.dto; |
| | | package com.ruoyi.promotion.controller.forepart.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.promotion.controller.dto.CouponMemberDTO; |
| | | import com.ruoyi.promotion.controller.forepart.dto.CouponMemberDTO; |
| | | import com.ruoyi.promotion.domain.CouponMember; |
| | | |
| | | /** |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.promotion.controller.dto.PromotionWishListDTO; |
| | | import com.ruoyi.promotion.controller.forepart.dto.PromotionWishListDTO; |
| | | import com.ruoyi.promotion.domain.PromotionWishList; |
| | | |
| | | /** |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.promotion.controller.dto.CouponMemberDTO; |
| | | import com.ruoyi.promotion.controller.forepart.dto.CouponMemberDTO; |
| | | import com.ruoyi.promotion.domain.CouponMember; |
| | | import com.ruoyi.promotion.mapper.CouponMemberMapper; |
| | | import com.ruoyi.promotion.service.ICouponMemberService; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.promotion.controller.dto.PromotionWishListDTO; |
| | | import com.ruoyi.promotion.controller.forepart.dto.PromotionWishListDTO; |
| | | import com.ruoyi.promotion.domain.PromotionWishList; |
| | | import com.ruoyi.promotion.mapper.PromotionWishListMapper; |
| | | import com.ruoyi.promotion.service.IPromotionWishListService; |
| | |
| | | nacos: |
| | | discovery: |
| | | # 服务注册地址 |
| | | server-addr: 127.0.0.1:8858 |
| | | server-addr: 192.168.110.188:8858 |
| | | service: ${spring.application.name} |
| | | group: DEFAULT_GROUP |
| | | namespace: 689e0f09-d102-460c-ac5c-5ea50a3174be |
| | | config: |
| | | # 配置中心地址 |
| | | server-addr: 127.0.0.1:8858 |
| | | server-addr: 192.168.110.188:8858 |
| | | namespace: 689e0f09-d102-460c-ac5c-5ea50a3174be |
| | | group: DEFAULT_GROUP |
| | | name: ${spring.application.name} |
| | |
| | | nacos: |
| | | discovery: |
| | | # 服务注册地址 |
| | | server-addr: 127.0.0.1:8858 |
| | | server-addr: 192.168.110.188:8858 |
| | | service: ${spring.application.name} |
| | | group: DEFAULT_GROUP |
| | | namespace: 689e0f09-d102-460c-ac5c-5ea50a3174be |
| | | config: |
| | | # 配置中心地址 |
| | | server-addr: 127.0.0.1:8858 |
| | | server-addr: 192.168.110.188:8858 |
| | | namespace: 689e0f09-d102-460c-ac5c-5ea50a3174be |
| | | group: DEFAULT_GROUP |
| | | name: ${spring.application.name} |