更新发布
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.article.Article;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 文章管理表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ArticleDao extends BaseMapper<Article> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.category.Category;
|
||||
|
||||
/**
|
||||
* 分类表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface CategoryDao extends BaseMapper<Category> {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.express.Express;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 快递公司表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ExpressDao extends BaseMapper<Express> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.express.ShippingTemplates;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ShippingTemplatesDao extends BaseMapper<ShippingTemplates> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.express.ShippingTemplatesFree;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.request.ShippingTemplatesFreeRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ShippingTemplatesFreeDao extends BaseMapper<ShippingTemplatesFree> {
|
||||
|
||||
List<ShippingTemplatesFreeRequest> getListGroup(Integer tempId);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.express.ShippingTemplatesRegion;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.request.ShippingTemplatesRegionRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ShippingTemplatesRegionDao extends BaseMapper<ShippingTemplatesRegion> {
|
||||
|
||||
List<ShippingTemplatesRegionRequest> getListGroup(Integer tempId);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.sms.SmsRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 短信发送记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SmsRecordDao extends BaseMapper<SmsRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.sms.SmsTemplate;
|
||||
|
||||
/**
|
||||
* 短信模板表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SmsTemplateDao extends BaseMapper<SmsTemplate> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.bargain.StoreBargain;
|
||||
|
||||
/**
|
||||
* 砍价表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreBargainDao extends BaseMapper<StoreBargain> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.bargain.StoreBargainUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 用户参与砍价表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreBargainUserDao extends BaseMapper<StoreBargainUser> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.bargain.StoreBargainUserHelp;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 砍价用户帮助表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreBargainUserHelpDao extends BaseMapper<StoreBargainUserHelp> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.cat.StoreCart;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 购物车表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCartDao extends BaseMapper<StoreCart> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.combination.StoreCombination;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 拼团商品表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCombinationDao extends BaseMapper<StoreCombination> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.coupon.StoreCoupon;
|
||||
|
||||
/**
|
||||
* 优惠券表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCouponDao extends BaseMapper<StoreCoupon> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.coupon.StoreCouponUser;
|
||||
|
||||
/**
|
||||
* 优惠券记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCouponUserDao extends BaseMapper<StoreCouponUser> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.order.StoreOrder;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.request.StoreDateRangeSqlPram;
|
||||
import com.zbkj.common.request.StoreOrderStaticsticsRequest;
|
||||
import com.zbkj.common.response.OrderBrokerageData;
|
||||
import com.zbkj.common.response.StoreOrderStatisticsChartItemResponse;
|
||||
import com.zbkj.common.response.StoreStaffDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreOrderDao extends BaseMapper<StoreOrder> {
|
||||
|
||||
/**
|
||||
* 订单总金额
|
||||
*/
|
||||
BigDecimal getTotalPrice(String where);
|
||||
|
||||
/**
|
||||
* 退款总金额
|
||||
*/
|
||||
BigDecimal getRefundPrice(String where);
|
||||
|
||||
/**
|
||||
* 获取退款总单数
|
||||
*/
|
||||
Integer getRefundTotal(String where);
|
||||
|
||||
/**
|
||||
* 核销详情 月数据
|
||||
* @param request 分页和日期
|
||||
* @return 月数据
|
||||
*/
|
||||
List<StoreStaffDetail> getOrderVerificationDetail(StoreOrderStaticsticsRequest request);
|
||||
|
||||
/**
|
||||
* 订单统计详情 price
|
||||
* @param pram 时间区间参数
|
||||
* @return 月数据
|
||||
*/
|
||||
List<StoreOrderStatisticsChartItemResponse> getOrderStatisticsPriceDetail(StoreDateRangeSqlPram pram);
|
||||
|
||||
/**
|
||||
* 订单统计详情 订单量
|
||||
* @param pram 时间区间参数
|
||||
* @return 月数据
|
||||
*/
|
||||
List<StoreOrderStatisticsChartItemResponse> getOrderStatisticsOrderCountDetail(StoreDateRangeSqlPram pram);
|
||||
|
||||
/**
|
||||
* 获取佣金相关数据
|
||||
* @param uid 用户uid
|
||||
* @param spreadId 推广人uid
|
||||
*/
|
||||
OrderBrokerageData getBrokerageData(@Param("uid") Integer uid, @Param("spreadId") Integer spreadId);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.order.StoreOrderInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 订单购物详情表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreOrderInfoDao extends BaseMapper<StoreOrderInfo> {
|
||||
|
||||
/**
|
||||
* 根据时间、商品id获取销售件数
|
||||
* @param date 时间,格式'yyyy-MM-dd'
|
||||
* @param proId 商品id
|
||||
*/
|
||||
Integer getSalesNumByDateAndProductId(@Param("date") String date, @Param("proId") Integer proId);
|
||||
|
||||
/**
|
||||
* 根据时间、商品id获取销售额
|
||||
* @param date 时间,格式'yyyy-MM-dd'
|
||||
* @param proId 商品id
|
||||
*/
|
||||
BigDecimal getSalesByDateAndProductId(@Param("date") String date, @Param("proId") Integer proId);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.order.StoreOrderStatus;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 订单操作记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreOrderStatusDao extends BaseMapper<StoreOrderStatus> {
|
||||
|
||||
/**
|
||||
* 通过日期获取订单退款金额
|
||||
* @param date 日期,yyyy-MM-dd格式
|
||||
* @return BigDecimal
|
||||
*/
|
||||
BigDecimal getRefundOrderAmountByDate(@Param("date") String date);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.combination.StorePink;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 拼团表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StorePinkDao extends BaseMapper<StorePink> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductAttr;
|
||||
|
||||
/**
|
||||
* 商品属性表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductAttrDao extends BaseMapper<StoreProductAttr> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductAttrResult;
|
||||
|
||||
/**
|
||||
* 商品属性详情表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductAttrResultDao extends BaseMapper<StoreProductAttrResult> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductAttrValue;
|
||||
|
||||
/**
|
||||
* 商品属性值表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductAttrValueDao extends BaseMapper<StoreProductAttrValue> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductCate;
|
||||
|
||||
/**
|
||||
* 商品分类辅助表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductCateDao extends BaseMapper<StoreProductCate> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductCoupon;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductCouponDao extends BaseMapper<StoreProductCoupon> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.product.StoreProduct;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 商品表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductDao extends BaseMapper<StoreProduct> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductDescription;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductDescriptionDao extends BaseMapper<StoreProductDescription> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.log.StoreProductLog;
|
||||
|
||||
/**
|
||||
* 商品统计 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductLogDao extends BaseMapper<StoreProductLog> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductRelation;
|
||||
import com.zbkj.common.response.UserRelationResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品点赞和收藏表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductRelationDao extends BaseMapper<StoreProductRelation> {
|
||||
|
||||
/**
|
||||
* 用户收藏列表
|
||||
* @param uid 用户uid
|
||||
*/
|
||||
List<UserRelationResponse> getUserList(Integer uid);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductReply;
|
||||
|
||||
/**
|
||||
* 评论表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductReplyDao extends BaseMapper<StoreProductReply> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.product.StoreProductRule;
|
||||
|
||||
/**
|
||||
* 商品规则值(规格)表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreProductRuleDao extends BaseMapper<StoreProductRule> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.seckill.StoreSeckill;
|
||||
|
||||
/**
|
||||
* 商品秒杀产品表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreSeckillDao extends BaseMapper<StoreSeckill> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.seckill.StoreSeckillManger;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreSeckillMangerDao extends BaseMapper<StoreSeckillManger> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemAdmin;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 后台管理员表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemAdminDao extends BaseMapper<SystemAdmin> {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemAttachment;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 附件管理表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemAttachmentDao extends BaseMapper<SystemAttachment> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemCity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 城市表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemCityDao extends BaseMapper<SystemCity> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemConfig;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 配置表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemConfigDao extends BaseMapper<SystemConfig> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemFormTemp;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 表单模板 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemFormTempDao extends BaseMapper<SystemFormTemp> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemGroup;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 组合数据表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemGroupDao extends BaseMapper<SystemGroup> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemGroupData;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 组合数据详情表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemGroupDataDao extends BaseMapper<SystemGroupData> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.system.SystemMenu;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 系统菜单表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author HZW
|
||||
* @since 2021-11-17
|
||||
*/
|
||||
public interface SystemMenuDao extends BaseMapper<SystemMenu> {
|
||||
|
||||
/**
|
||||
* 通过角色数据获取权限
|
||||
* @param userId 用户id
|
||||
* @return List
|
||||
*/
|
||||
List<SystemMenu> findPermissionByUserId(Integer userId);
|
||||
|
||||
/**
|
||||
* 获取用户路由
|
||||
* @param userId 用户id
|
||||
* @return List
|
||||
*/
|
||||
List<SystemMenu> getMenusByUserId(Integer userId);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.system.SystemNotification;
|
||||
|
||||
/**
|
||||
* 通知设置表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemNotificationDao extends BaseMapper<SystemNotification> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.system.SystemRole;
|
||||
|
||||
/**
|
||||
* 身份管理表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemRoleDao extends BaseMapper<SystemRole> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.system.SystemRoleMenu;
|
||||
|
||||
/**
|
||||
* 角色菜单关联表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemRoleMenuDao extends BaseMapper<SystemRoleMenu> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.request.StoreNearRequest;
|
||||
import com.zbkj.common.vo.SystemStoreNearVo;
|
||||
import com.zbkj.common.model.system.SystemStore;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 门店自提 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemStoreDao extends BaseMapper<SystemStore> {
|
||||
|
||||
List<SystemStoreNearVo> getNearList(StoreNearRequest request);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemStoreStaff;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 门店店员表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemStoreStaffDao extends BaseMapper<SystemStoreStaff> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.system.SystemUserLevel;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 设置用户等级表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SystemUserLevelDao extends BaseMapper<SystemUserLevel> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.wechat.TemplateMessage;
|
||||
|
||||
/**
|
||||
* 微信模板 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface TemplateMessageDao extends BaseMapper<TemplateMessage> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.user.UserAddress;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 用户地址表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserAddressDao extends BaseMapper<UserAddress> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.user.UserBill;
|
||||
import com.zbkj.common.response.UserBillResponse;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 用户账单表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserBillDao extends BaseMapper<UserBill> {
|
||||
|
||||
List<UserBillResponse> fundMonitoring(Map<String, Object> map);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.user.UserBrokerageRecord;
|
||||
|
||||
/**
|
||||
* 用户佣金记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserBrokerageRecordDao extends BaseMapper<UserBrokerageRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.user.User;
|
||||
import com.zbkj.common.response.UserSpreadPeopleItemResponse;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 用户表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserDao extends BaseMapper<User> {
|
||||
|
||||
List<UserSpreadPeopleItemResponse> getSpreadPeopleList(Map<String, Object> map);
|
||||
|
||||
List<User> findAdminList(Map<String, Object> map);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.user.UserExperienceRecord;
|
||||
|
||||
/**
|
||||
* 用户经验记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserExperienceRecordDao extends BaseMapper<UserExperienceRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.finance.UserExtract;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 用户提现表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserExtractDao extends BaseMapper<UserExtract> {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.vo.UserFundsMonitor;
|
||||
|
||||
/**
|
||||
* 用户充值表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserFundsMonitorDao extends BaseMapper<UserFundsMonitor> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.user.UserGroup;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 用户分组表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserGroupDao extends BaseMapper<UserGroup> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.user.UserIntegralRecord;
|
||||
|
||||
/**
|
||||
* 用户积分记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserIntegralRecordDao extends BaseMapper<UserIntegralRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.user.UserLevel;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 用户等级记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserLevelDao extends BaseMapper<UserLevel> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.finance.UserRecharge;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 用户充值表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserRechargeDao extends BaseMapper<UserRecharge> {
|
||||
|
||||
/**
|
||||
* 根据类型获取该类型充值总金额
|
||||
* @param type 充值类型
|
||||
* @return 该类型充值总金额
|
||||
*/
|
||||
BigDecimal getSumByType(String type);
|
||||
|
||||
/**
|
||||
* 获取退款总金额
|
||||
* @return 退款总金额
|
||||
*/
|
||||
BigDecimal getSumByRefund();
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.user.UserSign;
|
||||
|
||||
/**
|
||||
* 签到记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserSignDao extends BaseMapper<UserSign> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.user.UserTag;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 用户分组表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserTagDao extends BaseMapper<UserTag> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.user.UserToken;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserTokenDao extends BaseMapper<UserToken> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.record.UserVisitRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 用户访问记录表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface UserVisitRecordDao extends BaseMapper<UserVisitRecord> {
|
||||
|
||||
/**
|
||||
* 获取活跃用户数
|
||||
* @param date 日期
|
||||
* @return Integer
|
||||
*/
|
||||
Integer getActiveUserNumByDate(@Param("date") String date);
|
||||
|
||||
/**
|
||||
* 通过时间段获取活跃用户数
|
||||
* @param startDate 日期
|
||||
* @param endDate 日期
|
||||
* @return Integer
|
||||
*/
|
||||
Integer getActiveUserNumByPeriod(@Param("startDate") String startDate, @Param("endDate") String endDate);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.wechat.WechatCallback;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 微信回调表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author HZW
|
||||
* @since 2021-05-19
|
||||
*/
|
||||
public interface WechatCallbackDao extends BaseMapper<WechatCallback> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.wechat.WechatExceptions;
|
||||
|
||||
/**
|
||||
* 微信异常表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface WechatExceptionsDao extends BaseMapper<WechatExceptions> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zbkj.common.model.wechat.WechatPayInfo;
|
||||
|
||||
/**
|
||||
* 微信订单表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface WechatPayInfoDao extends BaseMapper<WechatPayInfo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.wechat.WechatQrcode;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 微信二维码管理表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface WechatQrcodeDao extends BaseMapper<WechatQrcode> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.dao;
|
||||
|
||||
import com.zbkj.common.model.wechat.WechatReply;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 微信关键字回复表 Mapper 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface WechatReplyDao extends BaseMapper<WechatReply> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
package com.zbkj.service.delete;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.zbkj.common.constants.Constants;
|
||||
import com.zbkj.common.constants.PayConstants;
|
||||
import com.zbkj.common.constants.SysConfigConstants;
|
||||
import com.zbkj.common.exception.CrmebException;
|
||||
import com.zbkj.common.model.order.StoreOrder;
|
||||
import com.zbkj.common.vo.StoreOrderInfoOldVo;
|
||||
import com.zbkj.service.service.StoreOrderInfoService;
|
||||
import com.zbkj.service.service.StoreOrderService;
|
||||
import com.zbkj.service.service.SystemConfigService;
|
||||
import com.zbkj.service.service.UserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单工具类
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
@Service
|
||||
public class OrderUtils {
|
||||
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
|
||||
@Autowired
|
||||
private SystemConfigService systemConfigService;
|
||||
|
||||
@Autowired
|
||||
private StoreOrderService storeOrderService;
|
||||
|
||||
@Autowired
|
||||
private StoreOrderInfoService storeOrderInfoService;
|
||||
|
||||
/**
|
||||
* 检测支付渠道
|
||||
* @param payChannel 支付渠道
|
||||
*/
|
||||
public static boolean checkPayChannel(String payChannel) {
|
||||
if (!payChannel.equals(PayConstants.PAY_CHANNEL_WE_CHAT_H5) &&
|
||||
!payChannel.equals(PayConstants.PAY_CHANNEL_WE_CHAT_PROGRAM) &&
|
||||
!payChannel.equals(PayConstants.PAY_CHANNEL_WE_CHAT_PUBLIC) &&
|
||||
!payChannel.equals(PayConstants.PAY_CHANNEL_WE_CHAT_APP_IOS) &&
|
||||
!payChannel.equals(PayConstants.PAY_CHANNEL_WE_CHAT_APP_ANDROID)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查支付类型
|
||||
* @param payType 支付类型标识
|
||||
* @return 是否支持
|
||||
*/
|
||||
public Boolean checkPayType(String payType){
|
||||
boolean result = false;
|
||||
payType = payType.toLowerCase();
|
||||
switch (payType){
|
||||
case PayConstants.PAY_TYPE_WE_CHAT:
|
||||
result = systemConfigService.getValueByKey(SysConfigConstants.CONFIG_PAY_WEIXIN_OPEN).equals("1");
|
||||
break;
|
||||
case PayConstants.PAY_TYPE_YUE:
|
||||
result = (systemConfigService.getValueByKey(SysConfigConstants.CONFIG_YUE_PAY_STATUS).equals("1"));
|
||||
break;
|
||||
case PayConstants.PAY_TYPE_ALI_PAY:
|
||||
result = (systemConfigService.getValueByKey(SysConfigConstants.CONFIG_ALI_PAY_STATUS).equals("1"));
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据订单号查询订单信息
|
||||
* @param id 订单id
|
||||
* @return 计算后的价格集合
|
||||
*/
|
||||
public StoreOrder getInfoById(Integer id) {
|
||||
StoreOrder storeOrder = storeOrderService.getById(id);
|
||||
Integer userId = userService.getUserIdException();
|
||||
|
||||
if(null == storeOrder || !userId.equals(storeOrder.getUid())){
|
||||
//订单号错误
|
||||
throw new CrmebException("没有找到相关订单信息!");
|
||||
}
|
||||
|
||||
return storeOrder;
|
||||
}
|
||||
|
||||
/**
|
||||
* 翻译支付方式给前端
|
||||
* @param payType
|
||||
* @return
|
||||
*/
|
||||
public String getOrderPayTypeStr(String payType){
|
||||
String payTypeStr = null;
|
||||
switch (payType){
|
||||
case Constants.PAY_TYPE_WE_CHAT:
|
||||
payTypeStr = "微信支付";
|
||||
break;
|
||||
case Constants.PAY_TYPE_YUE:
|
||||
payTypeStr = "余额支付";
|
||||
break;
|
||||
case Constants.PAY_TYPE_OFFLINE:
|
||||
payTypeStr = "线下支付";
|
||||
break;
|
||||
case Constants.PAY_TYPE_ALI_PAY:
|
||||
payTypeStr = "支付宝支付";
|
||||
break;
|
||||
default:
|
||||
payTypeStr = "其他支付方式";
|
||||
break;
|
||||
}
|
||||
return payTypeStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* h5 订单查询 where status 封装
|
||||
* @param queryWrapper 查询条件
|
||||
* @param status 状态
|
||||
*/
|
||||
public void statusApiByWhere(LambdaQueryWrapper<StoreOrder> queryWrapper, Integer status){
|
||||
switch (status){
|
||||
case Constants.ORDER_STATUS_H5_UNPAID: // 未支付
|
||||
queryWrapper.eq(StoreOrder::getPaid, false);
|
||||
queryWrapper.eq(StoreOrder::getStatus, 0);
|
||||
queryWrapper.eq(StoreOrder::getRefundStatus, 0);
|
||||
queryWrapper.eq(StoreOrder::getType, 0);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_NOT_SHIPPED: // 待发货
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.eq(StoreOrder::getStatus, 0);
|
||||
queryWrapper.eq(StoreOrder::getRefundStatus, 0);
|
||||
// queryWrapper.eq(StoreOrder::getShippingType, 1);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_SPIKE: // 待收货
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.eq(StoreOrder::getStatus, 1);
|
||||
queryWrapper.eq(StoreOrder::getRefundStatus, 0);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_JUDGE: // 已支付 已收货 待评价
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.eq(StoreOrder::getStatus, 2);
|
||||
queryWrapper.eq(StoreOrder::getRefundStatus, 0);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_COMPLETE: // 已完成
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.eq(StoreOrder::getStatus, 3);
|
||||
queryWrapper.eq(StoreOrder::getRefundStatus, 0);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_REFUNDING: // 退款中
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.in(StoreOrder::getRefundStatus, 1, 3);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_REFUNDED: // 已退款
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.eq(StoreOrder::getRefundStatus, 2);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_REFUND: // 包含已退款和退款中
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.in(StoreOrder::getRefundStatus, 1,2,3);
|
||||
break;
|
||||
}
|
||||
queryWrapper.eq(StoreOrder::getIsDel, false);
|
||||
queryWrapper.eq(StoreOrder::getIsSystemDel, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据订单id获取订单中商品和名称和购买数量字符串
|
||||
* @param orderId 订单id
|
||||
* @return 商品名称*购买数量
|
||||
*/
|
||||
public String getStoreNameAndCarNumString(int orderId){
|
||||
List<StoreOrderInfoOldVo> currentOrderInfo = storeOrderInfoService.getOrderListByOrderId(orderId);
|
||||
if(currentOrderInfo.size() > 0) {
|
||||
StringBuilder sbOrderProduct = new StringBuilder();
|
||||
for (StoreOrderInfoOldVo storeOrderInfoVo : currentOrderInfo) {
|
||||
sbOrderProduct.append(storeOrderInfoVo.getInfo().getProductName() + "*"
|
||||
+ storeOrderInfoVo.getInfo().getPayNum());
|
||||
}
|
||||
return sbOrderProduct.toString();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,555 @@
|
||||
package com.zbkj.service.delete;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.zbkj.common.constants.Constants;
|
||||
import com.zbkj.common.exception.CrmebException;
|
||||
import com.zbkj.common.response.ProductActivityItemResponse;
|
||||
import com.zbkj.common.utils.CrmebUtil;
|
||||
import com.zbkj.common.utils.DateUtil;
|
||||
import com.zbkj.common.utils.UrlUtil;
|
||||
import com.zbkj.common.model.bargain.StoreBargain;
|
||||
import com.zbkj.common.model.combination.StoreCombination;
|
||||
import com.zbkj.common.model.seckill.StoreSeckill;
|
||||
import com.zbkj.common.model.seckill.StoreSeckillManger;
|
||||
import com.zbkj.common.model.product.StoreProduct;
|
||||
import com.zbkj.common.model.product.StoreProductAttr;
|
||||
import com.zbkj.common.request.StoreProductRequest;
|
||||
import com.zbkj.service.service.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品工具类
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
@Service
|
||||
public class ProductUtils {
|
||||
private String baseUrl;
|
||||
|
||||
String rightUrl;
|
||||
|
||||
@Autowired
|
||||
private StoreProductCouponService storeProductCouponService;
|
||||
|
||||
@Autowired
|
||||
private SystemConfigService systemConfigService;
|
||||
|
||||
@Autowired
|
||||
private StoreSeckillService storeSeckillService;
|
||||
|
||||
@Autowired
|
||||
private StoreSeckillMangerService storeSeckillMangerService;
|
||||
|
||||
@Autowired
|
||||
private StoreBargainService storeBargainService;
|
||||
|
||||
@Autowired
|
||||
private StoreCombinationService storeCombinationService;
|
||||
|
||||
/**
|
||||
* 解析淘宝产品数据
|
||||
* @param url
|
||||
* @param tag
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
*/
|
||||
public StoreProductRequest getTaobaoProductInfo(String url, int tag) throws JSONException, IOException {
|
||||
setConfig(url, tag);
|
||||
JSONObject tbJsonData = getRequestFromUrl(baseUrl + rightUrl);
|
||||
// JSONObject tbJsonData = new JSONObject(JSONExample.tbJson); // just Test
|
||||
JSONObject data = tbJsonData.getJSONObject("data");
|
||||
if (null == data) throw new CrmebException("复制商品失败--返回数据格式错误--未找到data");
|
||||
JSONObject item = data.getJSONObject("item");
|
||||
if (null == item) throw new CrmebException("复制商品失败--返回数据格式错误--未找到item");
|
||||
|
||||
StoreProductRequest productRequest = new StoreProductRequest();
|
||||
StoreProduct product = new StoreProduct();
|
||||
product.setStoreName(item.getString("title"));
|
||||
product.setStoreInfo(item.getString("title"));
|
||||
product.setSliderImage(item.getString("images"));
|
||||
product.setImage(item.getString("images").split(",")[0]
|
||||
.replace("[", "").replace("\"", ""));
|
||||
product.setKeyword(item.getString("title"));
|
||||
BeanUtils.copyProperties(product, productRequest);
|
||||
productRequest.setContent(item.getString("desc"));
|
||||
|
||||
productRequest.setSpecType(true);
|
||||
JSONArray props = item.getJSONArray("props");
|
||||
// if (null == props) throw new CrmebException("复制商品失败--返回数据格式错误--未找到props");
|
||||
if (null == props || props.length() < 1) {
|
||||
productRequest.setSpecType(false);
|
||||
return productRequest;
|
||||
}
|
||||
List<StoreProductAttr> spaAttes = new ArrayList<>();
|
||||
for (int i = 0; i < props.length(); i++) {
|
||||
JSONObject pItem = props.getJSONObject(i);
|
||||
StoreProductAttr spattr = new StoreProductAttr();
|
||||
spattr.setAttrName(pItem.getString("name"));
|
||||
JSONArray values = pItem.getJSONArray("values");
|
||||
List<String> attrValues = new ArrayList<>();
|
||||
for (int j = 0; j < values.length(); j++) {
|
||||
JSONObject value = values.getJSONObject(j);
|
||||
attrValues.add(value.getString("name"));
|
||||
}
|
||||
spattr.setAttrValues(JSON.toJSONString(attrValues));
|
||||
spaAttes.add(spattr);
|
||||
}
|
||||
productRequest.setAttr(spaAttes);
|
||||
return productRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析京东产品数据
|
||||
* @param url
|
||||
* @param tag
|
||||
* @return
|
||||
* @throws JSONException
|
||||
*/
|
||||
public StoreProductRequest getJDProductInfo(String url, int tag) throws JSONException, IOException {
|
||||
setConfig(url,tag);
|
||||
JSONObject tbJsonData = getRequestFromUrl(baseUrl + rightUrl);
|
||||
// JSONObject tbJsonData = new JSONObject(JSONExample.jdJson); // just Test
|
||||
JSONObject data = tbJsonData.getJSONObject("data");
|
||||
if (null == data) throw new CrmebException("复制商品失败--返回数据格式错误--未找到data");
|
||||
JSONObject item = data.getJSONObject("item");
|
||||
if (null == item) throw new CrmebException("复制商品失败--返回数据格式错误--未找到item");
|
||||
|
||||
StoreProductRequest productRequest = new StoreProductRequest();
|
||||
StoreProduct product = new StoreProduct();
|
||||
product.setStoreName(item.getString("name"));
|
||||
product.setStoreInfo(item.getString("name"));
|
||||
product.setSliderImage(item.getString("images"));
|
||||
product.setImage(item.getString("images").split(",")[0]
|
||||
.replace("[", "").replace("\"", ""));
|
||||
product.setPrice(BigDecimal.valueOf(item.getDouble("price")));
|
||||
BeanUtils.copyProperties(product, productRequest);
|
||||
productRequest.setContent(item.getString("desc"));
|
||||
|
||||
JSONObject props = item.getJSONObject("skuProps");
|
||||
if (null == props) throw new CrmebException("复制商品失败--返回数据格式错误--未找到props");
|
||||
List<StoreProductAttr> spaAttes = new ArrayList<>();
|
||||
JSONObject saleJson = item.getJSONObject("saleProp");
|
||||
int attrValueIsNullCount = 0;
|
||||
Iterator<String> saleProps = saleJson.keys();
|
||||
while (saleProps.hasNext()) {
|
||||
StoreProductAttr spattr = new StoreProductAttr();
|
||||
String stepkey = saleProps.next();
|
||||
String stepValue = props.getString(stepkey);
|
||||
String stepValueValidLength = stepValue.replace("[","").replace("]","").replace("\"","");
|
||||
if(stepValueValidLength.length() > 0){
|
||||
com.alibaba.fastjson.JSONArray stepValues = JSON.parseArray(stepValue);
|
||||
int c = stepValues.get(0).toString().length();
|
||||
attrValueIsNullCount += c == 0 ? 1 : 0;
|
||||
spattr.setAttrName(saleJson.getString(stepkey));
|
||||
spattr.setAttrValues(props.getString(stepkey));
|
||||
spaAttes.add(spattr);
|
||||
productRequest.setAttr(spaAttes);
|
||||
}else{
|
||||
attrValueIsNullCount += 1;
|
||||
}
|
||||
}
|
||||
// 判断是否单属性
|
||||
productRequest.setSpecType(spaAttes.size() != attrValueIsNullCount);
|
||||
return productRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析天猫产品数据
|
||||
* @param url
|
||||
* @param tag
|
||||
* @return
|
||||
* @throws JSONException
|
||||
*/
|
||||
public StoreProductRequest getTmallProductInfo(String url, int tag) throws JSONException, IOException {
|
||||
setConfig(url, tag);
|
||||
JSONObject tbJsonData = getRequestFromUrl(baseUrl + rightUrl);
|
||||
// JSONObject tbJsonData = new JSONObject(JSONExample.tmallJson); // just Test
|
||||
JSONObject data = tbJsonData.getJSONObject("data");
|
||||
if (null == data) throw new CrmebException("复制商品失败--返回数据格式错误--未找到data");
|
||||
JSONObject item = data.getJSONObject("item");
|
||||
if (null == item) throw new CrmebException("复制商品失败--返回数据格式错误--未找到item");
|
||||
|
||||
StoreProductRequest productRequest = new StoreProductRequest();
|
||||
StoreProduct product = new StoreProduct();
|
||||
product.setStoreName(item.getString("title"));
|
||||
product.setStoreInfo(item.getString("subTitle"));
|
||||
product.setSliderImage(item.getString("images"));
|
||||
product.setImage(item.getString("images").split(",")[0]
|
||||
.replace("[", "").replace("\"", ""));
|
||||
product.setKeyword(item.getString("title"));
|
||||
BeanUtils.copyProperties(product, productRequest);
|
||||
productRequest.setContent(item.getString("descUrl"));
|
||||
|
||||
productRequest.setSpecType(true);
|
||||
JSONArray props = item.getJSONArray("props");
|
||||
// if (null == props) throw new CrmebException("复制商品失败--返回数据格式错误--未找到props");
|
||||
if (null == props || props.length() < 1) {
|
||||
// 无规格商品
|
||||
productRequest.setSpecType(false);
|
||||
return productRequest;
|
||||
}
|
||||
List<StoreProductAttr> spaAttes = new ArrayList<>();
|
||||
for (int i = 0; i < props.length(); i++) {
|
||||
JSONObject pItem = props.getJSONObject(i);
|
||||
StoreProductAttr spattr = new StoreProductAttr();
|
||||
spattr.setAttrName(pItem.getString("name"));
|
||||
JSONArray values = pItem.getJSONArray("values");
|
||||
List<String> attrValues = new ArrayList<>();
|
||||
for (int j = 0; j < values.length(); j++) {
|
||||
JSONObject value = values.getJSONObject(j);
|
||||
attrValues.add(value.getString("name"));
|
||||
}
|
||||
spattr.setAttrValues(JSON.toJSONString(attrValues));
|
||||
spaAttes.add(spattr);
|
||||
}
|
||||
productRequest.setAttr(spaAttes);
|
||||
return productRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析拼多多产品数据
|
||||
* @param url
|
||||
* @param tag
|
||||
* @return
|
||||
* @throws JSONException
|
||||
*/
|
||||
public StoreProductRequest getPddProductInfo(String url, int tag) throws JSONException, IOException {
|
||||
setConfig(url, tag);
|
||||
JSONObject tbJsonData = getRequestFromUrl(baseUrl + rightUrl);
|
||||
// JSONObject tbJsonData = new JSONObject(JSONExample.pddJson); // just Test
|
||||
JSONObject data = tbJsonData.getJSONObject("data");
|
||||
if (null == data) throw new CrmebException("复制商品失败--返回数据格式错误--未找到data");
|
||||
JSONObject item = data.getJSONObject("item");
|
||||
if (null == item) throw new CrmebException("复制商品失败--返回数据格式错误--未找到item");
|
||||
|
||||
StoreProductRequest productRequest = new StoreProductRequest();
|
||||
StoreProduct product = new StoreProduct();
|
||||
product.setStoreName(item.getString("goodsName"));
|
||||
product.setStoreInfo(item.getString("goodsDesc"));
|
||||
product.setSliderImage(item.getString("thumbUrl"));
|
||||
product.setImage(item.getString("banner"));
|
||||
product.setVideoLink(item.getJSONArray("video").getJSONObject(0).getString("videoUrl"));
|
||||
product.setPrice(BigDecimal.valueOf(item.getDouble("maxNormalPrice")));
|
||||
product.setOtPrice(BigDecimal.valueOf(item.getDouble("marketPrice")));
|
||||
BeanUtils.copyProperties(product, productRequest);
|
||||
|
||||
JSONArray props = item.getJSONArray("skus");
|
||||
if (null == props) throw new CrmebException("复制商品失败--返回数据格式错误--未找到props");
|
||||
if (props.length() > 0) {
|
||||
List<StoreProductAttr> spaAttes = new ArrayList<>();
|
||||
HashMap<String,List<String>> tempAttr = new HashMap<>();
|
||||
for (int i = 0; i < props.length(); i++) {
|
||||
JSONObject pItem = props.getJSONObject(i);
|
||||
JSONArray specArray = pItem.getJSONArray("specs");
|
||||
for (int j = 0; j < specArray.length(); j++) {
|
||||
JSONObject specItem = specArray.getJSONObject(j);
|
||||
String keyTemp = specItem.getString("spec_key");
|
||||
String valueTemp = specItem.getString("spec_value");
|
||||
if(tempAttr.containsKey(keyTemp)){
|
||||
if(!tempAttr.get(keyTemp).contains(valueTemp)){
|
||||
tempAttr.get(keyTemp).add(valueTemp);
|
||||
}
|
||||
}else{
|
||||
List<String> tempList = new ArrayList<>();
|
||||
tempList.add(valueTemp);
|
||||
tempAttr.put(keyTemp, tempList);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Iterator iterator = tempAttr.keySet().iterator();
|
||||
while (iterator.hasNext()){
|
||||
String key = (String)iterator.next();
|
||||
StoreProductAttr spattr = new StoreProductAttr();
|
||||
spattr.setAttrName(key);
|
||||
spattr.setAttrValues(tempAttr.get(key).toString());
|
||||
spaAttes.add(spattr);
|
||||
}
|
||||
productRequest.setAttr(spaAttes);
|
||||
}
|
||||
return productRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* *** 苏宁返回的数据不一致,暂放
|
||||
* 解析苏宁产品数据
|
||||
* @param url
|
||||
* @param tag
|
||||
* @return
|
||||
* @throws JSONException
|
||||
*/
|
||||
public StoreProductRequest getSuningProductInfo(String url, int tag) throws JSONException, IOException {
|
||||
setConfig(url,tag);
|
||||
JSONObject tbJsonData = getRequestFromUrl(baseUrl + rightUrl);
|
||||
System.out.println("tbJsonData:"+tbJsonData);
|
||||
// JSONObject tbJsonData = new JSONObject(JSONExample.snJson); // just Test
|
||||
JSONObject data = tbJsonData.getJSONObject("data");
|
||||
if (null == data) throw new CrmebException("复制商品失败--返回数据格式错误--未找到data");
|
||||
|
||||
StoreProductRequest productRequest = new StoreProductRequest();
|
||||
StoreProduct product = new StoreProduct();
|
||||
product.setStoreName(data.getString("title"));
|
||||
product.setStoreInfo(data.getString("title"));
|
||||
product.setSliderImage(data.getString("images"));
|
||||
product.setImage(data.getString("images").split(",")[0]
|
||||
.replace("[", "").replace("\"", ""));
|
||||
Long priceS = data.getLong("price");
|
||||
product.setPrice(BigDecimal.valueOf(priceS));
|
||||
BeanUtils.copyProperties(product, productRequest);
|
||||
productRequest.setContent(data.getString("desc"));
|
||||
|
||||
List<StoreProductAttr> spaAttes = new ArrayList<>();
|
||||
StoreProductAttr spattr = new StoreProductAttr();
|
||||
spattr.setAttrName("默认");
|
||||
List<String> attrValues = new ArrayList<>();
|
||||
attrValues.add("默认");
|
||||
spattr.setAttrValues(attrValues.toString());
|
||||
productRequest.setSpecType(false);
|
||||
productRequest.setAttr(spaAttes);
|
||||
return productRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置配置数据
|
||||
* @param tag
|
||||
*/
|
||||
public void setConfig(String url, int tag){
|
||||
String rightEndUrl = "&itemid=";
|
||||
switch (tag){ // 导入平台1=淘宝,2=京东,3=苏宁,4=拼多多, 5=天猫
|
||||
case 1:
|
||||
baseUrl = systemConfigService.getValueByKey("importProductTB");
|
||||
rightEndUrl += UrlUtil.getParamsByKey(url, "id");
|
||||
break;
|
||||
case 2:
|
||||
baseUrl = systemConfigService.getValueByKey("importProductJD");
|
||||
rightEndUrl += url.substring(url.lastIndexOf("/")+1).replace(".html","");
|
||||
break;
|
||||
case 3:
|
||||
baseUrl = systemConfigService.getValueByKey("importProductSN");
|
||||
int start = url.indexOf(".com/") + 5;
|
||||
int end = url.indexOf(".html");
|
||||
String sp = url.substring(start,end);
|
||||
String[] shopProduct = sp.split("/");
|
||||
rightEndUrl += shopProduct[1]+"&shopid="+shopProduct[0];
|
||||
break;
|
||||
case 4:
|
||||
rightEndUrl += UrlUtil.getParamsByKey(url, "goods_id");
|
||||
baseUrl = systemConfigService.getValueByKey("importProductPDD");
|
||||
break;
|
||||
case 5:
|
||||
rightEndUrl += UrlUtil.getParamsByKey(url, "id");
|
||||
baseUrl = systemConfigService.getValueByKey("importProductTM");
|
||||
break;
|
||||
}
|
||||
// String token = systemConfigService.getValueByKey("importProductToken");
|
||||
String token = systemConfigService.getValueByKey("copy_product_apikey");
|
||||
if(StringUtils.isBlank(token)){
|
||||
throw new CrmebException("请配置复制产品平台的Token -- www.99api.com");
|
||||
}
|
||||
if(StringUtils.isBlank(baseUrl)){
|
||||
throw new CrmebException("请配置复制产品平台的Url-- www.99api.com");
|
||||
}
|
||||
// rightUrl = "?apikey="+systemConfigService.getValueByKey("importProductToken")+rightEndUrl;
|
||||
rightUrl = "?apikey="+systemConfigService.getValueByKey("copy_product_apikey")+rightEndUrl;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 99api产品复制工具方法
|
||||
* @param rd
|
||||
* @return
|
||||
* @throws IOException
|
||||
*/
|
||||
public static String readAll(Reader rd) throws IOException {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int cp;
|
||||
while ((cp = rd.read()) != -1) {
|
||||
sb.append((char) cp);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据url访问99api后返回对应的平台的产品json数据
|
||||
* @param url
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
*/
|
||||
public static JSONObject getRequestFromUrl(String url) throws IOException, JSONException {
|
||||
URL realUrl = new URL(url);
|
||||
URLConnection conn = realUrl.openConnection();
|
||||
InputStream instream = conn.getInputStream();
|
||||
try {
|
||||
BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));
|
||||
String jsonText = readAll(rd);
|
||||
JSONObject json = new JSONObject(jsonText);
|
||||
return json;
|
||||
} finally {
|
||||
instream.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据商品参加的活动次序查找对应活动明细
|
||||
* @param productId 商品id
|
||||
* @param activity 活动次序
|
||||
* @return 活动结果
|
||||
*/
|
||||
public HashMap<Integer,ProductActivityItemResponse> getActivityByProduct(Integer productId, String activity){
|
||||
HashMap<Integer,ProductActivityItemResponse> result = null;
|
||||
// 根据参与活动配置次序查找对应活动信息
|
||||
if(StringUtils.isBlank(activity)){
|
||||
return result;
|
||||
}
|
||||
result = new HashMap<>();
|
||||
|
||||
List<Integer> activitys = CrmebUtil.stringToArrayInt(activity);
|
||||
for (Integer code : activitys) {
|
||||
if(code == 1){ // 查找秒杀信息
|
||||
List<StoreSeckill> currentSecKills = storeSeckillService.getCurrentSecKillByProductId(productId);
|
||||
if(null != currentSecKills && currentSecKills.size() > 0){
|
||||
// 查询当前秒杀活动时间段配置信息
|
||||
StoreSeckillManger secKillManager = storeSeckillMangerService.getById(currentSecKills.get(0).getTimeId());
|
||||
// 将当前时间段转化成时间戳
|
||||
int secKillEndSecondTimestamp =
|
||||
DateUtil.getSecondTimestamp(DateUtil.nowDateTime("yyyy-MM-dd " + secKillManager.getEndTime() + ":00:00"));
|
||||
ProductActivityItemResponse secKillResponse = new ProductActivityItemResponse();
|
||||
secKillResponse.setId(currentSecKills.get(0).getId());
|
||||
secKillResponse.setTime(secKillEndSecondTimestamp);
|
||||
secKillResponse.setType(Constants.PRODUCT_TYPE_SECKILL+"");
|
||||
result.put(code,secKillResponse);
|
||||
}
|
||||
}
|
||||
if(code == 2){ // 查找砍价信息
|
||||
List<StoreBargain> currentBargains = storeBargainService.getCurrentBargainByProductId(productId);
|
||||
if (CollUtil.isNotEmpty(currentBargains)) {
|
||||
ProductActivityItemResponse bargainResponse = new ProductActivityItemResponse();
|
||||
bargainResponse.setId(currentBargains.get(0).getId());
|
||||
bargainResponse.setTime(DateUtil.getSecondTimestamp(currentBargains.get(0).getStopTime()));
|
||||
bargainResponse.setType(Constants.PRODUCT_TYPE_BARGAIN +"");
|
||||
result.put(code, bargainResponse);
|
||||
}
|
||||
}
|
||||
if(code == 3){ // 查找拼团信息
|
||||
List<StoreCombination> currentCombinations = storeCombinationService.getCurrentBargainByProductId(productId);
|
||||
if (CollUtil.isNotEmpty(currentCombinations)) {
|
||||
ProductActivityItemResponse bargainResponse = new ProductActivityItemResponse();
|
||||
bargainResponse.setId(currentCombinations.get(0).getId());
|
||||
bargainResponse.setTime(DateUtil.getSecondTimestamp(currentCombinations.get(0).getStopTime()));
|
||||
bargainResponse.setType(Constants.PRODUCT_TYPE_PINGTUAN +"");
|
||||
result.put(code, bargainResponse);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品参与的全部活动
|
||||
* @param storeProduct 当前商品
|
||||
* @return 商品所参与的活动
|
||||
*/
|
||||
public List<ProductActivityItemResponse> getProductAllActivity(StoreProduct storeProduct) {
|
||||
HashMap<Integer, ProductActivityItemResponse> currentActivityList
|
||||
= getActivityByProduct(storeProduct.getId(), storeProduct.getActivity());
|
||||
if(StringUtils.isBlank(storeProduct.getActivity())) return new ArrayList<>();
|
||||
List<ProductActivityItemResponse> activityH5 = new ArrayList<>();
|
||||
List<Integer> activityList = CrmebUtil.stringToArrayInt(storeProduct.getActivity());
|
||||
for (Integer code : activityList) {
|
||||
if(null != currentActivityList.get(code)){
|
||||
activityH5.add(currentActivityList.get(code));
|
||||
}
|
||||
}
|
||||
return activityH5;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前商品参与的第一个活动
|
||||
* @param storeProduct 当前商品信息
|
||||
* @return 当前参与的商品活动
|
||||
*/
|
||||
public ProductActivityItemResponse getProductCurrentActivity(StoreProduct storeProduct) {
|
||||
HashMap<Integer, ProductActivityItemResponse> currentActivityList
|
||||
= getActivityByProduct(storeProduct.getId(), storeProduct.getActivity());
|
||||
if(StringUtils.isBlank(storeProduct.getActivity())) return null;
|
||||
List<Integer> activityList = CrmebUtil.stringToArrayInt(storeProduct.getActivity());
|
||||
|
||||
return currentActivityList.get(activityList.get(0));
|
||||
}
|
||||
|
||||
/**
|
||||
* 一号通复制商品转公共商品参数
|
||||
* @param jsonObject 一号通复制商品
|
||||
*
|
||||
*/
|
||||
public static StoreProductRequest onePassCopyTransition(com.alibaba.fastjson.JSONObject jsonObject) {
|
||||
if (null == jsonObject) return null;
|
||||
|
||||
StoreProductRequest productRequest = new StoreProductRequest();
|
||||
StoreProduct product = new StoreProduct();
|
||||
|
||||
product.setStoreName(jsonObject.getString("store_name"));
|
||||
product.setStoreInfo(jsonObject.getString("store_info"));
|
||||
product.setSliderImage(jsonObject.getString("slider_image"));
|
||||
product.setImage(jsonObject.getString("image").replace("[", "").replace("\"", ""));
|
||||
product.setKeyword(jsonObject.getString("store_name"));
|
||||
product.setCost(jsonObject.getBigDecimal("cost"));
|
||||
product.setPrice(jsonObject.getBigDecimal("price"));
|
||||
product.setOtPrice(jsonObject.getBigDecimal("ot_price"));
|
||||
product.setUnitName(jsonObject.getString("unit_name"));
|
||||
BeanUtils.copyProperties(product, productRequest);
|
||||
|
||||
productRequest.setContent(jsonObject.getString("description"));
|
||||
productRequest.setSpecType(true);
|
||||
|
||||
com.alibaba.fastjson.JSONArray props = jsonObject.getJSONArray("items");
|
||||
if (null == props || props.size() < 1) {
|
||||
// 无规格商品
|
||||
productRequest.setSpecType(false);
|
||||
return productRequest;
|
||||
}
|
||||
|
||||
List<StoreProductAttr> spaAttes = new ArrayList<>();
|
||||
for (int i = 0; i < props.size(); i++) {
|
||||
com.alibaba.fastjson.JSONObject pItem = props.getJSONObject(i);
|
||||
StoreProductAttr spattr = new StoreProductAttr();
|
||||
spattr.setAttrName(pItem.getString("value"));
|
||||
com.alibaba.fastjson.JSONArray values = pItem.getJSONArray("detail");
|
||||
List<String> attrValues = new ArrayList<>();
|
||||
for (int j = 0; j < values.size(); j++) {
|
||||
String value = values.getString(j);
|
||||
attrValues.add(value);
|
||||
}
|
||||
spattr.setAttrValues(JSON.toJSONString(attrValues));
|
||||
spaAttes.add(spattr);
|
||||
}
|
||||
productRequest.setAttr(spaAttes);
|
||||
return productRequest;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.article.Article;
|
||||
import com.zbkj.common.model.category.Category;
|
||||
import com.zbkj.common.request.ArticleRequest;
|
||||
import com.zbkj.common.request.ArticleSearchRequest;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.response.ArticleResponse;
|
||||
import com.zbkj.common.vo.ArticleVo;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ArticleService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ArticleService extends IService<Article> {
|
||||
|
||||
/**
|
||||
* 文章列表
|
||||
* @param cid 文章分类id
|
||||
* @param pageParamRequest 分页类参数
|
||||
* @return PageInfo<Article>
|
||||
*/
|
||||
PageInfo<ArticleResponse> getList(String cid, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 获取文章列表
|
||||
* @param request 请求参数
|
||||
* @param pageParamRequest 分页参数
|
||||
* @return PageInfo
|
||||
*/
|
||||
PageInfo<ArticleVo> getAdminList(ArticleSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 文章详情
|
||||
* @param id 文章id
|
||||
* @return ArticleVo
|
||||
*/
|
||||
ArticleResponse getVoByFront(Integer id);
|
||||
|
||||
/**
|
||||
* 获取移动端banner列表
|
||||
* @return List<Article>
|
||||
*/
|
||||
List<Article> getBannerList();
|
||||
|
||||
/**
|
||||
* 获取移动端热门列表
|
||||
* @return List<ArticleResponse>
|
||||
*/
|
||||
List<ArticleResponse> getHotList();
|
||||
|
||||
/**
|
||||
* 获取文章分类列表
|
||||
* @return List<Category>
|
||||
*/
|
||||
List<Category> getCategoryList();
|
||||
|
||||
/**
|
||||
* 文章新增
|
||||
* @param articleRequest 文章新增参数
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean create(ArticleRequest articleRequest);
|
||||
|
||||
/**
|
||||
* 文章删除
|
||||
* @param id 文章id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean deleteById(Integer id);
|
||||
|
||||
/**
|
||||
* 文章修改
|
||||
* @param id 文章id
|
||||
* @param articleRequest 文章修改参数
|
||||
*/
|
||||
Boolean updateArticle(Integer id, ArticleRequest articleRequest);
|
||||
|
||||
/**
|
||||
* 获取文章详情
|
||||
* @param id 文章id
|
||||
* @return Article
|
||||
*/
|
||||
Article getDetail(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
/**
|
||||
* 订单支付回调 service
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface CallbackService {
|
||||
/**
|
||||
* 微信支付回调
|
||||
* @param xmlInfo 微信回调json
|
||||
* @return String
|
||||
*/
|
||||
String weChat(String xmlInfo);
|
||||
|
||||
/**
|
||||
* 微信退款回调
|
||||
* @param request 微信回调json
|
||||
* @return String
|
||||
*/
|
||||
String weChatRefund(String request);
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.model.category.Category;
|
||||
import com.zbkj.common.request.CategoryRequest;
|
||||
import com.zbkj.common.request.CategorySearchRequest;
|
||||
import com.zbkj.common.vo.CategoryTreeVo;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CategoryService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface CategoryService extends IService<Category> {
|
||||
|
||||
List<Category> getList(CategorySearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
int delete(Integer id);
|
||||
|
||||
/**
|
||||
* 获取树形结构数据
|
||||
* @param type 分类
|
||||
* @param status 状态
|
||||
* @param name 名称
|
||||
* @return List
|
||||
*/
|
||||
List<CategoryTreeVo> getListTree(Integer type, Integer status, String name);
|
||||
|
||||
/**
|
||||
* 获取树形结构数据
|
||||
* @param type 分类
|
||||
* @param status 状态
|
||||
* @param categoryIdList 分类idList
|
||||
* @return List
|
||||
*/
|
||||
List<CategoryTreeVo> getListTree(Integer type, Integer status, List<Integer> categoryIdList);
|
||||
|
||||
List<Category> getByIds(List<Integer> ids);
|
||||
|
||||
HashMap<Integer, String> getListInId(List<Integer> cateIdList);
|
||||
|
||||
Boolean checkAuth(List<Integer> pathIdList, String uri);
|
||||
|
||||
boolean update(CategoryRequest request, Integer id);
|
||||
|
||||
List<Category> getChildVoListByPid(Integer pid);
|
||||
|
||||
boolean checkUrl(String uri);
|
||||
|
||||
boolean updateStatus(Integer id);
|
||||
|
||||
/**
|
||||
* 新增分类表
|
||||
*/
|
||||
Boolean create(CategoryRequest categoryRequest);
|
||||
|
||||
/**
|
||||
* 获取文章分类列表
|
||||
* @return List<Category>
|
||||
*/
|
||||
List<Category> findArticleCategoryList();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.vo.CloudVo;
|
||||
import com.qcloud.cos.COSClient;
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* CosService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface CosService {
|
||||
|
||||
void uploadFile(CloudVo cloudVo, String webPth, String localFile, Integer id, COSClient cosClient);
|
||||
|
||||
void uploadFile(CloudVo cloudVo, String webPth, String localFile, File file, COSClient cosClient);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.request.StoreBargainSearchRequest;
|
||||
import com.zbkj.common.request.StoreCombinationSearchRequest;
|
||||
import com.zbkj.common.request.StoreOrderSearchRequest;
|
||||
import com.zbkj.common.request.StoreProductSearchRequest;
|
||||
|
||||
/**
|
||||
* StoreProductService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ExcelService{
|
||||
|
||||
/**
|
||||
* 导出砍价商品
|
||||
* @param request 请求参数
|
||||
* @return 导出地址
|
||||
*/
|
||||
String exportBargainProduct(StoreBargainSearchRequest request);
|
||||
|
||||
/**
|
||||
* 导出拼团商品
|
||||
* @param request 请求参数
|
||||
* @return 导出地址
|
||||
*/
|
||||
String exportCombinationProduct(StoreCombinationSearchRequest request);
|
||||
|
||||
/**
|
||||
* 商品导出
|
||||
* @param request 请求参数
|
||||
* @return 导出地址
|
||||
*/
|
||||
String exportProduct(StoreProductSearchRequest request);
|
||||
|
||||
/**
|
||||
* 订单导出
|
||||
* @param request 查询条件
|
||||
* @return 文件名称
|
||||
*/
|
||||
String exportOrder(StoreOrderSearchRequest request);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.model.express.Express;
|
||||
import com.zbkj.common.request.ExpressSearchRequest;
|
||||
import com.zbkj.common.request.ExpressUpdateRequest;
|
||||
import com.zbkj.common.request.ExpressUpdateShowRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ExpressService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ExpressService extends IService<Express> {
|
||||
|
||||
/**
|
||||
* 列表
|
||||
* @param request 搜索条件
|
||||
* @param pageParamRequest 分页类参数
|
||||
* @return List<Express>
|
||||
*/
|
||||
List<Express> getList(ExpressSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
Boolean updateExpress(ExpressUpdateRequest expressRequest);
|
||||
|
||||
/**
|
||||
* 修改显示状态
|
||||
*/
|
||||
Boolean updateExpressShow(ExpressUpdateShowRequest expressRequest);
|
||||
|
||||
/**
|
||||
* 同步快递公司
|
||||
*/
|
||||
Boolean syncExpress();
|
||||
|
||||
/**
|
||||
* 查询全部快递公司
|
||||
* @param type 类型:normal-普通,elec-电子面单
|
||||
*/
|
||||
List<Express> findAll(String type);
|
||||
|
||||
/**
|
||||
* 查询快递公司面单模板
|
||||
* @param com 快递公司编号
|
||||
*/
|
||||
JSONObject template(String com);
|
||||
|
||||
/**
|
||||
* 查询快递公司
|
||||
* @param code 快递公司编号
|
||||
* @return Express
|
||||
*/
|
||||
Express getByCode(String code);
|
||||
|
||||
/**
|
||||
* 通过物流公司名称获取
|
||||
* @param name 物流公司名称
|
||||
*/
|
||||
Express getByName(String name);
|
||||
|
||||
/**
|
||||
* 获取快递公司详情
|
||||
* @param id 快递公司id
|
||||
*/
|
||||
Express getInfo(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.response.HomeRateResponse;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 首页统计
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface HomeService{
|
||||
|
||||
/**
|
||||
* 用户曲线图
|
||||
*/
|
||||
Map<Object, Object> chartUser();
|
||||
|
||||
/**
|
||||
* 30天订单量趋势
|
||||
*/
|
||||
Map<String, Object> chartOrder();
|
||||
|
||||
/**
|
||||
* 用户购买统计
|
||||
*/
|
||||
Map<String, Integer> chartUserBuy();
|
||||
|
||||
/**
|
||||
* 周订单量趋势
|
||||
*/
|
||||
Map<String, Object> chartOrderInWeek();
|
||||
|
||||
/**
|
||||
* 月订单量趋势
|
||||
*/
|
||||
Map<String, Object> chartOrderInMonth();
|
||||
|
||||
/**
|
||||
* 年订单量趋势
|
||||
*/
|
||||
Map<String, Object> chartOrderInYear();
|
||||
|
||||
/**
|
||||
* 首页数据
|
||||
* @return HomeRateResponse
|
||||
*/
|
||||
HomeRateResponse indexDate();
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
|
||||
import com.zbkj.common.vo.LogisticsResultVo;
|
||||
|
||||
/**
|
||||
* ExpressService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface LogisticService {
|
||||
LogisticsResultVo info(String expressNo, String type, String com, String phone);
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.zbkj.common.request.*;
|
||||
import com.zbkj.common.vo.MyRecord;
|
||||
import com.zbkj.common.vo.OnePassLogisticsQueryVo;
|
||||
|
||||
/**
|
||||
* 一号通 OnePassService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface OnePassService {
|
||||
|
||||
/**
|
||||
* 获取用户验证码
|
||||
* @param phone 手机号
|
||||
*/
|
||||
Object sendUserCode(String phone, Integer types);
|
||||
|
||||
/**
|
||||
* 注册用户
|
||||
* @param registerRequest 注册参数
|
||||
*/
|
||||
String register(OnePassRegisterRequest registerRequest);
|
||||
|
||||
/**
|
||||
* 用户登录
|
||||
* @param request 登录参数
|
||||
*/
|
||||
MyRecord login(OnePassLoginRequest request);
|
||||
|
||||
/**
|
||||
* 判断是否登录
|
||||
*/
|
||||
MyRecord isLogin();
|
||||
|
||||
/**
|
||||
* 一号通用户信息
|
||||
*/
|
||||
JSONObject info();
|
||||
|
||||
/**
|
||||
* 用户注销
|
||||
*/
|
||||
Boolean logOut();
|
||||
|
||||
/**
|
||||
* 修改密码
|
||||
* @param request 修改密码参数
|
||||
*/
|
||||
Boolean updatePassword(OnePassUpdateRequest request);
|
||||
|
||||
/**
|
||||
* 修改手机号
|
||||
* @param request 修改手机参数
|
||||
*/
|
||||
Boolean updatePhone(OnePassUpdateRequest request);
|
||||
|
||||
/**
|
||||
* 套餐列表
|
||||
* @param type 套餐类型:sms,短信;expr_query,物流查询;expr_dump,电子面单;copy,产品复制
|
||||
*/
|
||||
JSONObject mealList(String type);
|
||||
|
||||
/**
|
||||
* 套餐购买
|
||||
* @param request 购买参数
|
||||
*/
|
||||
JSONObject mealCode(MealCodeRequest request);
|
||||
|
||||
/**
|
||||
* 服务开通
|
||||
* @param request 服务开通参数
|
||||
*/
|
||||
Boolean serviceOpen(ServiceOpenRequest request);
|
||||
|
||||
/**
|
||||
* 用量记录
|
||||
* @param request 用量记录查询参数
|
||||
*/
|
||||
JSONObject userRecord(OnePassUserRecordRequest request);
|
||||
|
||||
/**
|
||||
* 复制平台商品
|
||||
* @param url 商品链接
|
||||
*/
|
||||
JSONObject copyGoods(String url);
|
||||
|
||||
/**
|
||||
* 电子面单
|
||||
*/
|
||||
MyRecord expressDump(MyRecord record);
|
||||
|
||||
/**
|
||||
* 物流追踪
|
||||
* @param expressNo 快递单号
|
||||
* @param com 快递公司简写
|
||||
* @return OnePassLogisticsQueryVo
|
||||
*/
|
||||
OnePassLogisticsQueryVo exprQuery(String expressNo, String com);
|
||||
|
||||
/**
|
||||
* 修改手机号——验证账号密码
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean beforeUpdatePhoneValidator(OnePassLoginRequest request);
|
||||
|
||||
/**
|
||||
* 校验一号通账号是否配置
|
||||
*/
|
||||
Boolean checkAccount();
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.model.order.StoreOrder;
|
||||
import com.zbkj.common.request.OrderPayRequest;
|
||||
import com.zbkj.common.response.OrderPayResultResponse;
|
||||
|
||||
/**
|
||||
* 订单支付
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface OrderPayService{
|
||||
|
||||
/**
|
||||
* 支付成功处理
|
||||
* @param storeOrder 订单
|
||||
*/
|
||||
Boolean paySuccess(StoreOrder storeOrder);
|
||||
|
||||
/**
|
||||
* 订单支付
|
||||
* @param orderPayRequest 支付参数
|
||||
* @param ip ip
|
||||
* @return OrderPayResultResponse
|
||||
*/
|
||||
OrderPayResultResponse payment(OrderPayRequest orderPayRequest, String ip);
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.page.CommonPage;
|
||||
import com.zbkj.common.request.*;
|
||||
import com.zbkj.common.response.*;
|
||||
import com.zbkj.common.vo.MyRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* H5端订单操作
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface OrderService {
|
||||
|
||||
/**
|
||||
* 订单列表
|
||||
* @param type 类型
|
||||
* @param pageRequest 分页
|
||||
* @return 订单集合
|
||||
*/
|
||||
CommonPage<OrderDetailResponse> list(Integer type, PageParamRequest pageRequest);
|
||||
|
||||
/**
|
||||
* 订单详情
|
||||
* @param orderId 订单id
|
||||
*/
|
||||
StoreOrderDetailInfoResponse detailOrder(String orderId);
|
||||
|
||||
/**
|
||||
* 订单状态数量
|
||||
* @return 订单状态数据量
|
||||
*/
|
||||
OrderDataResponse orderData();
|
||||
|
||||
/**
|
||||
* 查询退款理由
|
||||
* @return 退款理由集合
|
||||
*/
|
||||
List<String> getRefundReason();
|
||||
|
||||
/**
|
||||
* 订单删除
|
||||
* @param id 订单id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean delete(Integer id);
|
||||
|
||||
/**
|
||||
* 创建订单商品评价
|
||||
* @param request 请求参数
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean reply(StoreProductReplyAddRequest request);
|
||||
|
||||
/**
|
||||
* 订单收货
|
||||
* @param id 订单id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean take(Integer id);
|
||||
|
||||
/**
|
||||
* 订单取消
|
||||
* @param id 订单id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean cancel(Integer id);
|
||||
|
||||
/**
|
||||
* 订单退款申请
|
||||
* @param request 申请参数
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean refundApply(OrderRefundApplyRequest request);
|
||||
|
||||
/**
|
||||
* 订单退款申请Task使用
|
||||
* @param applyList 退款List
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean refundApplyTask(List<OrderRefundApplyRequest> applyList);
|
||||
|
||||
/**
|
||||
* 订单物流查看
|
||||
*/
|
||||
Object expressOrder(String orderId);
|
||||
|
||||
/**
|
||||
* 获取待评价商品信息
|
||||
* @param getProductReply 订单详情参数
|
||||
* @return 待评价
|
||||
*/
|
||||
OrderProductReplyResponse getReplyProduct(GetProductReply getProductReply);
|
||||
|
||||
/**
|
||||
* 获取申请订单退款信息
|
||||
* @param orderId 订单编号
|
||||
* @return ApplyRefundOrderInfoResponse
|
||||
*/
|
||||
ApplyRefundOrderInfoResponse applyRefundOrderInfo(String orderId);
|
||||
|
||||
/**
|
||||
* 订单预下单
|
||||
* @param request 预下单请求参数
|
||||
* @return PreOrderResponse
|
||||
*/
|
||||
MyRecord preOrder(PreOrderRequest request);
|
||||
|
||||
/**
|
||||
* 加载预下单信息
|
||||
* @param preOrderNo 预下单号
|
||||
* @return 预下单信息
|
||||
*/
|
||||
PreOrderResponse loadPreOrder(String preOrderNo);
|
||||
|
||||
/**
|
||||
* 计算订单价格
|
||||
* @param request 计算订单价格请求对象
|
||||
* @return ComputedOrderPriceResponse
|
||||
*/
|
||||
ComputedOrderPriceResponse computedOrderPrice(OrderComputedPriceRequest request);
|
||||
|
||||
/**
|
||||
* 创建订单
|
||||
* @param orderRequest 创建订单请求参数
|
||||
* @return MyRecord 订单编号
|
||||
*/
|
||||
MyRecord createOrder(CreateOrderRequest orderRequest);
|
||||
|
||||
/**
|
||||
* 获取支付配置
|
||||
* @return PreOrderResponse
|
||||
*/
|
||||
PreOrderResponse getPayConfig();
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
|
||||
/**
|
||||
* 订单任务服务 StoreOrderService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface OrderTaskService{
|
||||
|
||||
void cancelByUser();
|
||||
|
||||
void refundApply();
|
||||
|
||||
void complete();
|
||||
|
||||
void orderPaySuccessAfter();
|
||||
|
||||
/**
|
||||
* 自动取消未支付订单
|
||||
*/
|
||||
void autoCancel();
|
||||
|
||||
/**
|
||||
* 订单收货
|
||||
*/
|
||||
void orderReceiving();
|
||||
|
||||
/**
|
||||
* 订单自动完成
|
||||
*/
|
||||
void autoComplete();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
|
||||
import com.zbkj.common.vo.CloudVo;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* OssService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface OssService {
|
||||
|
||||
void upload(CloudVo cloudVo, String webPth, String localFile, File file);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.vo.CloudVo;
|
||||
import com.qiniu.storage.UploadManager;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* QiNiuService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface QiNiuService {
|
||||
void upload(UploadManager uploadManager, CloudVo cloudVo, String upToken, String webPth, String localFile, Integer id);
|
||||
|
||||
void uploadFile(UploadManager uploadManager, CloudVo cloudVo, String upToken, String webPth, String localFile, File file);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.model.finance.UserRecharge;
|
||||
|
||||
/**
|
||||
* 订单支付
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface RechargePayService {
|
||||
|
||||
/**
|
||||
* 支付成功处理
|
||||
* @param userRecharge 充值订单
|
||||
*/
|
||||
Boolean paySuccess(UserRecharge userRecharge);
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.page.CommonPage;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.request.RetailShopRequest;
|
||||
import com.zbkj.common.response.SpreadUserResponse;
|
||||
import com.zbkj.common.model.user.User;
|
||||
|
||||
/**
|
||||
* 分销业务
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface RetailShopService extends IService<User> {
|
||||
|
||||
/**
|
||||
* 分销员列表
|
||||
* @param keywords 搜索参数
|
||||
* @param dateLimit 时间参数
|
||||
* @param pageRequest 分页参数
|
||||
* @return CommonPage
|
||||
*/
|
||||
CommonPage<SpreadUserResponse> getSpreadPeopleList(String keywords, String dateLimit, PageParamRequest pageRequest);
|
||||
|
||||
/**
|
||||
* 获取分销配置
|
||||
* @return 分销配置信息
|
||||
*/
|
||||
RetailShopRequest getManageInfo();
|
||||
|
||||
/**
|
||||
* 保存或者更新分销配置信息
|
||||
* @param retailShopRequest 待保存数据
|
||||
* @return 保存结果
|
||||
*/
|
||||
boolean setManageInfo(RetailShopRequest retailShopRequest);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.express.ShippingTemplatesFree;
|
||||
import com.zbkj.common.request.ShippingTemplatesFreeRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ShippingTemplatesFreeService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ShippingTemplatesFreeService extends IService<ShippingTemplatesFree> {
|
||||
|
||||
void saveAll(List<ShippingTemplatesFreeRequest> shippingTemplatesFreeRequestList, Integer type, Integer id);
|
||||
|
||||
List<ShippingTemplatesFreeRequest> getListGroup(Integer tempId);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param tempId 运费模板id
|
||||
*/
|
||||
Boolean delete(Integer tempId);
|
||||
|
||||
/**
|
||||
* 根据模板编号、城市ID查询
|
||||
* @param tempId 模板编号
|
||||
* @param cityId 城市ID
|
||||
* @return 运费模板
|
||||
*/
|
||||
ShippingTemplatesFree getByTempIdAndCityId(Integer tempId, Integer cityId);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.express.ShippingTemplatesRegion;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.request.ShippingTemplatesRegionRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ShippingTemplatesRegionService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ShippingTemplatesRegionService extends IService<ShippingTemplatesRegion> {
|
||||
|
||||
void saveAll(List<ShippingTemplatesRegionRequest> shippingTemplatesRegionRequestList, Integer type, Integer id);
|
||||
|
||||
List<ShippingTemplatesRegionRequest> getListGroup(Integer tempId);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param tempId 运费模板id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean delete(Integer tempId);
|
||||
|
||||
/**
|
||||
* 根据模板编号、城市ID查询
|
||||
* @param tempId 模板编号
|
||||
* @param cityId 城市ID
|
||||
* @return 运费模板
|
||||
*/
|
||||
ShippingTemplatesRegion getByTempIdAndCityId(Integer tempId, Integer cityId);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.model.express.ShippingTemplates;
|
||||
import com.zbkj.common.request.ShippingTemplatesRequest;
|
||||
import com.zbkj.common.request.ShippingTemplatesSearchRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ShippingTemplatesService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface ShippingTemplatesService extends IService<ShippingTemplates> {
|
||||
|
||||
List<ShippingTemplates> getList(ShippingTemplatesSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 新增运费模板
|
||||
* @param request 请求参数
|
||||
* @return 新增结果
|
||||
*/
|
||||
Boolean create(ShippingTemplatesRequest request);
|
||||
|
||||
Boolean update(Integer id, ShippingTemplatesRequest request);
|
||||
|
||||
/**
|
||||
* 删除模板
|
||||
* @param id 模板id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean remove(Integer id);
|
||||
|
||||
/**
|
||||
* 获取模板信息
|
||||
* @param id 模板id
|
||||
* @return ShippingTemplates
|
||||
*/
|
||||
ShippingTemplates getInfo(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.sms.SmsRecord;
|
||||
|
||||
/**
|
||||
* SmsRecordService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SmsRecordService extends IService<SmsRecord> {
|
||||
|
||||
/**
|
||||
* 保存短信记录
|
||||
* @param smsRecord 待保存短信记录
|
||||
* @return 保存结果
|
||||
*/
|
||||
boolean save(SmsRecord smsRecord);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.zbkj.common.request.SmsApplyTempRequest;
|
||||
import com.zbkj.common.request.SmsModifySignRequest;
|
||||
import com.zbkj.common.vo.MyRecord;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* SmsService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SmsService {
|
||||
|
||||
/**
|
||||
* 修改签名
|
||||
*/
|
||||
Boolean modifySign(SmsModifySignRequest request);
|
||||
|
||||
/**
|
||||
* 短信模板
|
||||
*/
|
||||
MyRecord temps(PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 申请模板消息
|
||||
*/
|
||||
Boolean applyTempMessage(SmsApplyTempRequest request);
|
||||
|
||||
/**
|
||||
* 模板申请记录
|
||||
*
|
||||
* @param type (1=验证码 2=通知 3=推广)
|
||||
*/
|
||||
MyRecord applys(Integer type, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 发送公共验证码
|
||||
*
|
||||
* @param phone 手机号
|
||||
*/
|
||||
Boolean sendCommonCode(String phone);
|
||||
|
||||
/**
|
||||
* 发送支付成功短信
|
||||
* @param phone 手机号
|
||||
* @param orderNo 订单编号
|
||||
* @param payPrice 支付金额
|
||||
* @param msgTempId 短信模板id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean sendPaySuccess(String phone, String orderNo, BigDecimal payPrice, Integer msgTempId);
|
||||
|
||||
/**
|
||||
* 发送管理员下单短信提醒短信
|
||||
* @param phone 手机号
|
||||
* @param orderNo 订单编号
|
||||
* @param realName 管理员名称
|
||||
* @param msgTempId 短信模板id
|
||||
*/
|
||||
Boolean sendCreateOrderNotice(String phone, String orderNo, String realName, Integer msgTempId);
|
||||
|
||||
/**
|
||||
* 发送订单支付成功管理员提醒短信
|
||||
* @param phone 手机号
|
||||
* @param orderNo 订单编号
|
||||
* @param realName 管理员名称
|
||||
* @param msgTempId 短信模板id
|
||||
*/
|
||||
Boolean sendOrderPaySuccessNotice(String phone, String orderNo, String realName, Integer msgTempId);
|
||||
|
||||
/**
|
||||
* 发送用户退款管理员提醒短信
|
||||
* @param phone 手机号
|
||||
* @param orderNo 订单编号
|
||||
* @param realName 管理员名称
|
||||
* @param msgTempId 短信模板id
|
||||
*/
|
||||
Boolean sendOrderRefundApplyNotice(String phone, String orderNo, String realName, Integer msgTempId);
|
||||
|
||||
/**
|
||||
* 发送用户确认收货管理员提醒短信
|
||||
* @param phone 手机号
|
||||
* @param orderNo 订单编号
|
||||
* @param realName 管理员名称
|
||||
* @param msgTempId 短信模板id
|
||||
*/
|
||||
Boolean sendOrderReceiptNotice(String phone, String orderNo, String realName, Integer msgTempId);
|
||||
|
||||
/**
|
||||
* 发送订单改价提醒短信
|
||||
* @param phone 手机号
|
||||
* @param orderNo 订单编号
|
||||
* @param price 修改后的支付金额
|
||||
* @param msgTempId 短信模板id
|
||||
*/
|
||||
Boolean sendOrderEditPriceNotice(String phone, String orderNo, BigDecimal price, Integer msgTempId);
|
||||
|
||||
/**
|
||||
* 发送订单发货提醒短信
|
||||
* @param phone 手机号
|
||||
* @param nickName 用户昵称
|
||||
* @param storeName 商品名称
|
||||
* @param orderNo 订单编号
|
||||
* @param msgTempId 短信模板id
|
||||
*/
|
||||
Boolean sendOrderDeliverNotice(String phone, String nickName, String storeName, String orderNo, Integer msgTempId);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.sms.SmsTemplate;
|
||||
|
||||
/**
|
||||
* SmsTemplateService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface SmsTemplateService extends IService<SmsTemplate> {
|
||||
|
||||
/**
|
||||
* 获取详情
|
||||
* @param id 模板id
|
||||
* @return SmsTemplate
|
||||
*/
|
||||
SmsTemplate getDetail(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.BargainFrontRequest;
|
||||
import com.zbkj.common.response.*;
|
||||
import com.zbkj.common.vo.MyRecord;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zbkj.common.model.bargain.StoreBargain;
|
||||
import com.zbkj.common.request.StoreBargainRequest;
|
||||
import com.zbkj.common.request.StoreBargainSearchRequest;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 砍价 Service
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreBargainService extends IService<StoreBargain> {
|
||||
|
||||
/**
|
||||
* 分页显示砍价商品列表
|
||||
*/
|
||||
PageInfo<StoreBargainResponse> getList(StoreBargainSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 新增砍价商品
|
||||
*/
|
||||
boolean saveBargain(StoreBargainRequest storeBargainRequest);
|
||||
|
||||
/**
|
||||
* 删除砍价商品
|
||||
*/
|
||||
boolean deleteById(Integer id);
|
||||
|
||||
/**
|
||||
* 修改砍价商品
|
||||
*/
|
||||
boolean updateBargain(StoreBargainRequest storeBargainRequest);
|
||||
|
||||
/**
|
||||
* 修改砍价商品状态
|
||||
*/
|
||||
boolean updateBargainStatus(Integer id, boolean status);
|
||||
|
||||
/**
|
||||
* 查询砍价商品详情
|
||||
*/
|
||||
StoreProductInfoResponse getAdminDetail(Integer id);
|
||||
|
||||
/**
|
||||
* H5 砍价商品列表
|
||||
* @return PageInfo<StoreBargainDetailResponse>
|
||||
*/
|
||||
PageInfo<StoreBargainDetailResponse> getH5List(PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* H5 获取砍价商品详情信息
|
||||
* @return BargainDetailResponse
|
||||
*/
|
||||
BargainDetailH5Response getH5Detail(Integer id);
|
||||
|
||||
/**
|
||||
* 获取当前时间的砍价商品
|
||||
* @return List<StoreBargain>
|
||||
*/
|
||||
List<StoreBargain> getCurrentBargainByProductId(Integer productId);
|
||||
|
||||
/**
|
||||
* 创建砍价活动
|
||||
* @return MyRecord
|
||||
*/
|
||||
MyRecord start(BargainFrontRequest bargainFrontRequest);
|
||||
|
||||
/**
|
||||
* 后台任务批量操作库存
|
||||
*/
|
||||
void consumeProductStock();
|
||||
|
||||
/**
|
||||
* 砍价活动结束后处理
|
||||
*/
|
||||
void stopAfterChange();
|
||||
|
||||
/**
|
||||
* 商品是否存在砍价活动
|
||||
* @param productId 商品编号
|
||||
*/
|
||||
Boolean isExistActivity(Integer productId);
|
||||
|
||||
/**
|
||||
* 查询带异常
|
||||
* @param id 砍价商品id
|
||||
* @return StoreBargain
|
||||
*/
|
||||
StoreBargain getByIdException(Integer id);
|
||||
|
||||
/**
|
||||
* 添加/扣减库存
|
||||
* @param id 秒杀商品id
|
||||
* @param num 数量
|
||||
* @param type 类型:add—添加,sub—扣减
|
||||
*/
|
||||
Boolean operationStock(Integer id, Integer num, String type);
|
||||
|
||||
/**
|
||||
* 砍价首页信息
|
||||
* @return BargainIndexResponse
|
||||
*/
|
||||
BargainIndexResponse getIndexInfo();
|
||||
|
||||
/**
|
||||
* 获取砍价列表header
|
||||
* @return BargainHeaderResponse
|
||||
*/
|
||||
BargainHeaderResponse getHeader();
|
||||
|
||||
/**
|
||||
* 根据id数组获取砍价商品map
|
||||
* @param bargainIdList 砍价商品id数组
|
||||
* @return HashMap<Integer, StoreBargain>
|
||||
*/
|
||||
HashMap<Integer, StoreBargain> getMapInId(List<Integer> bargainIdList);
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.bargain.StoreBargainUserHelp;
|
||||
import com.zbkj.common.request.BargainFrontRequest;
|
||||
import com.zbkj.common.response.StoreBargainUserHelpResponse;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 用户帮助砍价 Service
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreBargainUserHelpService extends IService<StoreBargainUserHelp> {
|
||||
|
||||
/**
|
||||
* 列表
|
||||
* @param bargainUserId 砍价活动id
|
||||
* @return List<StoreBargainUserHelpResponse>
|
||||
*/
|
||||
List<StoreBargainUserHelpResponse> getList(Integer bargainUserId);
|
||||
|
||||
/**
|
||||
* 获取帮忙砍价好友数量
|
||||
* @param bargainId 砍价商品Id
|
||||
* @return Long
|
||||
*/
|
||||
Long getHelpCountByBargainId(Integer bargainId);
|
||||
|
||||
/**
|
||||
* 获取帮忙砍价好友数量
|
||||
* @param bargainId 砍价商品Id
|
||||
* @param bargainUid 砍价用户uid
|
||||
* @return Long
|
||||
*/
|
||||
Long getHelpCountByBargainIdAndBargainUid(Integer bargainId, Integer bargainUid);
|
||||
|
||||
/**
|
||||
* 砍价
|
||||
* @param bargainFrontRequest 砍价请求参数
|
||||
* @return Map<String, Object>
|
||||
*/
|
||||
Map<String, Object> help(BargainFrontRequest bargainFrontRequest);
|
||||
|
||||
/**
|
||||
* 获取参与砍价总人数(次)
|
||||
* @return Integer
|
||||
*/
|
||||
Integer getCount();
|
||||
|
||||
/**
|
||||
* 获取好友助力列表
|
||||
* @param bargainUserId 砍价用户表id
|
||||
* @return List<StoreBargainUserHelp>
|
||||
*/
|
||||
List<StoreBargainUserHelp> getHelpListByBargainUserId(Integer bargainUserId);
|
||||
|
||||
/**
|
||||
* 是否帮砍过
|
||||
* @param bargainUserId 用户砍价活动id
|
||||
* @param uid 用户uid
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean getIsHelp(Integer bargainUserId, Integer uid);
|
||||
|
||||
/**
|
||||
* 获取该砍价商品用户的帮砍次数
|
||||
* @param bargainId 砍价商品id
|
||||
* @param uid 用户uid
|
||||
* @param bargainUserIdList 用户参与砍价活动id数组
|
||||
* @return Integer
|
||||
*/
|
||||
Integer getHelpCountByBargainIdAndUidInBUserId(Integer bargainId, Integer uid, List<Integer> bargainUserIdList);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.BargainFrontRequest;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.response.BargainRecordResponse;
|
||||
import com.zbkj.common.response.BargainUserInfoResponse;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zbkj.common.model.bargain.StoreBargainUser;
|
||||
import com.zbkj.common.request.StoreBargainUserSearchRequest;
|
||||
import com.zbkj.common.response.StoreBargainUserResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户参与砍价 Service
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreBargainUserService extends IService<StoreBargainUser> {
|
||||
|
||||
PageInfo<StoreBargainUserResponse> getList(StoreBargainUserSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 获取砍价商品参与用户列表
|
||||
* @param bargainId 砍价商品Id
|
||||
* @return List<StoreBargainUser>
|
||||
*/
|
||||
List<StoreBargainUser> getListByBargainId(Integer bargainId);
|
||||
|
||||
/**
|
||||
* 获取用户砍价活动列表
|
||||
* @param bargainId 砍价商品编号
|
||||
* @param uid 参与用户uid
|
||||
* @return StoreBargainUser
|
||||
*/
|
||||
List<StoreBargainUser> getListByBargainIdAndUid(Integer bargainId, Integer uid);
|
||||
|
||||
/**
|
||||
* 砍价商品用户根据实体查询
|
||||
* @param bargainUser 砍价活动
|
||||
* @return List<StoreBargainUser>
|
||||
*/
|
||||
List<StoreBargainUser> getByEntity(StoreBargainUser bargainUser);
|
||||
|
||||
/**
|
||||
* 获取砍价成功列表Header
|
||||
*/
|
||||
List<StoreBargainUser> getHeaderList();
|
||||
|
||||
/**
|
||||
* 获取用户砍价信息
|
||||
* @param bargainFrontRequest 请求参数
|
||||
* @return BargainUserInfoResponse
|
||||
*/
|
||||
BargainUserInfoResponse getBargainUserInfo(BargainFrontRequest bargainFrontRequest);
|
||||
|
||||
/**
|
||||
* 砍价记录
|
||||
* @return PageInfo<BargainRecordResponse>
|
||||
*/
|
||||
PageInfo<BargainRecordResponse> getRecordList(PageParamRequest pageParamRequest);
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.CartNumRequest;
|
||||
import com.zbkj.common.request.CartRequest;
|
||||
import com.zbkj.common.request.CartResetRequest;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.response.CartInfoResponse;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zbkj.common.model.cat.StoreCart;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* StoreCartService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCartService extends IService<StoreCart> {
|
||||
|
||||
/**
|
||||
* 根据有效标识符获取出数据
|
||||
* @param pageParamRequest 分页参数
|
||||
* @param isValid 是否失效
|
||||
* @return 购物车列表
|
||||
*/
|
||||
PageInfo<CartInfoResponse> getList(PageParamRequest pageParamRequest, boolean isValid);
|
||||
|
||||
/**
|
||||
* 获取当前购物车数量
|
||||
* @param request 请求参数
|
||||
* @return 数量
|
||||
*/
|
||||
Map<String, Integer> getUserCount(CartNumRequest request);
|
||||
|
||||
/**
|
||||
* 新增购物车数据
|
||||
* @param storeCartRequest 新增购物车参数
|
||||
* @return 新增结果
|
||||
*/
|
||||
String saveCate(CartRequest storeCartRequest);
|
||||
|
||||
/**
|
||||
* 删除购物车
|
||||
* @param ids 待删除id
|
||||
* @return 返回删除状态
|
||||
*/
|
||||
Boolean deleteCartByIds(List<Long> ids);
|
||||
|
||||
|
||||
/**
|
||||
* 检测商品是否有效 更新购物车商品状态
|
||||
* @param productId 商品id
|
||||
* @return 跟新结果
|
||||
*/
|
||||
Boolean productStatusNotEnable(Integer productId);
|
||||
|
||||
/**
|
||||
* 购物车重选提交
|
||||
* @param resetRequest 重选数据
|
||||
* @return 提交结果
|
||||
*/
|
||||
Boolean resetCart(CartResetRequest resetRequest);
|
||||
|
||||
/**
|
||||
* 对应sku购物车生效
|
||||
* @param skuIdList skuIdList
|
||||
*/
|
||||
Boolean productStatusNoEnable(List<Integer> skuIdList);
|
||||
|
||||
/**
|
||||
* 删除商品对应的购物车
|
||||
* @param productId 商品id
|
||||
*/
|
||||
Boolean productDelete(Integer productId);
|
||||
|
||||
/**
|
||||
* 通过id和uid获取购物车信息
|
||||
* @param id 购物车id
|
||||
* @param uid 用户uid
|
||||
* @return StoreCart
|
||||
*/
|
||||
StoreCart getByIdAndUid(Long id, Integer uid);
|
||||
|
||||
/**
|
||||
* 获取购物车商品数量(不区分规格)
|
||||
* @param uid 用户uid
|
||||
* @param proId 商品id
|
||||
*/
|
||||
Integer getProductNumByUidAndProductId(Integer uid, Integer proId);
|
||||
|
||||
/**
|
||||
* 修改购物车商品数量
|
||||
* @param id 购物车id
|
||||
* @param number 数量
|
||||
*/
|
||||
Boolean updateCartNum(Integer id, Integer number);
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zbkj.common.model.combination.StoreCombination;
|
||||
import com.zbkj.common.request.StoreCombinationRequest;
|
||||
import com.zbkj.common.request.StoreCombinationSearchRequest;
|
||||
import com.zbkj.common.request.StorePinkRequest;
|
||||
import com.zbkj.common.response.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* StorePinkService
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCombinationService extends IService<StoreCombination> {
|
||||
|
||||
/**
|
||||
* 分页显示拼团商品表
|
||||
* @param request 搜索条件
|
||||
* @param pageParamRequest 分页参数
|
||||
*/
|
||||
PageInfo<StoreCombinationResponse> getList(StoreCombinationSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 新增拼团商品
|
||||
*/
|
||||
Boolean saveCombination(StoreCombinationRequest request);
|
||||
|
||||
/**
|
||||
* 删除拼团商品
|
||||
*/
|
||||
Boolean deleteById(Integer id);
|
||||
|
||||
/**
|
||||
* 编辑拼团商品
|
||||
*/
|
||||
Boolean updateCombination(StoreCombinationRequest request);
|
||||
|
||||
/**
|
||||
* 查询拼团商品详情
|
||||
* @return StoreProductInfoResponse
|
||||
*/
|
||||
StoreProductInfoResponse getAdminDetail(Integer id);
|
||||
|
||||
/**
|
||||
* 修改拼团商品状态
|
||||
*/
|
||||
Boolean updateCombinationShow(Integer id, Boolean isShow);
|
||||
|
||||
/**
|
||||
* admin拼团统计
|
||||
*/
|
||||
Map<String, Object> getAdminStatistics();
|
||||
|
||||
/**
|
||||
* H5拼团商品列表
|
||||
*/
|
||||
List<StoreCombinationH5Response> getH5List(PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* H5拼团商品详情
|
||||
* @param id 拼团商品编号
|
||||
*/
|
||||
CombinationDetailResponse getH5Detail(Integer id);
|
||||
|
||||
/**
|
||||
* 去拼团
|
||||
* @param pinkId 拼团团长单ID
|
||||
*/
|
||||
GoPinkResponse goPink(Integer pinkId);
|
||||
|
||||
/**
|
||||
* 更多拼团信息
|
||||
*/
|
||||
PageInfo<StoreCombination> getMore(PageParamRequest pageParamRequest, Integer comId);
|
||||
|
||||
/**
|
||||
* 取消拼团
|
||||
*/
|
||||
Boolean removePink(StorePinkRequest storePinkRequest);
|
||||
|
||||
/**
|
||||
* 后台任务批量操作库存
|
||||
*/
|
||||
void consumeProductStock();
|
||||
|
||||
/**
|
||||
* 获取当前时间的拼团商品
|
||||
*/
|
||||
List<StoreCombination> getCurrentBargainByProductId(Integer productId);
|
||||
|
||||
/**
|
||||
* 商品是否存在拼团活动
|
||||
* @param productId 商品编号
|
||||
*/
|
||||
Boolean isExistActivity(Integer productId);
|
||||
|
||||
/**
|
||||
* 查询带异常
|
||||
* @param combinationId 拼团商品id
|
||||
* @return StoreCombination
|
||||
*/
|
||||
StoreCombination getByIdException(Integer combinationId);
|
||||
|
||||
/**
|
||||
* 添加/扣减库存
|
||||
* @param id 秒杀商品id
|
||||
* @param num 数量
|
||||
* @param type 类型:add—添加,sub—扣减
|
||||
*/
|
||||
Boolean operationStock(Integer id, Integer num, String type);
|
||||
|
||||
/**
|
||||
* 拼团首页数据
|
||||
* @return CombinationIndexResponse
|
||||
*/
|
||||
CombinationIndexResponse getIndexInfo();
|
||||
|
||||
/**
|
||||
* 拼团列表header
|
||||
* @return CombinationHeaderResponse
|
||||
*/
|
||||
CombinationHeaderResponse getHeader();
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.zbkj.common.request.SearchAndPageRequest;
|
||||
import com.zbkj.common.model.coupon.StoreCoupon;
|
||||
import com.zbkj.common.request.StoreCouponRequest;
|
||||
import com.zbkj.common.request.StoreCouponSearchRequest;
|
||||
import com.zbkj.common.response.StoreCouponFrontResponse;
|
||||
import com.zbkj.common.response.StoreCouponInfoResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* StoreCouponService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCouponService extends IService<StoreCoupon> {
|
||||
|
||||
List<StoreCoupon> getList(StoreCouponSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
boolean create(StoreCouponRequest request);
|
||||
|
||||
StoreCoupon getInfoException(Integer id);
|
||||
|
||||
StoreCouponInfoResponse info(Integer id);
|
||||
|
||||
/**
|
||||
* 根据优惠券id获取
|
||||
* @param ids 优惠券id集合
|
||||
* @return 优惠券列表
|
||||
*/
|
||||
List<StoreCoupon> getByIds(List<Integer> ids);
|
||||
|
||||
/**
|
||||
* 扣减数量
|
||||
* @param id 优惠券id
|
||||
* @param num 数量
|
||||
* @param isLimited 是否限量
|
||||
*/
|
||||
Boolean deduction(Integer id, Integer num, Boolean isLimited);
|
||||
|
||||
/**
|
||||
* 获取用户注册赠送新人券
|
||||
* @return 优惠券列表
|
||||
*/
|
||||
List<StoreCoupon> findRegisterList();
|
||||
|
||||
/**
|
||||
* 发送优惠券列表
|
||||
* @param searchAndPageRequest 搜索分页参数
|
||||
* @return 优惠券列表
|
||||
*/
|
||||
List<StoreCoupon> getSendList(SearchAndPageRequest searchAndPageRequest);
|
||||
|
||||
/**
|
||||
* 删除优惠券
|
||||
* @param id 优惠券id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean delete(Integer id);
|
||||
|
||||
/**
|
||||
* 移动端优惠券列表
|
||||
* @param type 类型,1-通用,2-商品,3-品类
|
||||
* @param productId 产品id,搜索产品指定优惠券
|
||||
* @param pageParamRequest 分页参数
|
||||
* @return List<StoreCouponFrontResponse>
|
||||
*/
|
||||
List<StoreCouponFrontResponse> getH5List(Integer type, Integer productId, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 修改优惠券状态
|
||||
* @param id 优惠券id
|
||||
* @param status 状态
|
||||
*/
|
||||
Boolean updateStatus(Integer id, Boolean status);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.page.CommonPage;
|
||||
import com.zbkj.common.request.UserCouponReceiveRequest;
|
||||
import com.zbkj.common.vo.MyRecord;
|
||||
import com.zbkj.common.request.PageParamRequest;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zbkj.common.model.coupon.StoreCouponUser;
|
||||
import com.zbkj.common.request.StoreCouponUserRequest;
|
||||
import com.zbkj.common.request.StoreCouponUserSearchRequest;
|
||||
import com.zbkj.common.response.StoreCouponUserOrder;
|
||||
import com.zbkj.common.response.StoreCouponUserResponse;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* StoreCouponUserService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreCouponUserService extends IService<StoreCouponUser> {
|
||||
|
||||
/**
|
||||
* 优惠券发放记录
|
||||
* @param request 查询参数
|
||||
* @param pageParamRequest 分页参数
|
||||
* @return PageInfo
|
||||
*/
|
||||
PageInfo<StoreCouponUserResponse> getList(StoreCouponUserSearchRequest request, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* PC领取优惠券
|
||||
* @param storeCouponUserRequest 优惠券参数
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean receive(StoreCouponUserRequest storeCouponUserRequest);
|
||||
|
||||
HashMap<Integer, StoreCouponUser> getMapByUserId(Integer userId);
|
||||
|
||||
/**
|
||||
* 根据购物车id获取可用优惠券
|
||||
* @param preOrderNo 预下单订单号
|
||||
* @return 可用优惠券集合
|
||||
*/
|
||||
List<StoreCouponUserOrder> getListByPreOrderNo(String preOrderNo);
|
||||
|
||||
/**
|
||||
* 优惠券过期定时任务
|
||||
*/
|
||||
void overdueTask();
|
||||
|
||||
/**
|
||||
* 用户领取优惠券
|
||||
*/
|
||||
Boolean receiveCoupon(UserCouponReceiveRequest request);
|
||||
|
||||
/**
|
||||
* 支付成功赠送处理
|
||||
* @param couponId 优惠券编号
|
||||
* @param uid 用户uid
|
||||
* @return MyRecord
|
||||
*/
|
||||
MyRecord paySuccessGiveAway(Integer couponId, Integer uid);
|
||||
|
||||
/**
|
||||
* 根据uid获取列表
|
||||
* @param uid uid
|
||||
* @param pageParamRequest 分页参数
|
||||
* @return List<StoreCouponUser>
|
||||
*/
|
||||
List<StoreCouponUser> findListByUid(Integer uid, PageParamRequest pageParamRequest);
|
||||
|
||||
/**
|
||||
* 获取可用优惠券数量
|
||||
* @param uid 用户uid
|
||||
*/
|
||||
Integer getUseCount(Integer uid);
|
||||
|
||||
/**
|
||||
* 我的优惠券列表
|
||||
* @param type 类型,usable-可用,unusable-不可用
|
||||
* @param pageParamRequest 分页参数
|
||||
* @return CommonPage<StoreCouponUserResponse>
|
||||
*/
|
||||
CommonPage<StoreCouponUserResponse> getMyCouponList(String type, PageParamRequest pageParamRequest);
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.order.StoreOrderInfo;
|
||||
import com.zbkj.common.vo.StoreOrderInfoOldVo;
|
||||
import com.zbkj.common.vo.StoreOrderInfoVo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* StoreOrderInfoService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreOrderInfoService extends IService<StoreOrderInfo> {
|
||||
|
||||
HashMap<Integer, List<StoreOrderInfoOldVo>> getMapInId(List<Integer> orderIdList);
|
||||
|
||||
List<StoreOrderInfoOldVo> getOrderListByOrderId(Integer orderId);
|
||||
|
||||
/**
|
||||
* 批量添加订单详情
|
||||
* @param storeOrderInfos 订单详情集合
|
||||
* @return 保存结果
|
||||
*/
|
||||
boolean saveOrderInfos(List<StoreOrderInfo> storeOrderInfos);
|
||||
|
||||
/**
|
||||
* 通过订单编号和规格号查询
|
||||
* @param uni 规格号
|
||||
* @param orderId 订单编号
|
||||
* @return StoreOrderInfo
|
||||
*/
|
||||
StoreOrderInfo getByUniAndOrderId(String uni, Integer orderId);
|
||||
|
||||
/**
|
||||
* 获取订单详情vo列表
|
||||
* @param orderId 订单id
|
||||
* @return List<StoreOrderInfoVo>
|
||||
*/
|
||||
List<StoreOrderInfoVo> getVoListByOrderId(Integer orderId);
|
||||
|
||||
/**
|
||||
* 获取订单详情-订单编号
|
||||
* @param orderNo 订单编号
|
||||
* @return List
|
||||
*/
|
||||
List<StoreOrderInfo> getListByOrderNo(String orderNo);
|
||||
|
||||
/**
|
||||
* 根据时间、商品id获取销售件数
|
||||
* @param date 时间,格式'yyyy-MM-dd'
|
||||
* @param proId 商品id
|
||||
* @return Integer
|
||||
*/
|
||||
Integer getSalesNumByDateAndProductId(String date, Integer proId);
|
||||
|
||||
/**
|
||||
* 根据时间、商品id获取销售额
|
||||
* @param date 时间,格式'yyyy-MM-dd'
|
||||
* @param proId 商品id
|
||||
* @return BigDecimal
|
||||
*/
|
||||
BigDecimal getSalesByDateAndProductId(String date, Integer proId);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.zbkj.service.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zbkj.common.model.order.StoreOrder;
|
||||
import com.zbkj.common.request.StoreOrderRefundRequest;
|
||||
|
||||
|
||||
/**
|
||||
* StoreOrderRefundService 接口
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
public interface StoreOrderRefundService extends IService<StoreOrder> {
|
||||
|
||||
void refund(StoreOrderRefundRequest request, StoreOrder storeOrder);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user