/*********************************************************************** * Project: baifenBinfa * ProjectName: 百分兵法管理系统 * Web: http://chuanyin.com * Author: * Email: * CreateTime: 202403/02 * 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 { /// /// 配送方式表 服务工厂接口 /// public interface ICoreCmsShipServices : IBaseServices { /// /// 设置是否默认 /// /// /// /// Task SetIsDefault(int id, bool isDefault); #region 重写根据条件查询分页数据 /// /// 重写根据条件查询分页数据 /// /// 判断集合 /// 排序方式 /// 当前页面索引 /// 分布大小 /// /// 是否使用WITH(NOLOCK) /// Task> QueryPageAsync( Expression> predicate, Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, int pageSize = 20, bool blUseNoLock = false); #endregion /// /// 获取配送费用 /// /// 地区id /// 重量,单位g /// 商品总价 /// Task GetShipCost(int areaId = 0, decimal weight = 0, decimal totalmoney = 0); /// /// 计算运费 /// /// 配送方式内容 /// 订单总重 /// 商品总价 /// 单独地区首重 /// 单独地区续重 /// 是否在地区内 /// decimal calculate_fee(CoreCmsShip ship, decimal weight, decimal totalmoney = 0, decimal firstunitAreaPrice = 0, decimal continueunitAreaPrice = 0, bool isInChild = false); /// /// 根据地区获取配送方式 /// Task GetShip(int areaId = 0); #region 重写增删改查操作=========================================================== /// /// 重写异步插入方法 /// /// /// Task InsertAsync(CoreCmsShip entity); /// /// 重写异步更新方法 /// /// /// Task UpdateAsync(CoreCmsShip entity); /// /// 重写删除指定ID的数据 /// /// /// Task DeleteByIdAsync(int id); #endregion } }