物料列表
This commit is contained in:
parent
e5c5c698d1
commit
af5b6c4915
@ -58,7 +58,7 @@ namespace MDM.Controllers.Material
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:materiallist:query")]
|
||||
public IActionResult GetMaterialList(string Id)
|
||||
public IActionResult GetMaterialList(int Id)
|
||||
{
|
||||
var response = _MaterialListService.GetInfo(Id);
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ namespace MDM.Model.Material.Dto
|
||||
public class MaterialListDto
|
||||
{
|
||||
[Required(ErrorMessage = "雪花id不能为空")]
|
||||
public string Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
public string FkMaterialTypeCode { get; set; }
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ namespace MDM.Model.Material.Dto
|
||||
|
||||
public int? Status { get; set; }
|
||||
|
||||
public string Remark { get; set; }
|
||||
public string? Remark { get; set; }
|
||||
|
||||
public string? CreatedBy { get; set; }
|
||||
|
||||
|
||||
@ -10,8 +10,8 @@ namespace MDM.Model.Material
|
||||
/// <summary>
|
||||
/// 雪花id
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
|
||||
public string Id { get; set; }
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料类型code
|
||||
|
||||
@ -13,7 +13,7 @@ namespace MDM.Services.IMaterialService
|
||||
{
|
||||
PagedInfo<MaterialListDto> GetList(MaterialListQueryDto parm);
|
||||
|
||||
MaterialList GetInfo(string Id);
|
||||
MaterialList GetInfo(int Id);
|
||||
|
||||
MaterialList AddMaterialList(MaterialList parm);
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ namespace MDM.Services.Material
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public MaterialList GetInfo(string Id)
|
||||
public MaterialList GetInfo(int Id)
|
||||
{
|
||||
var response = Queryable()
|
||||
.Where(x => x.Id == Id)
|
||||
@ -117,7 +117,6 @@ namespace MDM.Services.Material
|
||||
if (currentRow != null && currentRow.GetCell(0) != null) // 确保行不为空
|
||||
{
|
||||
MaterialList item = new MaterialList();
|
||||
item.Id = XueHua;
|
||||
//物料类型code
|
||||
if (currentRow.GetCell(0) != null && currentRow.GetCell(0).CellType == CellType.String)
|
||||
item.FkMaterialTypeCode = currentRow.GetCell(0).ToString();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user