/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* 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.DTO;
using CoreCms.Net.Model.ViewModels.UI;
using SqlSugar;
namespace CoreCms.Net.IServices
{
///
/// 货品表 服务工厂接口
///
public interface ICoreCmsProductsServices : IBaseServices
{
///
/// 根据货品ID获取货品信息
///
/// 货品序列
/// 是否计算促销
/// 用户序列
/// 类型
///
///
Task GetProductInfo(int id, bool isPromotion, int userId, string type = "goods",
int groupId = 0);
///
/// 判断货品上下架状态
///
/// 货品序列
///
Task GetShelfStatus(int productsId);
///
/// 获取库存报警数量
///
///
///
Task GoodsStaticsTotalWarn(int goodsStocksWarn);
///
/// 获取关联商品的货品列表数据
///
/// 判断集合
/// 排序方式
/// 当前页面索引
/// 分布大小
///
/// 是否使用WITH(NOLOCK)
///
Task> QueryDetailPageAsync(Expression> predicate,
Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1,
int pageSize = 20, bool blUseNoLock = false);
///
/// 修改单个货品库存并记入库存管理日志内
///
///
///
///
Task EditStock(int productId, int stock);
///
/// 获取所有货品数据
///
///
Task> GetProducts(int goodId = 0);
}
}