using WcsMain.Common;
using WcsMain.DataBase.TableEntity;
using WcsMain.WcsAttribute.AutoFacAttribute;
namespace WcsMain.DataBase.Dao;
///
/// tbl_bs_pick_stand 的操作类
///
[Component]
public class BsPickStandDao
{
///
/// 查询所有数据
///
///
public List? Query() => Query(new BsPickStand());
///
/// 根据条件查询数据
///
///
///
public List? Query(BsPickStand queryEntity)
{
try
{
var sqlFUc = CommonTool.DbServe.Queryable()
.WhereIF(!string.IsNullOrEmpty(queryEntity.PickStand), w => w.PickStand == queryEntity.PickStand)
.WhereIF(queryEntity.StandType != default, w => w.StandType == queryEntity.StandType)
.WhereIF(queryEntity.StandStatus != default, w => w.StandStatus == queryEntity.StandStatus)
.OrderBy(o => o.PickStand);
return sqlFUc.ToList();
}
catch (Exception ex)
{
_ = ex;
return default;
}
}
}