字段命名
This commit is contained in:
parent
e4772ca7d1
commit
8643fdb53e
@ -11,7 +11,7 @@ namespace DOAN.Model.MES.mm.line.Dto
|
||||
|
||||
public string MaterialName { get; set; }
|
||||
|
||||
public string Line_code { get; set; }
|
||||
public string Line_Code { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -28,7 +28,7 @@ namespace DOAN.Model.MES.mm.line.Dto
|
||||
|
||||
public string MaterialName { get; set; }
|
||||
|
||||
public string Line_code { get; set; }
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
public int? Quantity { get; set; }
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ namespace DOAN.Model.MES.mm.line.Dto
|
||||
/// </summary>
|
||||
public class MmLineLocationQueryDto : PagerInfo
|
||||
{
|
||||
public string Line_code { get; set; }
|
||||
public string Line_Code { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -22,7 +22,7 @@ namespace DOAN.Model.MES.mm.line.Dto
|
||||
|
||||
public string LocationCode { get; set; }
|
||||
|
||||
public string Line_code { get; set; }
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ namespace DOAN.Model.MES.mm.line.Dto
|
||||
|
||||
public string MaterialName { get; set; }
|
||||
|
||||
public string Line_code { get; set; }
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
|
||||
public DateTime[] searchDate { get; set; } = new DateTime[2];
|
||||
@ -32,7 +32,7 @@ namespace DOAN.Model.MES.mm.line.Dto
|
||||
|
||||
public string MaterialName { get; set; }
|
||||
|
||||
public string Line_code { get; set; }
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
public int? Quantity { get; set; }
|
||||
|
||||
|
||||
@ -33,7 +33,8 @@ namespace DOAN.Model.MES.mm.line
|
||||
/// <summary>
|
||||
/// 线别
|
||||
/// </summary>
|
||||
public string Line_code { get; set; }
|
||||
[SugarColumn(ColumnName = "line_code")]
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前库存数量
|
||||
|
||||
@ -27,7 +27,8 @@ namespace DOAN.Model.MES.mm.line
|
||||
/// <summary>
|
||||
/// 线别
|
||||
/// </summary>
|
||||
public string Line_code { get; set; }
|
||||
[SugarColumn(ColumnName = "line_code")]
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 库位的描述信息
|
||||
|
||||
@ -33,7 +33,8 @@ namespace DOAN.Model.MES.mm.line
|
||||
/// <summary>
|
||||
/// 线别
|
||||
/// </summary>
|
||||
public string Line_code { get; set; }
|
||||
[SugarColumn(ColumnName = "line_code")]
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作的数量
|
||||
|
||||
@ -25,7 +25,7 @@ namespace DOAN.Service.MES.mm.line
|
||||
public PagedInfo<MmLineInventoryDto> GetList(MmLineInventoryQueryDto parm)
|
||||
{
|
||||
var predicate = Expressionable.Create<MmLineInventory>()
|
||||
.AndIF(!string.IsNullOrEmpty(parm.Line_code), o => o.Line_code == parm.Line_code)
|
||||
.AndIF(!string.IsNullOrEmpty(parm.Line_Code), o => o.Line_Code == parm.Line_Code)
|
||||
.AndIF(!string.IsNullOrEmpty(parm.MaterialName), o => o.MaterialName.Contains(parm.MaterialName))
|
||||
.AndIF(!string.IsNullOrEmpty(parm.MaterialCode), o => o.MaterialCode.Contains(parm.MaterialCode))
|
||||
;
|
||||
|
||||
@ -24,7 +24,7 @@ namespace DOAN.Service.MES.mm.line
|
||||
/// <returns></returns>
|
||||
public PagedInfo<MmLineLocationDto> GetList(MmLineLocationQueryDto parm)
|
||||
{
|
||||
var predicate = Expressionable.Create<MmLineLocation>().AndIF(!string.IsNullOrEmpty(parm.Line_code), o => o.Line_code == parm.Line_code);
|
||||
var predicate = Expressionable.Create<MmLineLocation>().AndIF(!string.IsNullOrEmpty(parm.Line_Code), o => o.Line_Code == parm.Line_Code);
|
||||
|
||||
var response = Queryable()
|
||||
.Where(predicate.ToExpression())
|
||||
|
||||
@ -25,7 +25,7 @@ namespace DOAN.Service.MES.mm.line
|
||||
public PagedInfo<MmLineTransactionLogDto> GetList(MmLineTransactionLogQueryDto parm)
|
||||
{
|
||||
var predicate = Expressionable.Create<MmLineTransactionLog>()
|
||||
.AndIF(!string.IsNullOrEmpty(parm.Line_code), o => o.Line_code == parm.Line_code)
|
||||
.AndIF(!string.IsNullOrEmpty(parm.Line_Code), o => o.Line_Code == parm.Line_Code)
|
||||
.AndIF(!string.IsNullOrEmpty(parm.MaterialName), o => o.MaterialName.Contains(parm.MaterialName))
|
||||
.AndIF(!string.IsNullOrEmpty(parm.MaterialCode), o => o.MaterialCode.Contains(parm.MaterialCode))
|
||||
.AndIF(parm.searchDate != null && parm.searchDate[0] > DateTime.MinValue, it => it.Createtime >= parm.searchDate[0])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user