字段命名

This commit is contained in:
卢江海 2025-03-21 13:29:56 +08:00
parent e4772ca7d1
commit 8643fdb53e
9 changed files with 15 additions and 12 deletions

View File

@ -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; }

View File

@ -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; }

View File

@ -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; }

View File

@ -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>
/// 当前库存数量

View File

@ -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>
/// 库位的描述信息

View File

@ -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>
/// 操作的数量

View File

@ -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))
;

View File

@ -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())

View File

@ -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])