1
This commit is contained in:
@@ -1,6 +1,22 @@
|
||||
namespace WaterCloud.Service.CustomerOrder;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
using WaterCloud.Domain.Entity.CustomerOrder;
|
||||
|
||||
public class CustomerOrderService
|
||||
namespace WaterCloud.Service.CustomerOrder;
|
||||
|
||||
public class CustomerOrderService:BaseService<CustomerOrderEntity>,IDenpendency
|
||||
{
|
||||
|
||||
public CustomerOrderService(ISqlSugarClient context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public async Task<List<CustomerOrderEntity>> GetList(string keyword = "")
|
||||
{
|
||||
var query = repository.IQueryable();
|
||||
if (!string.IsNullOrWhiteSpace(keyword))
|
||||
query = query.Where(oo=>oo.F_Name.Contains(keyword));
|
||||
return await query.OrderBy(oo=>oo.F_CreatorTime).ToListAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user