22 lines
667 B
C#
22 lines
667 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using SqlSugar;
|
|
using WaterCloud.Domain.Entity.CustomerOrder;
|
|
|
|
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();
|
|
}
|
|
} |