mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:23:26 +08:00
添加项目文件。
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using CoreCms.Net.Model.Entities;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品图片关联表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillAftersalesImagesServices : IBaseServices<CoreCmsBillAftersalesImages>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using CoreCms.Net.Model.Entities;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 售后单明细表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillAftersalesItemServices : IBaseServices<CoreCmsBillAftersalesItem>
|
||||
{
|
||||
}
|
||||
}
|
||||
104
CoreCms.Net.IServices/Bill/ICoreCmsBillAftersalesServices.cs
Normal file
104
CoreCms.Net.IServices/Bill/ICoreCmsBillAftersalesServices.cs
Normal file
@@ -0,0 +1,104 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
using CoreCms.Net.Model.ViewModels.Basics;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SqlSugar;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 退货单表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillAftersalesServices : IBaseServices<CoreCmsBillAftersales>
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据订单号查询已经售后的内容
|
||||
/// </summary>
|
||||
/// <param name="orderId">订单编号</param>
|
||||
/// <param name="aftersaleLevel">取售后单的时候,售后单的等级,0:待审核的和审核通过的售后单,1未审核的,2审核通过的</param>
|
||||
/// <returns></returns>
|
||||
WebApiCallBack OrderToAftersales(string orderId, int aftersaleLevel = 0);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 统计用户的售后数量
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="status"></param>
|
||||
/// <returns></returns>
|
||||
Task<int> GetUserAfterSalesNum(int userId, int status);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建售后单
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="orderId">发起售后的订单</param>
|
||||
/// <param name="type">是否收到退货,1未收到退货,不会创建退货单,2收到退货,会创建退货单,只有未发货的商品才能选择未收到货,只有已发货的才能选择已收到货</param>
|
||||
/// <param name="items">如果是退款退货,退货的明细 以 [[order_item_id=>nums]]的二维数组形式传值</param>
|
||||
/// <param name="images"></param>
|
||||
/// <param name="reason">售后理由</param>
|
||||
/// <param name="refund">退款金额,只在退款退货的时候用,如果是退款,直接就是订单金额</param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> ToAdd(int userId, string orderId, int type, JArray items, string[] images, string reason,
|
||||
decimal refund);
|
||||
|
||||
/// <summary>
|
||||
/// 根据条件查询分页数据
|
||||
/// </summary>
|
||||
/// <param name="predicate">判断集合</param>
|
||||
/// <param name="orderByType">排序方式</param>
|
||||
/// <param name="pageIndex">当前页面索引</param>
|
||||
/// <param name="pageSize">分布大小</param>
|
||||
/// <param name="orderByExpression"></param>
|
||||
/// <returns></returns>
|
||||
Task<IPageList<CoreCmsBillAftersales>> QueryPageAsync(Expression<Func<CoreCmsBillAftersales, bool>> predicate,
|
||||
Expression<Func<CoreCmsBillAftersales, object>> orderByExpression, OrderByType orderByType,
|
||||
int pageIndex = 1,
|
||||
int pageSize = 20);
|
||||
|
||||
/// <summary>
|
||||
/// 获取单个数据
|
||||
/// </summary>
|
||||
/// <param name="reshipId"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
Task<CoreCmsBillAftersales> GetInfo(string aftersalesId, int userId);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 后端进行审核的时候,前置操作,1取出页面的数据,2在提交过来的表单的时候,进行校验
|
||||
/// </summary>
|
||||
/// <param name="aftersalesId"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> PreAudit(string aftersalesId);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Audit平台审核通过或者审核不通过
|
||||
/// 如果审核通过了,是退款单的话,自动生成退款单,并做订单完成状态,如果是退货的话,自动生成退款单和退货单,如果
|
||||
/// </summary>
|
||||
/// <param name="aftersalesId"></param>
|
||||
/// <param name="status"></param>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="refund"></param>
|
||||
/// <param name="mark"></param>
|
||||
/// <param name="items"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> Audit(string aftersalesId, int status, int type, decimal refund, string mark,
|
||||
JArray items);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using CoreCms.Net.Model.Entities;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 发货单详情表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillDeliveryItemServices : IBaseServices<CoreCmsBillDeliveryItem>
|
||||
{
|
||||
}
|
||||
}
|
||||
79
CoreCms.Net.IServices/Bill/ICoreCmsBillDeliveryServices.cs
Normal file
79
CoreCms.Net.IServices/Bill/ICoreCmsBillDeliveryServices.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 发货单表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillDeliveryServices : IBaseServices<CoreCmsBillDelivery>
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 批量发货,可以支持多个订单合并发货,单个订单拆分发货等。
|
||||
/// </summary>
|
||||
/// <param name="orderId">英文逗号分隔的订单号</param>
|
||||
/// <param name="logiCode">物流公司编码</param>
|
||||
/// <param name="logiNo">物流单号</param>
|
||||
/// <param name="items">发货明细</param>
|
||||
/// <param name="storeId">店铺收货地址</param>
|
||||
/// <param name="shipName">收货人姓名</param>
|
||||
/// <param name="shipMobile">收货人电话</param>
|
||||
/// <param name="shipAreaId">省市区id</param>
|
||||
/// <param name="shipAddress">收货地址</param>
|
||||
/// <param name="memo">发货描述</param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> BatchShip(string[] orderId, string logiCode, string logiNo, Dictionary<int, int> items,
|
||||
int storeId = 0, string shipName = "", string shipMobile = "", int shipAreaId = 0, string shipAddress = "",
|
||||
string memo = "");
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 发货,单个订单发货
|
||||
/// </summary>
|
||||
/// <param name="orderId">英文逗号分隔的订单号</param>
|
||||
/// <param name="logiCode">物流公司编码</param>
|
||||
/// <param name="logiNo">物流单号</param>
|
||||
/// <param name="items">发货明细</param>
|
||||
/// <param name="storeId">店铺收货地址</param>
|
||||
/// <param name="shipName">收货人姓名</param>
|
||||
/// <param name="shipMobile">收货人电话</param>
|
||||
/// <param name="shipAreaId">省市区id</param>
|
||||
/// <param name="shipAddress">收货地址</param>
|
||||
/// <param name="memo">发货描述</param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> Ship(string orderId, string logiCode, string logiNo, Dictionary<int, int> items,
|
||||
int storeId = 0, string shipName = "", string shipMobile = "", int shipAreaId = 0, string shipAddress = "",
|
||||
string memo = "");
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 物流信息查询根据快递编码和单号查询(快递100)未使用
|
||||
/// </summary>
|
||||
/// <param name="code">查询的快递公司的编码, 一律用小写字母(如:yuantong)</param>
|
||||
/// <param name="no">查询的快递单号, 单号的最大长度是32个字符</param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> GetLogistic(string code, string no);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 发货单统计7天统计
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<StatisticsOut>> Statistics();
|
||||
}
|
||||
}
|
||||
59
CoreCms.Net.IServices/Bill/ICoreCmsBillLadingServices.cs
Normal file
59
CoreCms.Net.IServices/Bill/ICoreCmsBillLadingServices.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 提货单表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillLadingServices : IBaseServices<CoreCmsBillLading>
|
||||
{
|
||||
/// <summary>
|
||||
/// 添加提货单
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> AddData(string orderId, int storeId, string name, string mobile);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 核销提货单
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
Task<AdminUiCallBack> LadingOperating(string[] ids, int userId = 0);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取店铺提货单列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> GetStoreLadingList(int userId, int page, int limit);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除提货单(软删除)
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> LadingDelete(string id, int userId = 0);
|
||||
|
||||
/// <summary>
|
||||
/// 获取提货单详情
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> GetInfo(string id, int userId = 0);
|
||||
}
|
||||
}
|
||||
112
CoreCms.Net.IServices/Bill/ICoreCmsBillPaymentsServices.cs
Normal file
112
CoreCms.Net.IServices/Bill/ICoreCmsBillPaymentsServices.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
using CoreCms.Net.Model.ViewModels.Basics;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SqlSugar;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 支付单表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillPaymentsServices : IBaseServices<CoreCmsBillPayments>
|
||||
{
|
||||
/// <summary>
|
||||
/// 单个生成支付单的时候,格式化支付单明细
|
||||
/// </summary>
|
||||
/// <param name="orderId">订单号</param>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="params"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> FormatPaymentRel(string orderId, int type, JObject @params);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 批量生成支付单的时候,格式化支付单明细
|
||||
/// </summary>
|
||||
/// <param name="sourceStr"></param>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="params"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> BatchFormatPaymentRel(string[] sourceStr, int type, JObject @params);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 支付,先生成支付单,然后去支付
|
||||
/// </summary>
|
||||
/// <param name="sourceStr">来源,一般是订单号或者用户id,比如充值</param>
|
||||
/// <param name="paymentCode">支付方式</param>
|
||||
/// <param name="userId">用户序列</param>
|
||||
/// <param name="type">订单/充值/服务项目</param>
|
||||
/// <param name="params">支付的时候用到的参数,如果是微信支付的话,这里可以传trade_type=>'JSAPI'(小程序支付),或者'MWEB'(h5支付),当是JSPI的时候,可以不传其他参数了,默认就可以,默认的这个值就是JSAPI,如果是MWEB的话,需要传wap_url(网站url地址)参数和wap_name(网站名称)参数,其他支付方式需要传什么参数这个以后再说</param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> Pay(string sourceStr, string paymentCode, int userId, int type, JObject @params);
|
||||
|
||||
/// <summary>
|
||||
/// 获取支付单详情
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> GetInfo(string paymentId, int userId = 0);
|
||||
|
||||
/// <summary>
|
||||
/// 支付成功后,更新支付单状态
|
||||
/// </summary>
|
||||
/// <param name="paymentId"></param>
|
||||
/// <param name="paymentCode"></param>
|
||||
/// <param name="money"></param>
|
||||
/// <param name="status"></param>
|
||||
/// <param name="payedMsg"></param>
|
||||
/// <param name="tradeNo"></param>
|
||||
Task<WebApiCallBack> ToUpdate(string paymentId, int status, string paymentCode, decimal money,
|
||||
string payedMsg = "", string tradeNo = "");
|
||||
|
||||
/// <summary>
|
||||
/// 卖家直接支付操作
|
||||
/// </summary>
|
||||
/// <param name="orderId">订单编号</param>
|
||||
/// <param name="type">支付类型</param>
|
||||
/// <param name="paymentCode">支付类型编码</param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> ToPay(string orderId, int type, string paymentCode);
|
||||
|
||||
/// <summary>
|
||||
/// 支付单7天统计
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<StatisticsOut>> Statistics();
|
||||
|
||||
|
||||
#region 重写根据条件查询分页数据
|
||||
|
||||
/// <summary>
|
||||
/// 重写根据条件查询分页数据
|
||||
/// </summary>
|
||||
/// <param name="predicate">判断集合</param>
|
||||
/// <param name="orderByType">排序方式</param>
|
||||
/// <param name="pageIndex">当前页面索引</param>
|
||||
/// <param name="pageSize">分布大小</param>
|
||||
/// <param name="orderByExpression"></param>
|
||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||
/// <returns></returns>
|
||||
new Task<IPageList<CoreCmsBillPayments>> QueryPageAsync(
|
||||
Expression<Func<CoreCmsBillPayments, bool>> predicate,
|
||||
Expression<Func<CoreCmsBillPayments, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||
int pageSize = 20, bool blUseNoLock = false);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
73
CoreCms.Net.IServices/Bill/ICoreCmsBillRefundServices.cs
Normal file
73
CoreCms.Net.IServices/Bill/ICoreCmsBillRefundServices.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
using CoreCms.Net.Model.ViewModels.Basics;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
using SqlSugar;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 退款单表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillRefundServices : IBaseServices<CoreCmsBillRefund>
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建退款单
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="sourceId"></param>
|
||||
/// <param name="type">1订单,2充值,5服务订单</param>
|
||||
/// <param name="money"></param>
|
||||
/// <param name="aftersalesId"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> ToAdd(int userId, string sourceId, int type, decimal money, string aftersalesId);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 退款单去退款或者拒绝
|
||||
/// </summary>
|
||||
/// <param name="refundId">退款单id</param>
|
||||
/// <param name="status">2或者4,通过或者拒绝</param>
|
||||
/// <param name="paymentCodeStr">退款方式,如果和退款单上的一样,说明没有修改,原路返回,否则只记录状态,不做实际退款,如果为空是原路返回</param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> ToRefund(string refundId, int status, string paymentCodeStr = "");
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 如果是在线支付的原路退还,去做退款操作
|
||||
/// </summary>
|
||||
Task<WebApiCallBack> PaymentRefund(string refundId);
|
||||
|
||||
|
||||
#region 重写根据条件查询分页数据
|
||||
|
||||
/// <summary>
|
||||
/// 重写根据条件查询分页数据
|
||||
/// </summary>
|
||||
/// <param name="predicate">判断集合</param>
|
||||
/// <param name="orderByType">排序方式</param>
|
||||
/// <param name="pageIndex">当前页面索引</param>
|
||||
/// <param name="pageSize">分布大小</param>
|
||||
/// <param name="orderByExpression"></param>
|
||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||
/// <returns></returns>
|
||||
new Task<IPageList<CoreCmsBillRefund>> QueryPageAsync(
|
||||
Expression<Func<CoreCmsBillRefund, bool>> predicate,
|
||||
Expression<Func<CoreCmsBillRefund, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||
int pageSize = 20, bool blUseNoLock = false);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
21
CoreCms.Net.IServices/Bill/ICoreCmsBillReshipItemServices.cs
Normal file
21
CoreCms.Net.IServices/Bill/ICoreCmsBillReshipItemServices.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using CoreCms.Net.Model.Entities;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 退货单明细表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillReshipItemServices : IBaseServices<CoreCmsBillReshipItem>
|
||||
{
|
||||
}
|
||||
}
|
||||
68
CoreCms.Net.IServices/Bill/ICoreCmsBillReshipServices.cs
Normal file
68
CoreCms.Net.IServices/Bill/ICoreCmsBillReshipServices.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
using CoreCms.Net.Model.ViewModels.Basics;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
using SqlSugar;
|
||||
|
||||
namespace CoreCms.Net.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 退货单表 服务工厂接口
|
||||
/// </summary>
|
||||
public interface ICoreCmsBillReshipServices : IBaseServices<CoreCmsBillReship>
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建退货单
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="orderId"></param>
|
||||
/// <param name="aftersalesId"></param>
|
||||
/// <param name="aftersalesItems"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> ToAdd(int userId, string orderId, string aftersalesId,
|
||||
List<CoreCmsBillAftersalesItem> aftersalesItems);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取单个数据带导航
|
||||
/// </summary>
|
||||
/// <param name="predicate"></param>
|
||||
/// <param name="orderByExpression"></param>
|
||||
/// <param name="orderByType"></param>
|
||||
/// <returns></returns>
|
||||
Task<CoreCmsBillReship> GetDetails(Expression<Func<CoreCmsBillReship, bool>> predicate,
|
||||
Expression<Func<CoreCmsBillReship, object>> orderByExpression, OrderByType orderByType);
|
||||
|
||||
|
||||
#region 重写根据条件查询分页数据
|
||||
|
||||
/// <summary>
|
||||
/// 重写根据条件查询分页数据
|
||||
/// </summary>
|
||||
/// <param name="predicate">判断集合</param>
|
||||
/// <param name="orderByType">排序方式</param>
|
||||
/// <param name="pageIndex">当前页面索引</param>
|
||||
/// <param name="pageSize">分布大小</param>
|
||||
/// <param name="orderByExpression"></param>
|
||||
/// <returns></returns>
|
||||
Task<IPageList<CoreCmsBillReship>> QueryPageAsync(
|
||||
Expression<Func<CoreCmsBillReship, bool>> predicate,
|
||||
Expression<Func<CoreCmsBillReship, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||
int pageSize = 20);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user