35 lines
739 B
C#
35 lines
739 B
C#
using WmsMobileServe.Annotation;
|
|
using WmsMobileServe.DataBase.Base.Po;
|
|
|
|
namespace WmsMobileServe.DataBase.Base.Dao;
|
|
|
|
[Component]
|
|
public class CuxWmsPoLinesItfDao(DataBaseClient client)
|
|
{
|
|
|
|
/// <summary>
|
|
/// 根据状态查询
|
|
/// </summary>
|
|
/// <param name="status"></param>
|
|
/// <returns></returns>
|
|
public List<CuxWmsPoLinesItf>? SelectWithStatus(int? status)
|
|
{
|
|
if (status == default) return default;
|
|
try
|
|
{
|
|
var sqlFuc = client.Instance().Queryable<CuxWmsPoLinesItf>()
|
|
.Where(x => x.Status == status);
|
|
return sqlFuc.ToList();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
_ = ex;
|
|
return default;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|