Master.CanYinWu.BLL/ProductBLL.cs
(完整代码) 1KBusing Master.CanYinWu.DAL;
using Master.CanYinWu.Entity;
using Master.CanYinWu.Entity.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Master.CanYinWu.BLL
{
public class ProductBLL
{
ProductDAL dal = new ProductDAL();
public async Task<Tuple<IEnumerable<ProductViewModel>, int>> GetList(int pageIndex, int pageSize, string key, int bigCategoryId = 0, int smallCategoryId = 0, DateTime? dateStart = null, DateTime? dateEnd = null, int? storeId = 0)
{
return await dal.GetList(pageIndex, pageSize, key, bigCategoryId, smallCategoryId, dateStart, dateEnd, storeId);
}
public async Task<int> UpdateProduct(Product product)
{
return await dal.UpdateProduct(product);
}
public async Task<int> ProductAdd(Product product)
{
return await dal.ProductAdd(product);
}
public async Task<int> DelProduct(string productId)
{
return await dal.DelProduct(productId);
}
public async Task<ProductViewModel> GetModel(int productId) => (await dal.GetModel(productId));
public async Task<IList<Product>> GetProductListAsync(int storeId)=> (await dal.GetProductListAsync(storeId));
public List<CardHolderDetailViewModel> GetProductListById(int storeId, List<int> productIds) => dal.GetProductListById(storeId, productIds);
public bool IsExistProduct(int categoryId) => dal.IsExistProduct(categoryId);
public bool IsExistProductBySupId(int supplierId) => dal.IsExistProductBySupId(supplierId);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
