提交
This commit is contained in:
25
pxdj-java/pxdj-service/pom.xml
Normal file
25
pxdj-java/pxdj-service/pom.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>pxdj-java</artifactId>
|
||||
<groupId>com.pxdj</groupId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>pxdj-service</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.pxdj</groupId>
|
||||
<artifactId>pxdj-bean</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.binarywang</groupId>
|
||||
<artifactId>weixin-java-pay</artifactId>
|
||||
<version>4.7.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.pxdj.api.factory;
|
||||
|
||||
import com.pxdj.api.enums.BaseEnum;
|
||||
import com.pxdj.api.domain.Order;
|
||||
import com.pxdj.api.domain.ScoreDetail;
|
||||
import com.pxdj.api.domain.User;
|
||||
import com.pxdj.api.service.InvitationService;
|
||||
import com.pxdj.api.service.ScoreDetailService;
|
||||
import com.pxdj.api.service.UserService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GenrralMall implements PaymentStrategy{
|
||||
@Autowired
|
||||
InvitationService invitationService;
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
@Resource
|
||||
private ScoreDetailService scoreDetailService;
|
||||
|
||||
@Override
|
||||
public void consume(Order order,User user) {
|
||||
//会员赠送积分
|
||||
if (!Objects.equals(user.getVipGrade(), BaseEnum.NO_ZERO.getKey())) {
|
||||
userService.updateScore(user.getUserId(),order.getTotal());
|
||||
//积分记录表
|
||||
ScoreDetail scoreDetail= new ScoreDetail();
|
||||
scoreDetail.setUserId(user.getUserId());
|
||||
scoreDetail.setQuantity(order.getTotal());
|
||||
scoreDetail.setCreateTime(new Date());
|
||||
//新增积分
|
||||
scoreDetail.setType(BaseEnum.YES.getKey());
|
||||
scoreDetail.setScoreDescription("订单消费返现积分");
|
||||
scoreDetailService.save(scoreDetail);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.pxdj.api.factory;
|
||||
|
||||
import com.pxdj.api.enums.BaseEnum;
|
||||
import com.pxdj.api.domain.Order;
|
||||
import com.pxdj.api.domain.ScoreDetail;
|
||||
import com.pxdj.api.domain.User;
|
||||
import com.pxdj.api.service.InvitationService;
|
||||
import com.pxdj.api.service.ScoreDetailService;
|
||||
import com.pxdj.api.service.UserService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
|
||||
public class OrdinaryMall implements PaymentStrategy{
|
||||
|
||||
@Autowired
|
||||
InvitationService invitationService;
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
@Resource
|
||||
private ScoreDetailService scoreDetailService;
|
||||
@Override
|
||||
@Transactional
|
||||
public void consume(Order order, User user) {
|
||||
System.out.println("-=-========");
|
||||
//会员赠送积分
|
||||
if (!Objects.equals(user.getVipGrade(), BaseEnum.NO_ZERO.getKey())) {
|
||||
double priceTotal = order.getTotal();
|
||||
userService.updateScore(user.getUserId(),priceTotal);
|
||||
//积分记录表
|
||||
ScoreDetail scoreDetail= new ScoreDetail();
|
||||
scoreDetail.setUserId(user.getUserId());
|
||||
scoreDetail.setQuantity(priceTotal);
|
||||
scoreDetail.setCreateTime(new Date());
|
||||
//新增积分
|
||||
scoreDetail.setType(BaseEnum.YES.getKey());
|
||||
scoreDetail.setScoreDescription("订单消费返现积分");
|
||||
scoreDetailService.save(scoreDetail);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.pxdj.api.factory;
|
||||
|
||||
import com.pxdj.api.domain.Order;
|
||||
import com.pxdj.api.domain.User;
|
||||
|
||||
public interface PaymentStrategy {
|
||||
void consume(Order order, User user);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.pxdj.api.factory;
|
||||
|
||||
import com.pxdj.api.enums.BizCodeEnum;
|
||||
import com.pxdj.api.enums.ProdTypeEnum;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class PaymentStrategyFactory {
|
||||
|
||||
public static PaymentStrategy getPaymentStrategy(Integer paymentType) {
|
||||
if (paymentType == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (Objects.equals(paymentType, ProdTypeEnum.BIZ_CODE_ORDINARY_PRODUCT.type)) {
|
||||
return new OrdinaryMall();
|
||||
} else if (Objects.equals(paymentType, ProdTypeEnum.BIZ_CODE_MEMBER.type)) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.pxdj.api.factory;
|
||||
|
||||
import com.pxdj.api.domain.Order;
|
||||
import com.pxdj.api.domain.User;
|
||||
import com.pxdj.api.service.ScoreDetailService;
|
||||
import com.pxdj.api.service.UserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Component
|
||||
public class PointsMall implements PaymentStrategy{
|
||||
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
@Resource
|
||||
private ScoreDetailService scoreDetailService;
|
||||
@Override
|
||||
@Transactional
|
||||
public void consume(Order order, User user) {
|
||||
//扣减积分
|
||||
/* userService.consumeScore(user.getUserId(),order.getPointsTotal());
|
||||
//积分记录表
|
||||
ScoreDetail scoreDetail= new ScoreDetail();
|
||||
scoreDetail.setUserId(user.getUserId());
|
||||
scoreDetail.setQuantity(order.getPointsTotal());
|
||||
scoreDetail.setCreateTime(new Date());
|
||||
//新增积分
|
||||
scoreDetail.setType(BaseEnum.YES.getKey());
|
||||
scoreDetail.setScoreDescription("订单消费返现积分");
|
||||
scoreDetailService.save(scoreDetail);*/
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Area;
|
||||
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface AreaMapper extends BaseMapper<Area> {
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.AttachFile;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface AttachFileMapper extends BaseMapper<AttachFile> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.dto.ShopCartItemDto;
|
||||
import com.pxdj.api.domain.Basket;
|
||||
import com.pxdj.api.param.ShopCartParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface BasketMapper extends BaseMapper<Basket> {
|
||||
|
||||
/**
|
||||
* 获取购物项
|
||||
* @param userId 用户id
|
||||
* @return 购物项列表
|
||||
*/
|
||||
List<ShopCartItemDto> getShopCartItems(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 根据购物车id列表和用户id删除购物车
|
||||
* @param userId 用户id
|
||||
* @param basketIds 购物车id列表
|
||||
*/
|
||||
void deleteShopCartItemsByBasketIds(@Param("userId") String userId, @Param("basketIds") List<Long> basketIds);
|
||||
|
||||
/**
|
||||
* 删除所有购物车
|
||||
* @param userId 用户id
|
||||
*/
|
||||
void deleteAllShopCartItems(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 获取失效的购物项
|
||||
* @param userId 用户id
|
||||
* @return 失效的购物项
|
||||
*/
|
||||
List<ShopCartItemDto> getShopCartExpiryItems(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 删除失效的购物项
|
||||
* @param userId 用户id
|
||||
*/
|
||||
void cleanExpiryProdList(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 更新购物车满减活动id
|
||||
* @param userId 用户id
|
||||
* @param basketIdShopCartParamMap 购物项map
|
||||
*/
|
||||
void updateDiscountItemId(@Param("userId")String userId, @Param("basketIdShopCartParamMap") Map<Long, ShopCartParam> basketIdShopCartParamMap);
|
||||
|
||||
/**
|
||||
* 根据商品id获取用户id列表
|
||||
* @param prodId
|
||||
* @return
|
||||
*/
|
||||
List<String> listUserIdByProdId(@Param("prodId")Long prodId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Brand;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface BrandMapper extends BaseMapper<Brand> {
|
||||
|
||||
/**
|
||||
* 根据品牌名称获取品牌
|
||||
* @param brandName 品牌名称
|
||||
* @return 品牌信息
|
||||
*/
|
||||
Brand getByBrandName(String brandName);
|
||||
|
||||
/**
|
||||
* 根据分类id获取品牌列表
|
||||
* @param categoryId 分类id
|
||||
* @return 品牌列表
|
||||
*/
|
||||
List<Brand> listByCategoryId(@Param("categoryId")Long categoryId);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.CategoryBrand;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {
|
||||
|
||||
/**
|
||||
* 增加分类品牌
|
||||
* @param categoryId 分类id
|
||||
* @param brandIds 品牌id列表
|
||||
*/
|
||||
void insertCategoryBrand(@Param("categoryId") Long categoryId, @Param("brandIds") List<Long> brandIds);
|
||||
|
||||
/**
|
||||
* 删除分类
|
||||
* @param categoryId 分类id
|
||||
*/
|
||||
void deleteByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 根据品牌名称删除分类品牌
|
||||
* @param brandId 品牌id
|
||||
*/
|
||||
void deleteByBrandId(Long brandId);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Category;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface CategoryMapper extends BaseMapper<Category> {
|
||||
|
||||
/**
|
||||
* 根据父级id获取分类列表
|
||||
*
|
||||
* @param parentId
|
||||
* @return
|
||||
*/
|
||||
List<Category> listByParentId(Long parentId);
|
||||
|
||||
/**
|
||||
* 根据店铺id获取分类列表
|
||||
*
|
||||
* @param shopId
|
||||
* @return
|
||||
*/
|
||||
List<Category> tableCategory(Long shopId);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.CategoryProp;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface CategoryPropMapper extends BaseMapper<CategoryProp> {
|
||||
|
||||
/**
|
||||
* 插入分类属性
|
||||
* @param categoryId
|
||||
* @param propIds
|
||||
*/
|
||||
void insertCategoryProp(@Param("categoryId") Long categoryId, @Param("propIds") List<Long> propIds);
|
||||
|
||||
/**
|
||||
* 根据分类id删除分类属性
|
||||
* @param categoryId
|
||||
*/
|
||||
void deleteByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 根据属性id删除分类属性
|
||||
* @param propId
|
||||
*/
|
||||
void deleteByPropId(Long propId);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Complaint;
|
||||
|
||||
public interface ComplaintMapper extends BaseMapper<Complaint> {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Coupon;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface CouponMapper extends BaseMapper<Coupon> {
|
||||
|
||||
List<Coupon> getCouponList(@Param("userId") String userId);
|
||||
|
||||
List<Coupon> getCouponListByTime();
|
||||
|
||||
Coupon getCouponById(@Param("userId") String userId,@Param("couponId") Integer couponId);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Delivery;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface DeliveryMapper extends BaseMapper<Delivery> {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Feedback;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 反馈Mapper接口
|
||||
*/
|
||||
@Mapper
|
||||
public interface FeedbackMapper extends BaseMapper<Feedback> {
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.domain.Footprint;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
|
||||
@Mapper
|
||||
public interface FootprintMapper extends BaseMapper<Footprint> {
|
||||
|
||||
/**
|
||||
* 获取用户足迹列表,并关联查询订单完成数、收藏数、评论数
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @param type 足迹类型(0:商户,1:项目)
|
||||
* @return 包含附加信息的足迹列表
|
||||
*/
|
||||
IPage<Footprint> getUserFootprintsWithStats(Page<Footprint> page, @Param("userId") String userId, @Param("type") Integer type);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.dto.HotSearchDto;
|
||||
import com.pxdj.api.domain.HotSearch;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface HotSearchMapper extends BaseMapper<HotSearch> {
|
||||
/**
|
||||
* 根据店铺id获取热搜列表
|
||||
* @param shopId
|
||||
* @return
|
||||
*/
|
||||
List<HotSearchDto> getHotSearchDtoByShopId(Long shopId);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.IndexImg;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface IndexImgMapper extends BaseMapper<IndexImg> {
|
||||
|
||||
/**
|
||||
* 根据id列表删除图片
|
||||
* @param ids
|
||||
*/
|
||||
void deleteIndexImgByIds(@Param("ids") Long[] ids);
|
||||
|
||||
/**
|
||||
* 获取图片列表
|
||||
* @return
|
||||
*/
|
||||
List<IndexImg> listIndexImg();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Invitation;
|
||||
|
||||
/**
|
||||
* 邀请码
|
||||
*
|
||||
* @author user
|
||||
* @since 2025-01-07 15:47
|
||||
*/
|
||||
public interface InvitationMapper extends BaseMapper<Invitation> {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Label;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 标签Mapper接口
|
||||
*
|
||||
* @author ZiJieNbPlus
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
@Mapper
|
||||
public interface LabelMapper extends BaseMapper<Label> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.MerchantAddr;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 商户地址Mapper接口
|
||||
*/
|
||||
@Mapper
|
||||
public interface MerchantAddrMapper extends BaseMapper<MerchantAddr> {
|
||||
|
||||
MerchantAddr getMerchantAddrByMerchantId(String merchantId);
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.dto.MerchantCommDataDto;
|
||||
import com.pxdj.api.dto.ProdCommDto;
|
||||
import com.pxdj.api.domain.MerchantComm;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface MerchantCommMapper extends BaseMapper<MerchantComm> {
|
||||
/**
|
||||
* 根据商品id获取商品评论信息
|
||||
* @param prodId
|
||||
* @return
|
||||
*/
|
||||
MerchantCommDataDto getProdCommDataByProdId(@Param("prodId") Long prodId);
|
||||
|
||||
/**
|
||||
* 根据评价等级和商品id分页获取商品评价
|
||||
* @param page
|
||||
* @param prodId
|
||||
* @param evaluate
|
||||
* @return
|
||||
*/
|
||||
IPage<MerchantComm> getProdCommDtoPageByProdId(@Param("page") PageParam page, @Param("merchantId") String merchantId, @Param("evaluate") Integer evaluate, @Param("status")Integer status);
|
||||
|
||||
/**
|
||||
* 根据用户id分页获取评论列表
|
||||
* @param page
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProdCommDto> getProdCommDtoPageByUserId(Page page, @Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 根据参数分页获取商品评论
|
||||
* @param page
|
||||
* @param prodComm
|
||||
* @return
|
||||
*/
|
||||
IPage<MerchantComm> getProdCommPage(Page page, @Param("prodComm") MerchantComm prodComm);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.MerchantExamine;
|
||||
import com.pxdj.api.domain.ProdProp;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 商户激活审核Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-04-15
|
||||
*/
|
||||
@Mapper
|
||||
public interface MerchantExamineMapper extends BaseMapper<MerchantExamine> {
|
||||
|
||||
MerchantExamine getMerchantOne(@Param("userId") String userId);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.MerchantLabel;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 商户标签管理Mapper接口
|
||||
*
|
||||
* @author ZiJieNbPlus
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
@Mapper
|
||||
public interface MerchantLabelMapper extends BaseMapper<MerchantLabel> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.domain.Merchant;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface MerchantMapper extends BaseMapper<Merchant> {
|
||||
|
||||
/**
|
||||
* 根据分类id分页获取商品
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
IPage<Merchant> pageByCategoryId(@Param("page") PageParam page,
|
||||
@Param("city") String city,@Param("name")String name);
|
||||
|
||||
IPage<Merchant> pageByLabelId(@Param("page") PageParam page, @Param("labelId") Long labelId,
|
||||
@Param("city") String city,@Param("name")String name);
|
||||
|
||||
|
||||
IPage<Merchant> pageByProjectId(@Param("page") PageParam page, @Param("projectId") Long projectId,
|
||||
@Param("city") String city,@Param("name")String name);
|
||||
|
||||
|
||||
IPage<Merchant> pageByCollection(@Param("page") PageParam page, @Param("userId")String userId);
|
||||
|
||||
/**
|
||||
* 获取用户收藏的商户列表
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @return 商户分页列表
|
||||
*/
|
||||
IPage<Merchant> collectionMerchants(@Param("page") PageParam page, @Param("userId") String userId);
|
||||
|
||||
List<Merchant> getHotMerchantList(@Param("city") String city);
|
||||
|
||||
List<Merchant> getNewMerchantList(@Param("city") String city);
|
||||
|
||||
Merchant getMerchantInfo(@Param("merchantId") String merchantId);
|
||||
|
||||
List<Merchant> getMerchantListInfo(@Param("merchantId") String merchantId);
|
||||
|
||||
|
||||
/**evaluate_num
|
||||
* 用火评价数
|
||||
* @param
|
||||
*/
|
||||
void updateEvaluateNum(@Param("id") String id);
|
||||
|
||||
|
||||
/**
|
||||
* 修改用户用户收藏数
|
||||
*/
|
||||
void updateAddCollectNum(@Param("id") String id);
|
||||
|
||||
/**
|
||||
* 修改用户用户收藏数
|
||||
*/
|
||||
void updateSubCollectNum(@Param("id") String id);
|
||||
|
||||
/**evaluate_num
|
||||
* 用火评价数
|
||||
* @param
|
||||
*/
|
||||
void updateOrderNum(@Param("id") String id);
|
||||
|
||||
void updateMerchant(@Param("name")String name,@Param("pic")String pic,@Param("images") String images,
|
||||
@Param("brief")String brief, @Param("userId")String userId);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.pxdj.api.mapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.MerchantProject;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 商户项目管理Mapper接口
|
||||
*
|
||||
* @author ZiJieNbPlus
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Mapper
|
||||
public interface MerchantProjectMapper extends BaseMapper<MerchantProject> {
|
||||
|
||||
/**
|
||||
* 删除所有购物车
|
||||
* @param userId 用户id
|
||||
*/
|
||||
void deleteByMerchantIdAndProjectId(@Param("merchantId") String merchantId, @Param("projectId") Long projectId);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.pxdj.api.domain.Message;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface MessageMapper extends BaseMapper<Message> {
|
||||
|
||||
int updateMessage(@Param("id") Integer id, @Param("userId") String userId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.dto.NoticeDto;
|
||||
import com.pxdj.api.domain.Notice;
|
||||
|
||||
/**
|
||||
* 公告管理
|
||||
*
|
||||
* @author hzm
|
||||
* @date 2019-04-18 21:21:40
|
||||
*/
|
||||
public interface NoticeMapper extends BaseMapper<Notice> {
|
||||
|
||||
/**
|
||||
* 分页获取公布的公告
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
Page<NoticeDto> pageNotice(Page<NoticeDto> page);
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.OrderItem;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface OrderItemMapper extends BaseMapper<OrderItem> {
|
||||
|
||||
/**
|
||||
* 根据订单编号获取订单项
|
||||
* @param orderNumber
|
||||
* @return
|
||||
*/
|
||||
List<OrderItem> listByOrderNumber(@Param("orderNumber") String orderNumber);
|
||||
|
||||
/**
|
||||
* 插入订单项
|
||||
* @param orderItems
|
||||
*/
|
||||
void insertBatch(List<OrderItem> orderItems);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.pxdj.api.dto.MyOrderDto;
|
||||
import com.pxdj.api.dto.OrderCountData;
|
||||
import com.pxdj.api.domain.Order;
|
||||
import com.pxdj.api.dto.OrderRefundData;
|
||||
import com.pxdj.api.param.OrderParam;
|
||||
import com.pxdj.common.utils.PageAdapter;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface OrderMapper extends BaseMapper<Order> {
|
||||
|
||||
/**
|
||||
* 根据订单编号获取订单
|
||||
* @param orderNumber
|
||||
* @return
|
||||
*/
|
||||
Order getOrderByOrderNumber(@Param("orderNumber") String orderNumber);
|
||||
|
||||
Order getOrderByMerchant(@Param("merchantId") String merchantId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据参数获取订单
|
||||
* @param orderStatus 订单状态
|
||||
* @param lessThanUpdateTime 更新时间
|
||||
* @return
|
||||
*/
|
||||
List<Order> listOrderAndOrderItems(@Param("orderStatus") Integer orderStatus, @Param("lessThanUpdateTime") DateTime lessThanUpdateTime);
|
||||
|
||||
/**
|
||||
* 取消订单
|
||||
* @param orders
|
||||
*/
|
||||
void cancelOrders(@Param("orders") List<Order> orders);
|
||||
|
||||
/**
|
||||
* 订单确认收货
|
||||
* @param orders
|
||||
*/
|
||||
void confirmOrder(@Param("orders") List<Order> orders);
|
||||
|
||||
/**
|
||||
* 更新订单为支付成功
|
||||
* @param orderNumbers 订单编号列表
|
||||
* @param payType 支付类型
|
||||
*/
|
||||
void updateByToPaySuccess(@Param("orderNumbers") List<String> orderNumbers, @Param("payType") Integer payType);
|
||||
|
||||
/**
|
||||
* 根据参数和时间获取订单列表
|
||||
* @param order 参数
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return
|
||||
*/
|
||||
List<Order> listOrdersDetailByOrder(@Param("order") Order order, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
/**
|
||||
* 根据分页参数和订单参数获取订单列表
|
||||
* @param adapter 分页参数
|
||||
* @param orderParam 订单参数
|
||||
* @return
|
||||
*/
|
||||
List<Order> listOrdersDetailByOrderParam(@Param("adapter") PageAdapter adapter, @Param("orderParam") OrderParam orderParam);
|
||||
|
||||
/**
|
||||
* 根据订单参数获取订单数
|
||||
* @param orderParam
|
||||
* @return
|
||||
*/
|
||||
Long countOrderDetail(@Param("orderParam") OrderParam orderParam);
|
||||
|
||||
/**
|
||||
* 根据用户id和订单状态获取订单列表
|
||||
* @param adapter
|
||||
* @param userId
|
||||
* @param status
|
||||
* @return
|
||||
*/
|
||||
List<MyOrderDto> listMyOrderByUserIdAndStatus(@Param("adapter") PageAdapter adapter, @Param("userId") String userId, @Param("status") Integer status);
|
||||
|
||||
/**
|
||||
* 根据用户id和订单状态获取订单数量
|
||||
* @param userId
|
||||
* @param status
|
||||
* @return
|
||||
*/
|
||||
Long countMyOrderByUserIdAndStatus(@Param("userId") String userId, @Param("status") Integer status);
|
||||
|
||||
Long getCountIdle();
|
||||
|
||||
/**
|
||||
* 删除订单
|
||||
* @param orders
|
||||
*/
|
||||
void deleteOrders(@Param("orders") List<Order> orders);
|
||||
|
||||
/**
|
||||
* 根据用户id获取各个状态的订单数量
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
OrderCountData getOrderCount(String userId);
|
||||
|
||||
OrderRefundData getRefund(String orderNumber);
|
||||
|
||||
IPage<Order> getUserOrderList(@Param("page") PageParam page, @Param("userId") String userId,@Param("status") Integer status);
|
||||
|
||||
IPage<Order> getUserConsumeList(@Param("page") PageParam page, @Param("userId") String userId,@Param("type") Integer type);
|
||||
|
||||
IPage<Order> getMerchantList(@Param("page") PageParam page, @Param("userId") String userId,@Param("statusList") List<String> statusList);
|
||||
|
||||
IPage<Order> getMerchantAllList(@Param("page") PageParam page, @Param("userId") String userId);
|
||||
|
||||
IPage<Order> getReceivingOrdersList(@Param("page") PageParam page, @Param("userId") String userId);
|
||||
|
||||
|
||||
IPage<Order> getOrderList(@Param("page") PageParam page, @Param("userId") String userId,@Param("statusList") List<String> statusList);
|
||||
|
||||
List<Order> getOrders(@Param("orderNumber") String orderNumber, @Param("statusList") List<Integer> statusList,
|
||||
@Param("beginTime") Date beginTime, @Param("endTime") Date endTime, @Param("city") String city, @Param("teamId") Long teamId);
|
||||
|
||||
/**
|
||||
* 根据订单参数获取订单数
|
||||
* @return
|
||||
*/
|
||||
Double getTotalIncome(@Param("userId") String userId);
|
||||
|
||||
Integer getOrderNum(@Param("city") String city,@Param("teamId")Long teamId);
|
||||
|
||||
Order orderDetail(@Param("orderNumber") String orderNumber);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.pxdj.api.domain.OrderRefund;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface OrderRefundMapper extends BaseMapper<OrderRefund> {
|
||||
//OrderRefund userRefundInfo(@Param("orderNumber") String orderNumber);
|
||||
int updateToPayInfo(@Param("orderNumber") String orderNumber,@Param("outRefundNo") String bizPayNo);
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.OrderSettlement;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface OrderSettlementMapper extends BaseMapper<OrderSettlement> {
|
||||
/**
|
||||
* 更新订单结算
|
||||
* @param orderSettlement
|
||||
*/
|
||||
void updateByOrderNumberAndUserId(@Param("orderSettlement") OrderSettlement orderSettlement);
|
||||
|
||||
/**
|
||||
* 根据支付单号获取结算信息
|
||||
* @param payNo
|
||||
* @return
|
||||
*/
|
||||
List<OrderSettlement> getSettlementsByPayNo(@Param("payNo") String payNo);
|
||||
|
||||
/**
|
||||
* 根据支付单号更新结算
|
||||
* @param outTradeNo
|
||||
* @param transactionId
|
||||
*/
|
||||
void updateSettlementsByPayNo(@Param("outTradeNo") String outTradeNo, @Param("transactionId") String transactionId);
|
||||
|
||||
/**
|
||||
* 更新结算信息为已支付
|
||||
* @param payNo
|
||||
* @param version
|
||||
* @return
|
||||
*/
|
||||
int updateToPay(@Param("payNo") String payNo, @Param("version") Integer version);
|
||||
|
||||
/**
|
||||
* 更新结算信息为已支付
|
||||
* @param orderNumber
|
||||
* @param version
|
||||
* @return
|
||||
*/
|
||||
int updateToPayInfo(@Param("orderNumber") String orderNumber,@Param("bizPayNo") String bizPayNo, @Param("version") Integer version);
|
||||
|
||||
int updateSettlementInfo(@Param("newOrderNumber") String newOrderNumber,@Param("orderNumber") String orderNumber);
|
||||
|
||||
/**
|
||||
* 获取现金流水列表
|
||||
* @param params 查询参数
|
||||
* @return 现金流水列表
|
||||
*/
|
||||
List<Map<String, Object>> getCashFlowList(@Param("params") Map<String, Object> params);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.PickAddr;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface PickAddrMapper extends BaseMapper<PickAddr> {
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.pxdj.api.domain.ProdImg;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface ProdImgMapper extends BaseMapper<ProdImg> {
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.ProdProp;
|
||||
import com.pxdj.common.utils.PageAdapter;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface ProdPropMapper extends BaseMapper<ProdProp> {
|
||||
|
||||
/**
|
||||
* 根据参数获取商品属性列表
|
||||
* @param adapter
|
||||
* @param prodProp
|
||||
* @return
|
||||
*/
|
||||
List<ProdProp> listPropAndValue(@Param("adapter") PageAdapter adapter, @Param("prodProp") ProdProp prodProp);
|
||||
|
||||
/**
|
||||
* 根据参数计算商品属性
|
||||
* @param prodProp
|
||||
* @return
|
||||
*/
|
||||
long countPropAndValue(@Param("prodProp") ProdProp prodProp);
|
||||
|
||||
/**
|
||||
* 删除商品属性
|
||||
* @param propId
|
||||
* @param rule
|
||||
* @param shopId
|
||||
* @return
|
||||
*/
|
||||
int deleteByPropId(@Param("propId") Long propId, @Param("rule") Integer rule, @Param("shopId") Long shopId);
|
||||
|
||||
/**
|
||||
* 根据店铺id和属性名称获取商品属性
|
||||
* @param propName
|
||||
* @param shopId
|
||||
* @param rule
|
||||
* @return
|
||||
*/
|
||||
ProdProp getProdPropByPropNameAndShopId(@Param("propName") String propName, @Param("shopId") Long shopId, @Param("rule") Integer rule);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.ProdPropValue;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface ProdPropValueMapper extends BaseMapper<ProdPropValue> {
|
||||
|
||||
/**
|
||||
* 插入商品属性数值
|
||||
* @param propId
|
||||
* @param prodPropValues
|
||||
*/
|
||||
void insertPropValues(@Param("propId") Long propId, @Param("prodPropValues") List<ProdPropValue> prodPropValues);
|
||||
|
||||
/**
|
||||
* 删除属性数值
|
||||
* @param propId
|
||||
*/
|
||||
void deleteByPropId(@Param("propId") Long propId);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.ProdTag;
|
||||
|
||||
/**
|
||||
* 商品分组
|
||||
*
|
||||
* @author hzm
|
||||
* @date 2019-04-18 09:08:36
|
||||
*/
|
||||
public interface ProdTagMapper extends BaseMapper<ProdTag> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.ProdTagReference;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 分组标签引用
|
||||
*
|
||||
* @author hzm
|
||||
* @date 2019-04-18 16:28:01
|
||||
*/
|
||||
public interface ProdTagReferenceMapper extends BaseMapper<ProdTagReference> {
|
||||
/**
|
||||
* 插入标签
|
||||
* @param shopId
|
||||
* @param prodId
|
||||
* @param tagList
|
||||
*/
|
||||
void insertBatch(@Param("shopId") Long shopId, @Param("prodId") Long prodId, @Param("tagList") List<Long> tagList);
|
||||
|
||||
/**
|
||||
* 根据属性获取标签id列表
|
||||
* @param prodId
|
||||
* @return
|
||||
*/
|
||||
List<Long> listTagIdByProdId(@Param("prodId") Long prodId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.dto.ProductDto;
|
||||
import com.pxdj.api.dto.SearchProdDto;
|
||||
import com.pxdj.api.dto.TagProductDto;
|
||||
import com.pxdj.api.domain.Product;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface ProductMapper extends BaseMapper<Product> {
|
||||
/**
|
||||
* 更新商品库存
|
||||
* @param product
|
||||
* @return
|
||||
*/
|
||||
int updateStocks(@Param("prod") Product product);
|
||||
|
||||
/**
|
||||
* 返回库存
|
||||
* @param prodCollect
|
||||
*/
|
||||
void returnStock(@Param("prodCollect") Map<Long, Integer> prodCollect);
|
||||
|
||||
/**
|
||||
* 根据上架时间分页获取商品
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> pageByPutAwayTime(IPage<ProductDto> page);
|
||||
|
||||
/**
|
||||
* 根据标签id分页获取商品信息
|
||||
* @param page
|
||||
* @param tagId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> pageByTagId(Page<ProductDto> page, @Param("tagId") Long tagId);
|
||||
|
||||
/**
|
||||
* 分页获取销量最多的商品
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> moreBuyProdList(Page<ProductDto> page);
|
||||
|
||||
/**
|
||||
* 根据分类id分页获取商品
|
||||
* @param page
|
||||
* @param categoryId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> pageByCategoryId(Page<ProductDto> page, @Param("categoryId") Long categoryId,@Param("type") Integer type);
|
||||
|
||||
/**
|
||||
* 根据商品名称和排序分页获取商品
|
||||
* @param page
|
||||
* @param prodName
|
||||
* @param sort
|
||||
* @param orderBy
|
||||
* @return
|
||||
*/
|
||||
IPage<SearchProdDto> getSearchProdDtoPageByProdName(Page page, @Param("prodName") String prodName, @Param("sort") Integer sort, @Param("orderBy") Integer orderBy,@Param("type") Integer type);
|
||||
|
||||
/**
|
||||
* 获取分组商品列表
|
||||
* @return
|
||||
*/
|
||||
List<TagProductDto> tagProdList();
|
||||
|
||||
|
||||
/**
|
||||
* 获取用户的收藏商品列表
|
||||
* @param page
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> collectionProds(@Param("page") PageParam page, @Param("userId") String userId);
|
||||
|
||||
List<Product> selectProdByType(@Param("type") Integer type);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Project;
|
||||
import com.pxdj.api.domain.Schedule;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface ProjectMapper extends BaseMapper<Project> {
|
||||
|
||||
@Select("SELECT p.* FROM tz_merchant_project mp " +
|
||||
"INNER JOIN tz_project p ON mp.project_id = p.id " +
|
||||
"WHERE mp.merchant_id = #{userId}"
|
||||
)
|
||||
List<Project> getMcProjectList(@Param("userId") String userId);
|
||||
|
||||
List<Project> getProjectList(@Param("isRecommend")Integer isRecommend);
|
||||
|
||||
List<Project> getProjectListById(@Param("merchantId")String merchantId);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.RechargeRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 充值记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Mapper
|
||||
public interface RechargeRecordMapper extends BaseMapper<RechargeRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.RecommendRecord;
|
||||
import com.pxdj.api.domain.TransferRecord;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface RecommendRecordMapper extends BaseMapper<RecommendRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Schedule;
|
||||
import com.pxdj.api.domain.VipPackage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface ScheduleMapper extends BaseMapper<Schedule> {
|
||||
|
||||
List<Schedule> getScheduleList(@Param("merchantId") String merchantId);
|
||||
|
||||
List<Schedule> getSchedules(@Param("merchantId") String merchantId);
|
||||
|
||||
Schedule getSchedule(@Param("merchantId") String merchantId);
|
||||
|
||||
List<Schedule> getMerchantSchedule(@Param("merchantId") String merchantId);
|
||||
|
||||
void deleteMerchantSchedule(@Param("orderNumber") String orderNumber);
|
||||
|
||||
/**
|
||||
* 根据时间获取可服务的商户
|
||||
*/
|
||||
List<String> getServiceable(@Param("startTime") Date startTime,@Param("endTime") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.domain.ScoreDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author user
|
||||
* @since 2025-01-10 10:52
|
||||
*/
|
||||
public interface ScoreDetailMapper extends BaseMapper<ScoreDetail> {
|
||||
IPage<ScoreDetail> getScoreDetailListByUserId(@Param("page") Page page,@Param("userId") String userId);
|
||||
|
||||
Double consumeTotal(@Param("userId")String userId,@Param("type") Integer type);
|
||||
|
||||
Double getScoreByDate(String userId);
|
||||
|
||||
IPage<ScoreDetail> getScoreDetailListByDate(@Param("page") Page page, @Param("userId") String userId, @Param("createTime") String createTime);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.pxdj.api.domain.ShopDetail;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface ShopDetailMapper extends BaseMapper<ShopDetail> {
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.Sku;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface SkuMapper extends BaseMapper<Sku> {
|
||||
|
||||
/**
|
||||
* 批量插入sku
|
||||
* @param prodId 商品id
|
||||
* @param skuList sku列表
|
||||
*/
|
||||
void insertBatch(@Param("prodId") Long prodId, @Param("skuList") List<Sku> skuList);
|
||||
|
||||
/**
|
||||
* 根据商品id获取商品sku列表
|
||||
* @param prodId
|
||||
* @return
|
||||
*/
|
||||
List<Sku> listByProdId(Long prodId);
|
||||
|
||||
/**
|
||||
* 更新sku库存
|
||||
* @param sku
|
||||
* @return
|
||||
*/
|
||||
int updateStocks(@Param("sku") Sku sku);
|
||||
|
||||
/**
|
||||
* 根据商品id删除sku
|
||||
* @param prodId
|
||||
*/
|
||||
void deleteByProdId(@Param("prodId") Long prodId);
|
||||
|
||||
/**
|
||||
* 返回sku库存
|
||||
* @param skuCollect
|
||||
*/
|
||||
void returnStock(@Param("skuCollect") Map<Long, Integer> skuCollect);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.pxdj.api.domain.SmsLog;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface SmsLogMapper extends BaseMapper<SmsLog> {
|
||||
/**
|
||||
* 根据手机号和短信类型失效短信
|
||||
* @param mobile
|
||||
* @param type
|
||||
*/
|
||||
void invalidSmsByMobileAndType(@Param("mobile") String mobile, @Param("type") Integer type);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.TransferRecord;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface TransferRecordMapper extends BaseMapper<TransferRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.pxdj.api.domain.UserAddr;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface UserAddrMapper extends BaseMapper<UserAddr> {
|
||||
/**
|
||||
* 根据用户id获取默认地址
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
UserAddr getDefaultUserAddr(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 移除用户默认地址
|
||||
* @param userId
|
||||
*/
|
||||
void removeDefaultUserAddr(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 将地址设置为默认地址
|
||||
* @param addrId
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
int setDefaultUserAddr(@Param("addrId") Long addrId, @Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 根据用户id和地址id获取地址
|
||||
* @param userId
|
||||
* @param addrId
|
||||
* @return
|
||||
*/
|
||||
UserAddr getUserAddrByUserIdAndAddrId(@Param("userId") String userId, @Param("addrId") Long addrId);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.pxdj.api.domain.UserAddrOrder;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface UserAddrOrderMapper extends BaseMapper<UserAddrOrder> {
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.dto.UserCollectionDto;
|
||||
import com.pxdj.api.domain.UserCollection;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 用户收藏表
|
||||
*
|
||||
* @author xwc
|
||||
* @date 2019-04-19 16:57:20
|
||||
*/
|
||||
public interface UserCollectionMapper extends BaseMapper<UserCollection> {
|
||||
/**
|
||||
* 根据用户ID获取收藏分页数据
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @return 收藏分页数据
|
||||
*/
|
||||
Page<UserCollectionDto> getUserCollectionDtoPageByUserId(
|
||||
@Param("page") Page page,
|
||||
@Param("userId") String userId
|
||||
);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.UserExtend;
|
||||
|
||||
/**
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface UserExtendMapper extends BaseMapper<UserExtend> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.dto.UserRankDto;
|
||||
import com.pxdj.api.domain.User;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface UserMapper extends BaseMapper<User> {
|
||||
|
||||
/**
|
||||
* 根据用户名称获取一个用户信息
|
||||
* @param userName
|
||||
* @return
|
||||
*/
|
||||
User selectOneByUserName(@Param("userName") String userName);
|
||||
|
||||
User selectUserByOpenId(String openid);
|
||||
|
||||
/**
|
||||
* 修改用户积分
|
||||
* @param userId
|
||||
*/
|
||||
void updateScore(@Param("userId") String userId,@Param("score") Double score);
|
||||
|
||||
void updateBalance(@Param("userId") String userId,@Param("balance") Double balance);
|
||||
/**
|
||||
* 消费用户积分
|
||||
* @param userId
|
||||
*/
|
||||
void consumeScore(@Param("userId") String userId,@Param("score") Double score);
|
||||
|
||||
IPage<UserRankDto> selectUserRank(Page page);
|
||||
|
||||
void updateUserInfo(@Param("nickName")String nickName,@Param("avatarUrl") String avatarUrl,
|
||||
@Param("userId")String userId,@Param("sex") String sex
|
||||
,@Param("images")String images,@Param("brief") String brief );
|
||||
|
||||
Integer countUser(@Param("userId")String userId);
|
||||
|
||||
List<User> selectUserList(@Param("nickName") String nickName, @Param("status") Integer status, @Param("userMobile") String userMobile, @Param("niceType") Integer niceType);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pxdj.api.domain.UserWithdrawal;
|
||||
import com.pxdj.api.dto.UserWithdrawalDto;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户提现Mapper接口
|
||||
*/
|
||||
public interface UserWithdrawalMapper extends BaseMapper<UserWithdrawal> {
|
||||
|
||||
/**
|
||||
* 分页查询用户提现记录
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @return 分页结果
|
||||
*/
|
||||
IPage<UserWithdrawalDto> selectUserWithdrawalPage(Page page, @Param("userId") String userId);
|
||||
|
||||
Double sumWaitPrice(String userId);
|
||||
|
||||
Double sumWaitPriceByCity(@Param("city")String city ,@Param("userId") Long userId,@Param("teamId") Long teamId);
|
||||
|
||||
|
||||
Double sumWaitPriceByAgent(@Param("userId") Long userId);
|
||||
|
||||
|
||||
Double sumAlreadyAmount(@Param("userId") Long userId);
|
||||
|
||||
/**
|
||||
* 查询提现申请列表(带用户信息和城市筛选)
|
||||
*
|
||||
* @param status 状态
|
||||
* @param userName 用户名
|
||||
* @param city 城市
|
||||
* @param currentUserId 当前用户ID
|
||||
* @param departmentId 部门ID
|
||||
* @return 提现申请列表
|
||||
*/
|
||||
List<UserWithdrawal> getWithdrawalList(@Param("status") Integer status,
|
||||
@Param("userName") String userName,
|
||||
@Param("city") String city,
|
||||
@Param("currentUserId") Long currentUserId,
|
||||
@Param("departmentId") Long departmentId, @Param("teamId") Long teamId);
|
||||
|
||||
Double agentAlreadyAmount(@Param("userId") Long userId);
|
||||
|
||||
Double sumAdminCanAmount();
|
||||
|
||||
Double sumMerchantAmount();
|
||||
|
||||
Double sumMerchantWithdrawalAmount();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.domain.VipPackage;
|
||||
|
||||
/**
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface VipPackageMapper extends BaseMapper<VipPackage> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.pxdj.api.dto.WelfareGiftRecordDto;
|
||||
import com.pxdj.api.domain.WelfareGiftRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface WelfareGiftRecordMapper extends BaseMapper<WelfareGiftRecord> {
|
||||
|
||||
List<WelfareGiftRecordDto> getWelfareGiftRecordList(@Param("userId") String userId);
|
||||
|
||||
void updateWelfareGiftRecord(@Param("userId") String userId,@Param("prodId") Long prodId);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Area;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lgh on 2018/10/26.
|
||||
*/
|
||||
public interface AreaService extends IService<Area> {
|
||||
|
||||
/**
|
||||
* 通过pid 查找地址接口
|
||||
*
|
||||
* @param pid 父id
|
||||
* @return
|
||||
*/
|
||||
List<Area> listByPid(Long pid);
|
||||
|
||||
/**
|
||||
* 通过pid 清除地址缓存
|
||||
*
|
||||
* @param pid
|
||||
*/
|
||||
void removeAreaCacheByParentId(Long pid);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.AttachFile;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
* Created by lgh on 2018/07/27.
|
||||
*/
|
||||
public interface AttachFileService extends IService<AttachFile> {
|
||||
|
||||
/**
|
||||
* 上传文件到本地
|
||||
* @param file
|
||||
* @throws IOException e
|
||||
* @return
|
||||
*/
|
||||
String uploadFile(MultipartFile file) throws IOException;
|
||||
|
||||
/**
|
||||
* 删除文件
|
||||
* @param fileName 文件名称
|
||||
*/
|
||||
void deleteFile(String fileName);
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.dto.ShopCartDto;
|
||||
import com.pxdj.api.dto.ShopCartItemDto;
|
||||
import com.pxdj.api.param.ChangeShopCartParam;
|
||||
import com.pxdj.api.param.OrderItemParam;
|
||||
import com.pxdj.api.param.ShopCartParam;
|
||||
import com.pxdj.api.domain.Basket;
|
||||
import com.pxdj.api.domain.User;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lgh on 2018/10/18.
|
||||
*/
|
||||
public interface BasketService extends IService<Basket> {
|
||||
|
||||
void clearAllCaches();
|
||||
|
||||
/**
|
||||
* 根据购物车id列表删除购物项
|
||||
* @param userId 用户id
|
||||
* @param basketIds 购物车id列表
|
||||
*/
|
||||
void deleteShopCartItemsByBasketIds(String userId, List<Long> basketIds);
|
||||
|
||||
/**
|
||||
* 添加购物车
|
||||
* @param param
|
||||
* @param userId
|
||||
*/
|
||||
void addShopCartItem(ChangeShopCartParam param, String userId);
|
||||
|
||||
/**
|
||||
* 更新购物车
|
||||
* @param basket
|
||||
*/
|
||||
void updateShopCartItem(Basket basket);
|
||||
|
||||
/**
|
||||
* 删除所有购物车
|
||||
* @param userId
|
||||
*/
|
||||
void deleteAllShopCartItems(String userId);
|
||||
|
||||
/**
|
||||
* 根据用户id获取购物车列表
|
||||
* @param userId 用户id
|
||||
* @return 购物车列表
|
||||
*/
|
||||
List<ShopCartItemDto> getShopCartItems(String userId);
|
||||
|
||||
/**
|
||||
* 获取购物车失效列表
|
||||
* @param userId 用户id
|
||||
* @return 失效商品
|
||||
*/
|
||||
List<ShopCartItemDto> getShopCartExpiryItems(String userId);
|
||||
|
||||
/**
|
||||
* 清除失效的购物项
|
||||
* @param userId 用户id
|
||||
*/
|
||||
void cleanExpiryProdList(String userId);
|
||||
|
||||
/**
|
||||
* 更新满减活动id
|
||||
* @param userId 用户id
|
||||
* @param basketIdShopCartParamMap 购物车map
|
||||
*/
|
||||
void updateBasketByShopCartParam(String userId, Map<Long, ShopCartParam> basketIdShopCartParamMap);
|
||||
|
||||
/**
|
||||
* 删除购物车缓存
|
||||
* @param userId
|
||||
*/
|
||||
void removeShopCartItemsCacheByUserId(String userId);
|
||||
|
||||
/**
|
||||
* 获取购物车中拥有某件商品的用户,用于清除该用户购物车的缓存
|
||||
* @param prodId 商品id
|
||||
* @return 用户id
|
||||
*/
|
||||
List<String> listUserIdByProdId(Long prodId);
|
||||
|
||||
/**
|
||||
* 根据店铺组装购车中的商品信息,返回每个店铺中的购物车商品信息
|
||||
* @param shopCartItems 指定的购物项目
|
||||
* @return 每个店铺的购物车信息
|
||||
*/
|
||||
List<ShopCartDto> getShopCarts(List<ShopCartItemDto> shopCartItems);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Brand;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface BrandService extends IService<Brand> {
|
||||
|
||||
/**
|
||||
* 根据品牌名称获取该品牌
|
||||
* @param brandName
|
||||
* @return
|
||||
*/
|
||||
Brand getByBrandName(String brandName);
|
||||
|
||||
/**
|
||||
* 删除品牌,同时删除品牌与分类之间的关联关系
|
||||
* @param brandId
|
||||
*/
|
||||
void deleteByBrand(Long brandId);
|
||||
|
||||
/**
|
||||
* 根据分类id获取品牌列表
|
||||
* @param categoryId 分类id
|
||||
* @return
|
||||
*/
|
||||
List<Brand> listByCategoryId(Long categoryId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.CategoryBrand;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface CategoryBrandService extends IService<CategoryBrand> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.CategoryProp;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface CategoryPropService extends IService<CategoryProp> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Category;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
* 商品分类
|
||||
*/
|
||||
public interface CategoryService extends IService<Category> {
|
||||
|
||||
/**
|
||||
* 根据parentId获取分类
|
||||
* @param parentId 0 一级分类
|
||||
* @return
|
||||
*/
|
||||
List<Category> listByParentId(Long parentId);
|
||||
|
||||
/**
|
||||
* 获取用于页面表单展现的category列表,根据seq排序
|
||||
* @param shopId 店铺id
|
||||
* @return
|
||||
*/
|
||||
List<Category> tableCategory(Long shopId);
|
||||
|
||||
/**
|
||||
* 保存分类、品牌、参数
|
||||
* @param category
|
||||
*/
|
||||
void saveCategory(Category category);
|
||||
|
||||
/**
|
||||
* 修改分类、品牌、参数
|
||||
* @param category
|
||||
*/
|
||||
void updateCategory(Category category);
|
||||
|
||||
/**
|
||||
* 删除分类、品牌、参数 以及分类对应的图片
|
||||
* @param categoryId 分类id
|
||||
*/
|
||||
void deleteCategory(Long categoryId);
|
||||
|
||||
/**
|
||||
* 根据店铺id和层级,获取商品分类树
|
||||
* @param shopId
|
||||
* @param grade
|
||||
* @return
|
||||
*/
|
||||
List<Category> treeSelect(Long shopId,int grade);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Complaint;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ComplaintService extends IService<Complaint> {
|
||||
List<Complaint> getUserComplaints(String userId);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Delivery;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/11/26.
|
||||
*/
|
||||
public interface DeliveryService extends IService<Delivery> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.pxdj.api.domain.Discovery;
|
||||
import com.pxdj.api.domain.DiscoveryCategory;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DiscoveryService {
|
||||
|
||||
/**
|
||||
* 发布发现(原方法保留,用于兼容)
|
||||
*/
|
||||
default void saveDiscovery(Discovery discovery) {
|
||||
throw new UnsupportedOperationException("请使用带用户ID的方法");
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布发现(带用户ID)
|
||||
*/
|
||||
void saveDiscovery(Discovery discovery, String userId);
|
||||
|
||||
/**
|
||||
* 修改发现(原方法保留,用于兼容)
|
||||
*/
|
||||
default void updateDiscovery(Discovery discovery) {
|
||||
throw new UnsupportedOperationException("请使用带用户ID的方法");
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改发现(带用户ID)
|
||||
*/
|
||||
void updateDiscovery(Discovery discovery, String userId);
|
||||
|
||||
/**
|
||||
* 删除发现(原方法保留,用于兼容)
|
||||
*/
|
||||
default void deleteDiscovery(Long discoveryId) {
|
||||
throw new UnsupportedOperationException("请使用带用户ID的方法");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除发现(带用户ID)
|
||||
*/
|
||||
void deleteDiscovery(Long discoveryId, String userId);
|
||||
|
||||
/**
|
||||
* 查询发现详情
|
||||
*/
|
||||
Discovery getDiscoveryById(Long discoveryId);
|
||||
|
||||
/**
|
||||
* 分页查询发现列表
|
||||
*/
|
||||
IPage<Discovery> pageDiscovery(PageParam page, String merchantId, Long categoryId);
|
||||
|
||||
/**
|
||||
* 获取所有分类
|
||||
*/
|
||||
List<DiscoveryCategory> listCategories();
|
||||
|
||||
/**
|
||||
* 更新阅读数
|
||||
*/
|
||||
void incrementReadCount(Long discoveryId);
|
||||
|
||||
/**
|
||||
* 点赞
|
||||
*/
|
||||
void incrementLikeCount(Long discoveryId);
|
||||
|
||||
/**
|
||||
* 点赞或取消点赞
|
||||
* @param discoveryId 发现ID
|
||||
* @param userId 用户ID
|
||||
*/
|
||||
void toggleLike(Long discoveryId, String userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID分页查询发现列表
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @return 发现分页列表
|
||||
*/
|
||||
IPage<Discovery> pageDiscoveryByUserId(PageParam page, String userId);
|
||||
|
||||
/**
|
||||
* 查询用户点赞过的发现列表
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @return 发现分页列表
|
||||
*/
|
||||
IPage<Discovery> pageLikedDiscovery(PageParam page, String userId);
|
||||
|
||||
/**
|
||||
* 查询用户是否点赞了指定内容
|
||||
* @param discoveryId 发现ID
|
||||
* @param userId 用户ID
|
||||
* @return true:已点赞 false:未点赞
|
||||
*/
|
||||
boolean isLiked(Long discoveryId, String userId);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Feedback;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 反馈服务接口
|
||||
*/
|
||||
public interface FeedbackService extends IService<Feedback> {
|
||||
|
||||
/**
|
||||
* 获取用户的反馈列表
|
||||
*/
|
||||
List<Feedback> getUserFeedbacks(String userId);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Footprint;
|
||||
import com.pxdj.api.domain.Product;
|
||||
import com.pxdj.api.domain.Merchant;
|
||||
import com.pxdj.api.domain.Project;
|
||||
import com.pxdj.api.domain.Schedule;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface FootprintService extends IService<Footprint> {
|
||||
|
||||
/**
|
||||
* 添加商户足迹
|
||||
* @param userId 用户ID
|
||||
* @param merchant 商户信息
|
||||
*/
|
||||
void addMerchantFootprint(String userId, Merchant merchant);
|
||||
|
||||
/**
|
||||
* 添加商户项目足迹
|
||||
* @param userId 用户ID
|
||||
* @param project 商户信息
|
||||
*/
|
||||
void addProjectFootprint(String userId, Project project);
|
||||
|
||||
/**
|
||||
* 批量删除用户足迹
|
||||
* @param userId 用户ID
|
||||
* @param footprintIds 要删除的足迹ID列表
|
||||
* @return 是否删除成功
|
||||
*/
|
||||
boolean batchDeleteFootprints(String userId, List<Long> footprintIds);
|
||||
|
||||
/**
|
||||
* 获取用户足迹列表
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @param type 足迹类型(0:商户,1:项目)
|
||||
* @return 用户足迹分页列表,包含关联查询结果:
|
||||
* - orderCompletedCount: 已完成订单数量(status=7)
|
||||
* - collectNum: 收藏数量
|
||||
* - evaluateNum: 评论数量
|
||||
*/
|
||||
IPage<Footprint> getUserFootprints(PageParam page, String userId, Integer type);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.dto.HotSearchDto;
|
||||
import com.pxdj.api.domain.HotSearch;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2019/03/27.
|
||||
*/
|
||||
public interface HotSearchService extends IService<HotSearch> {
|
||||
|
||||
/**
|
||||
* 根据店铺id获取热搜列表
|
||||
* @param shopId
|
||||
* @return
|
||||
*/
|
||||
List<HotSearchDto> getHotSearchDtoByShopId(Long shopId);
|
||||
|
||||
/**
|
||||
* 根据店铺id删除热搜缓存
|
||||
* @param shopId
|
||||
*/
|
||||
void removeHotSearchDtoCacheByShopId(Long shopId);
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.IndexImg;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/11/26.
|
||||
*/
|
||||
public interface IndexImgService extends IService<IndexImg> {
|
||||
|
||||
/**
|
||||
* 根据id列表删除图片
|
||||
* @param ids
|
||||
*/
|
||||
void deleteIndexImgByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 获取全部图片列表
|
||||
* @return
|
||||
*/
|
||||
List<IndexImg> listIndexImg();
|
||||
|
||||
/**
|
||||
* 删除图片缓存
|
||||
*/
|
||||
void removeIndexImgCache();
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Invitation;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 邀请码
|
||||
*
|
||||
* @author user
|
||||
* @since 2025-01-07 15:45
|
||||
*/
|
||||
public interface InvitationService extends IService<Invitation> {
|
||||
|
||||
/**
|
||||
* 生成邀请码
|
||||
*/
|
||||
Invitation getInvitationCode(String userId,Date expireDate);
|
||||
|
||||
int updateByCode(Invitation invitation);
|
||||
|
||||
IPage<Invitation> getInvitationList(PageParam<Invitation> page, String userId);
|
||||
|
||||
Boolean checkInvitationCode(String invitationCode);
|
||||
|
||||
String getInviterIdByCode(String inviterCode);
|
||||
|
||||
String generateQrCode(String userId,Integer type) ;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Label;
|
||||
|
||||
/**
|
||||
* 标签Service接口
|
||||
*
|
||||
* @author ZiJieNbPlus
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
public interface LabelService extends IService<Label> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.MerchantAddr;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 商户地址服务接口
|
||||
*/
|
||||
public interface MerchantAddrService extends IService<MerchantAddr> {
|
||||
|
||||
|
||||
/**
|
||||
* 计算用户与所有商户之间的距离并存入Redis
|
||||
* @param userId 用户ID
|
||||
* @param userLat 用户纬度
|
||||
* @param userLon 用户经度
|
||||
* @return 商户ID与距离的映射,键为商户ID,值为距离描述
|
||||
*/
|
||||
Map<String, String> calculateAndSaveAllMerchantsDistance(String userId, double userLat, double userLon);
|
||||
|
||||
void updateAddr(String province, String area, String city,String addr,String userId);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.MerchantApply;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 商户入驻申请Service接口
|
||||
*/
|
||||
public interface MerchantApplyService extends IService<MerchantApply> {
|
||||
/**
|
||||
* 查询商户申请列表并关联部门名称
|
||||
*
|
||||
* @param merchantApply 查询条件
|
||||
* @return 申请列表(包含部门名称)
|
||||
*/
|
||||
List<Map<String, Object>> listApplyWithDeptName(MerchantApply merchantApply);
|
||||
|
||||
/**
|
||||
* 获取单个商户申请并关联部门名称
|
||||
*
|
||||
* @param id 申请ID
|
||||
* @return 申请信息(包含部门名称)
|
||||
*/
|
||||
Map<String, Object> getApplyWithDeptName(Long id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.dto.MerchantCommDataDto;
|
||||
import com.pxdj.api.dto.ProdCommDto;
|
||||
import com.pxdj.api.domain.MerchantComm;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
|
||||
/**
|
||||
* 商品评论
|
||||
*
|
||||
* @author xwc
|
||||
* @date 2019-04-19 10:43:57
|
||||
*/
|
||||
public interface MerchantCommService extends IService<MerchantComm> {
|
||||
/**
|
||||
* 根据商品id获取商品评论信息
|
||||
* @param prodId
|
||||
* @return
|
||||
*/
|
||||
MerchantCommDataDto getProdCommDataByProdId(Long prodId);
|
||||
|
||||
/**
|
||||
* 根据用户id分页获取商品评论
|
||||
* @param page
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProdCommDto> getProdCommDtoPageByUserId(Page page,String userId);
|
||||
|
||||
/**
|
||||
* 根据商品id和评价等级获取商品评价
|
||||
* @param page
|
||||
* @param prodId
|
||||
* @param evaluate
|
||||
* @return
|
||||
*/
|
||||
IPage<MerchantComm> getProdCommDtoPageByProdId(PageParam page, String merchantId, Integer evaluate, Integer status);
|
||||
|
||||
/**
|
||||
* 根据参数分页获取商品评价
|
||||
* @param page
|
||||
* @param prodComm
|
||||
* @return
|
||||
*/
|
||||
IPage<MerchantComm> getProdCommPage(Page page, MerchantComm prodComm);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.MerchantExamine;
|
||||
|
||||
/**
|
||||
* 商户激活审核Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-04-15
|
||||
*/
|
||||
public interface MerchantExamineService extends IService<MerchantExamine> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.MerchantLabel;
|
||||
|
||||
/**
|
||||
* 商户标签管理Service接口
|
||||
*
|
||||
* @author ZiJieNbPlus
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
public interface MerchantLabelService extends IService<MerchantLabel> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.pxdj.api.service;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.MerchantProject;
|
||||
|
||||
/**
|
||||
* 商户项目管理Service接口
|
||||
*
|
||||
* @author ZiJieNbPlus
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface MerchantProjectService extends IService<MerchantProject> {
|
||||
|
||||
void deleteByMerchantIdAndProjectId(String merchantId,Long projectId);
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Merchant;
|
||||
import com.pxdj.api.domain.MerchantApply;
|
||||
import com.pxdj.api.domain.Schedule;
|
||||
import com.pxdj.api.dto.MerchantDataDto;
|
||||
import com.pxdj.api.dto.MerchantFormDto;
|
||||
import com.pxdj.api.dto.MerchantPackageDataDto;
|
||||
import com.pxdj.api.dto.WalletDto;
|
||||
import com.pxdj.api.param.ScheduleParam;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface MerchantService extends IService<Merchant> {
|
||||
|
||||
|
||||
|
||||
String getLastMerchantId();
|
||||
|
||||
/**
|
||||
* 根据分类id分页获取商品列表
|
||||
*
|
||||
* @param page
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
IPage<Merchant> pageMerchant(PageParam page,Long projectId, Long labelId, String city, String userId,String name);
|
||||
|
||||
|
||||
List<Merchant> getMerchantList(String userId,String city);
|
||||
|
||||
List<Merchant> getMerchantListTest(String userId,String city);
|
||||
|
||||
|
||||
List<Merchant> getNewMerchantList(String city);
|
||||
/**
|
||||
* 根据商户ID获取商户详情
|
||||
* @param id 商户ID
|
||||
* @return 商户信息
|
||||
*/
|
||||
Merchant getMerchantById(String id, String userId);
|
||||
|
||||
List<Schedule> getScheduleList(String merchantId);
|
||||
|
||||
/**
|
||||
* 获取用户收藏的商户列表
|
||||
* @param page 分页参数
|
||||
* @param userId 用户ID
|
||||
* @return 商户分页列表
|
||||
*/
|
||||
IPage<Merchant> collectionMerchants(PageParam page, String userId);
|
||||
|
||||
Merchant getMerchantInfo(String id);
|
||||
|
||||
/**
|
||||
* 忙时设置 ,由商户端设置
|
||||
* 将
|
||||
* @param merchantId
|
||||
* @param userId
|
||||
* @param scheduleParam
|
||||
*/
|
||||
void busyHour(String merchantId, String userId, ScheduleParam scheduleParam);
|
||||
|
||||
/**
|
||||
* 获取商户首页数据
|
||||
* @return
|
||||
*/
|
||||
MerchantDataDto getMerchantData(String userId);
|
||||
|
||||
/**
|
||||
* 获取商户首页数据
|
||||
* @return
|
||||
*/
|
||||
WalletDto myWallet(String userId);
|
||||
|
||||
|
||||
/**
|
||||
* 获取钱包数据
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
MerchantPackageDataDto getPackageData(String userId);
|
||||
|
||||
/**
|
||||
* 商户入驻
|
||||
* @param merchantFormDto
|
||||
*/
|
||||
void joinMerchant(MerchantFormDto merchantFormDto);
|
||||
|
||||
//用火评价数
|
||||
void updateEvaluateNum(String id);
|
||||
|
||||
void updateAddCollectNum(String id);
|
||||
void updateSubCollectNum(String id);
|
||||
|
||||
void updateOrderNum(String id);
|
||||
|
||||
void updateMerchant(String name,String pic, String images, String brief,String userId);
|
||||
|
||||
void occupancy(MerchantApply merchantApply);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Message;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/10/15.
|
||||
*/
|
||||
public interface MessageService extends IService<Message> {
|
||||
|
||||
IPage<Message> getMessage(String userId, PageParam page);
|
||||
|
||||
void updateMessage(String userId,Integer id);
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.User;
|
||||
import com.pxdj.api.dto.MyOrderDto;
|
||||
import com.pxdj.api.domain.Order;
|
||||
|
||||
/**
|
||||
* 我的订单
|
||||
* @author lgh
|
||||
*/
|
||||
public interface MyOrderService extends IService<Order> {
|
||||
|
||||
/**
|
||||
* 通过用户id和订单状态分页获取订单信息
|
||||
* @param page 分页参数
|
||||
* @param userId 用户id
|
||||
* @param status 订单状态
|
||||
* @return
|
||||
*/
|
||||
IPage<MyOrderDto> pageMyOrderByUserIdAndStatus(Page<MyOrderDto> page, String userId, Integer status);
|
||||
|
||||
|
||||
void receipt(Order order);
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.dto.NoticeDto;
|
||||
import com.pxdj.api.domain.Notice;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 公告管理
|
||||
*
|
||||
* @author hzm
|
||||
* @date 2019-04-18 21:21:40
|
||||
*/
|
||||
public interface NoticeService extends IService<Notice> {
|
||||
|
||||
/**
|
||||
* 获取公告列表
|
||||
* @return
|
||||
*/
|
||||
List<Notice> listNotice();
|
||||
|
||||
/**
|
||||
* 删除公告缓存
|
||||
*/
|
||||
void removeNoticeList();
|
||||
|
||||
/**
|
||||
* 分页获取公布的公告
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
Page<NoticeDto> pageNotice(Page<NoticeDto> page);
|
||||
|
||||
/**
|
||||
* 根据公告id获取公告
|
||||
* @param noticeId
|
||||
* @return
|
||||
*/
|
||||
Notice getNoticeById(Long noticeId);
|
||||
|
||||
/**
|
||||
* 根据公告id删除公告
|
||||
* @param noticeId
|
||||
*/
|
||||
void removeNoticeById(Long noticeId);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.OrderItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/09/15.
|
||||
*/
|
||||
public interface OrderItemService extends IService<OrderItem> {
|
||||
|
||||
/**
|
||||
* 根据订单编号获取订单项
|
||||
* @param orderNumber
|
||||
* @return
|
||||
*/
|
||||
List<OrderItem> getOrderItemsByOrderNumber(String orderNumber);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.OrderRefund;
|
||||
import com.pxdj.api.domain.OrderSettlement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/11/10.
|
||||
*/
|
||||
public interface OrderRefundService extends IService<OrderRefund> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Order;
|
||||
import com.pxdj.api.domain.OrderRefund;
|
||||
import com.pxdj.api.domain.User;
|
||||
import com.pxdj.api.dto.MerchantOrderInfoDto;
|
||||
import com.pxdj.api.dto.OrderCountData;
|
||||
import com.pxdj.api.dto.ShopCartOrderMergerDto;
|
||||
import com.pxdj.api.dto.ShopOrderMergerDto;
|
||||
import com.pxdj.api.param.AddOrderParam;
|
||||
import com.pxdj.api.param.CancelOrderParam;
|
||||
import com.pxdj.api.param.OrderConfirmParam;
|
||||
import com.pxdj.api.param.OrderParam;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lgh on 2018/09/15.
|
||||
*/
|
||||
public interface OrderService extends IService<Order> {
|
||||
|
||||
/**
|
||||
* 消费权益
|
||||
* @return
|
||||
*/
|
||||
void consume(Order order,User user);
|
||||
|
||||
void vipConsume(Order order,User user,String thirdTradeNo);
|
||||
|
||||
void orderConsume(Order order,User user,String thirdTradeNo);
|
||||
|
||||
/**
|
||||
* 会员订单
|
||||
* @return
|
||||
*/
|
||||
Map<String, String> addVipOrder(User user, Long vipPackageId);
|
||||
|
||||
/**
|
||||
* 根据订单编号获取订单
|
||||
* @param orderNumber
|
||||
* @return
|
||||
*/
|
||||
Order getOrderByOrderNumber(String orderNumber);
|
||||
|
||||
/**
|
||||
* 新增订单缓存
|
||||
* @param userId
|
||||
* @param shopCartOrderMergerDto
|
||||
* @return
|
||||
*/
|
||||
ShopCartOrderMergerDto putConfirmOrderCache(String userId ,ShopCartOrderMergerDto shopCartOrderMergerDto);
|
||||
|
||||
/**
|
||||
* 根据用户id获取订单缓存
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
ShopCartOrderMergerDto getConfirmOrderCache(String userId);
|
||||
|
||||
/**
|
||||
* 根据用户id删除订单缓存
|
||||
* @param userId
|
||||
*/
|
||||
void removeConfirmOrderCache(String userId);
|
||||
|
||||
/**
|
||||
* 提交订单
|
||||
* @param userId
|
||||
* @param mergerOrder
|
||||
* @return
|
||||
*/
|
||||
List<Order> submit(String userId, ShopCartOrderMergerDto mergerOrder);
|
||||
|
||||
/**
|
||||
* 发货
|
||||
* @param order
|
||||
*/
|
||||
void delivery(Order order);
|
||||
|
||||
/**
|
||||
* 根据参数获取订单列表
|
||||
* @param orderStatus 订单状态
|
||||
* @param lessThanUpdateTime 更新时间
|
||||
* @return
|
||||
*/
|
||||
List<Order> listOrderAndOrderItems(Integer orderStatus, DateTime lessThanUpdateTime);
|
||||
|
||||
/**
|
||||
* 取消订单
|
||||
* @param orders
|
||||
*/
|
||||
void cancelOrders(List<Order> orders);
|
||||
|
||||
/**
|
||||
* 订单确认收货
|
||||
* @param orders
|
||||
*/
|
||||
void confirmOrder(List<Order> orders);
|
||||
|
||||
/**
|
||||
* 根据参数获取订单列表
|
||||
* @param order 订单参数
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return
|
||||
*/
|
||||
List<Order> listOrdersDetailByOrder(Order order, Date startTime, Date endTime);
|
||||
|
||||
/**
|
||||
* 根据参数分页获取订单
|
||||
* @param page
|
||||
* @param orderParam
|
||||
* @return
|
||||
*/
|
||||
IPage<Order> pageOrdersDetailByOrderParam(Page<Order> page, OrderParam orderParam);
|
||||
|
||||
/**
|
||||
* 删除订单
|
||||
* @param orders
|
||||
*/
|
||||
void deleteOrders(List<Order> orders);
|
||||
|
||||
/**
|
||||
* 根据用户id获取各个状态的订单数目
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
OrderCountData getOrderCount(String userId);
|
||||
|
||||
ShopOrderMergerDto confirm(OrderConfirmParam orderParam, User user);
|
||||
|
||||
Order submitOrder(String userId, ShopOrderMergerDto mergerOrder, AddOrderParam submitOrderParam,Integer prodSwitch);
|
||||
|
||||
void pointsAddOrder(String userId, ShopOrderMergerDto mergerOrder, AddOrderParam submitOrderParam);
|
||||
|
||||
|
||||
void userCancelOrder(Order order,User user);
|
||||
|
||||
void merchantCancelOrder(Order order,User user);
|
||||
|
||||
boolean updateOrder(CancelOrderParam cancelOrderParam,User user);
|
||||
|
||||
boolean grabOrders(CancelOrderParam cancelOrderParam);
|
||||
|
||||
void updateUserOrder(CancelOrderParam cancelOrderParam,User user);
|
||||
|
||||
void updateReachOrder(CancelOrderParam cancelOrderParam,User user);
|
||||
|
||||
OrderRefund userRefundInfo(String orderNumber);
|
||||
|
||||
void refund(OrderRefund order,Double amount, Integer refundSts);
|
||||
|
||||
String transferOrder(Order order,Integer duration, String toMerchantId);
|
||||
|
||||
|
||||
IPage<Order> getUserOrderList(PageParam page, String userId,List<String> statusList);
|
||||
|
||||
List<Order> getOrders(String orderNumber, List<Integer> statusList, Date beginTime, Date endTime,String city,Long teamId);
|
||||
|
||||
IPage<Order> getMerchantList(PageParam page, String userId,List<String> statusList);
|
||||
|
||||
IPage<Order> getMerchantAllList(PageParam page, String userId);
|
||||
|
||||
IPage<Order> getReceivingOrdersList(PageParam page, String userId);
|
||||
|
||||
|
||||
IPage<Order> getUserConsumeList(PageParam page, String userId,Integer type);
|
||||
|
||||
/**
|
||||
* 获取商户订单管理数据
|
||||
* @return
|
||||
*/
|
||||
MerchantOrderInfoDto getOrderManageData(String merchantId);
|
||||
|
||||
Order orderDetail(String orderNumber);
|
||||
|
||||
void refundCallback(String outRefundNo,String outTradeNo,String transactionId);
|
||||
|
||||
void sendTemplateMsg(ShopOrderMergerDto mergerOrder,Date startTime,String userId);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.OrderSettlement;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/11/10.
|
||||
*/
|
||||
public interface OrderSettlementService extends IService<OrderSettlement> {
|
||||
|
||||
/**
|
||||
* 根据内部订单号更新order settlement
|
||||
* @param outTradeNo 外部单号
|
||||
* @param transactionId 支付单号
|
||||
*/
|
||||
void updateSettlementsByPayNo(String outTradeNo, String transactionId);
|
||||
|
||||
/**
|
||||
* 获取现金流水列表
|
||||
* @param merchantName 商户名称
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @param city 城市
|
||||
* @return 现金流水列表
|
||||
*/
|
||||
List<Map<String, Object>> getCashFlowList(String merchantName, Date startTime, Date endTime, String city,Long teamId);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.pxdj.api.param.PayParam;
|
||||
import com.pxdj.api.pay.PayInfoDto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lgh on 2018/09/15.
|
||||
*/
|
||||
public interface PayService {
|
||||
|
||||
void updateToPayInfo(String orderNumber, String bizPayNo);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.PickAddr;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/10/17.
|
||||
*/
|
||||
public interface PickAddrService extends IService<PickAddr> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.ProdProp;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/07/06.
|
||||
*/
|
||||
public interface ProdPropService extends IService<ProdProp> {
|
||||
|
||||
/**
|
||||
* 获取属性与属性值
|
||||
* @param prodProp
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
IPage<ProdProp> pagePropAndValue(ProdProp prodProp, Page<ProdProp> page);
|
||||
|
||||
/**
|
||||
* 保存属性、属性值
|
||||
* @param prodProp
|
||||
*/
|
||||
void saveProdPropAndValues(ProdProp prodProp);
|
||||
|
||||
/**
|
||||
* 更新属性、属性值
|
||||
* @param prodProp
|
||||
*/
|
||||
void updateProdPropAndValues(ProdProp prodProp);
|
||||
|
||||
/**
|
||||
* 删除属性、属性值
|
||||
* 如果propRule为2,同时删除分类与属性值之间的关联关系
|
||||
* @param propId
|
||||
* @param propRule
|
||||
* @param shopId
|
||||
*/
|
||||
void deleteProdPropAndValues(Long propId,Integer propRule,Long shopId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.ProdPropValue;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface ProdPropValueService extends IService<ProdPropValue> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.ProdTagReference;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 分组标签引用
|
||||
*
|
||||
* @author hzm
|
||||
* @date 2019-04-18 16:28:01
|
||||
*/
|
||||
public interface ProdTagReferenceService extends IService<ProdTagReference> {
|
||||
/**
|
||||
* 根据id获取标签id列表
|
||||
* @param prodId
|
||||
* @return
|
||||
*/
|
||||
List<Long> listTagIdByProdId(Long prodId);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.ProdTag;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品分组标签
|
||||
*
|
||||
* @author hzm
|
||||
* @date 2019-04-18 10:48:44
|
||||
*/
|
||||
public interface ProdTagService extends IService<ProdTag> {
|
||||
/**
|
||||
* 获取商品分组标签列表
|
||||
* @return
|
||||
*/
|
||||
List<ProdTag> listProdTag();
|
||||
|
||||
/**
|
||||
* 删除商品分组标签缓存
|
||||
*/
|
||||
void removeProdTag();
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.dto.ProductDto;
|
||||
import com.pxdj.api.dto.SearchProdDto;
|
||||
import com.pxdj.api.dto.TagProductDto;
|
||||
import com.pxdj.api.domain.Product;
|
||||
import com.pxdj.common.utils.PageParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface ProductService extends IService<Product> {
|
||||
|
||||
/**
|
||||
* 保存商品
|
||||
*
|
||||
* @param product 商品信息
|
||||
*/
|
||||
void saveProduct(Product product);
|
||||
|
||||
/**
|
||||
* 更新商品
|
||||
* @param dbProduct
|
||||
* @param product 商品信息
|
||||
*/
|
||||
void updateProduct(Product product, Product dbProduct);
|
||||
|
||||
/**
|
||||
* 根据商品id获取商品信息
|
||||
*
|
||||
* @param prodId
|
||||
* @return
|
||||
*/
|
||||
Product getProductByProdId(Long prodId);
|
||||
|
||||
/**
|
||||
* 根据商品id删除商品
|
||||
* @param prodId
|
||||
*/
|
||||
void removeProductByProdId(Long prodId);
|
||||
|
||||
/**
|
||||
* 根据商品id删除缓存
|
||||
* @param prodId
|
||||
*/
|
||||
void removeProductCacheByProdId(Long prodId);
|
||||
|
||||
/**
|
||||
* 根据上架时间倒序分页获取商品
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> pageByPutAwayTime(IPage<ProductDto> page);
|
||||
|
||||
/**
|
||||
* 根据标签分页获取商品
|
||||
* @param page
|
||||
* @param tagId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> pageByTagId(Page<ProductDto> page, Long tagId);
|
||||
|
||||
/**
|
||||
* 分页获取销量较高商品
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> moreBuyProdList(Page<ProductDto> page);
|
||||
|
||||
/**
|
||||
* 根据分类id分页获取商品列表
|
||||
* @param page
|
||||
* @param categoryId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> pageByCategoryId(Page<ProductDto> page, Long categoryId,Integer type);
|
||||
|
||||
/**
|
||||
* 根据商品名称
|
||||
* @param page
|
||||
* @param prodName
|
||||
* @param sort
|
||||
* @param orderBy
|
||||
* @return
|
||||
*/
|
||||
IPage<SearchProdDto> getSearchProdDtoPageByProdName(Page page, String prodName, Integer sort, Integer orderBy,Integer type);
|
||||
|
||||
/**
|
||||
* 分组获取商品列表
|
||||
* @return
|
||||
*/
|
||||
List<TagProductDto> tagProdList();
|
||||
|
||||
/**
|
||||
* 分页获取收藏商品
|
||||
* @param page
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
IPage<ProductDto> collectionProds(PageParam page, String userId);
|
||||
|
||||
List<Product> selectProdByType(Integer type);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Project;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface ProjectService extends IService<Project> {
|
||||
|
||||
//获取商户的关联项目信息
|
||||
List<Project> getMcProjectList(String userId);
|
||||
|
||||
List<Project> getMyProjectList(String userId,List<Project> projects);
|
||||
|
||||
|
||||
List<Project> getProjectList(Integer isRecommend);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.RechargeRecord;
|
||||
|
||||
/**
|
||||
* 充值记录Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface RechargeRecordService extends IService<RechargeRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.Schedule;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author XUELIJUN
|
||||
*/
|
||||
public interface ScheduleService extends IService<Schedule> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.ScoreDetail;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author user
|
||||
* @since 2025-01-10 10:46:28
|
||||
*/
|
||||
public interface ScoreDetailService extends IService<ScoreDetail> {
|
||||
Boolean grantScore(ScoreDetail scoreDetail);
|
||||
|
||||
Boolean deductScore(ScoreDetail scoreDetail);
|
||||
|
||||
void grantScoreByInviter(ScoreDetail scoreDetail);
|
||||
|
||||
Integer getScoreByUserId(String userId);
|
||||
|
||||
IPage<ScoreDetail> getScoreDetailListByUserId(Page page,String userId);
|
||||
|
||||
IPage<ScoreDetail> getScoreDetailListByDate(Page page, String userId, String createTime);
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.pxdj.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pxdj.api.domain.ShopDetail;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/08/29.
|
||||
*/
|
||||
public interface ShopDetailService extends IService<ShopDetail> {
|
||||
/**
|
||||
* 更新店铺信息
|
||||
* @param shopDetail
|
||||
* @param dbShopDetail
|
||||
*/
|
||||
void updateShopDetail(ShopDetail shopDetail,ShopDetail dbShopDetail);
|
||||
|
||||
/**
|
||||
* 删除店铺详情
|
||||
* @param id
|
||||
*/
|
||||
void deleteShopDetailByShopId(Long id);
|
||||
|
||||
/**
|
||||
* 根据店铺id获取店铺信息
|
||||
* @param shopId
|
||||
* @return
|
||||
*/
|
||||
ShopDetail getShopDetailByShopId(Long shopId);
|
||||
|
||||
/**
|
||||
* 根据店铺id删除店铺详情信息
|
||||
* @param shopId
|
||||
*/
|
||||
void removeShopDetailCacheByShopId(Long shopId);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user