获取任务下的配料详情
This commit is contained in:
parent
41abc454d6
commit
2072785a30
@ -82,6 +82,12 @@ namespace DOAN.Admin.Mobile.Controllers
|
||||
}
|
||||
#region 产线任务
|
||||
|
||||
/// <summary>
|
||||
/// 查询线别任务
|
||||
/// </summary>
|
||||
/// <param name="lineCode"></param>
|
||||
/// <param name="hadleDate"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("search_task_byline")]
|
||||
public IActionResult SearchTaskByLine(string lineCode, DateTime hadleDate)
|
||||
{
|
||||
@ -94,6 +100,21 @@ namespace DOAN.Admin.Mobile.Controllers
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
//TODO 获取任务下的配料详情
|
||||
[HttpGet("get_task_info_byline")]
|
||||
public IActionResult GetTaskInfosByLine(string task_code)
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(task_code)) return SUCCESS(null);
|
||||
|
||||
var response = preparationTask.GetTaskInfosByLine(task_code);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
78
DOAN.Model/MES/mm/MmTaskMaterialInfoByLine.cs
Normal file
78
DOAN.Model/MES/mm/MmTaskMaterialInfoByLine.cs
Normal file
@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
namespace DOAN.Model.MES.mm
|
||||
{
|
||||
/// <summary>
|
||||
/// 备料任务详情
|
||||
/// </summary>
|
||||
[SugarTable("mm_task_material_info_byline")]
|
||||
public class MmTaskMaterialInfoByLine
|
||||
{
|
||||
/// <summary>
|
||||
/// 雪花
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务code
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "fk_task_code")]
|
||||
public string FkTaskCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "material_code")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "material_name")]
|
||||
public string MaterialName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规格型号
|
||||
/// </summary>
|
||||
public string Specification { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 配料数量
|
||||
/// </summary>
|
||||
public decimal Quantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单位
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cREATED_BY")]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cREATED_TIME")]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "uPDATED_BY")]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "uPDATED_TIME")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -24,11 +24,14 @@ namespace DOAN.Service.Mobile.IService
|
||||
|
||||
|
||||
|
||||
List<MmTaskMaterialInfo> GetTaskInfos(string task_code);
|
||||
List<MmTaskMaterialInfo> GetTaskInfos(string task_code);
|
||||
|
||||
int GenerateIngredientTask(IngredientTaskRequestForm form);
|
||||
int GenerateIngredientTask(IngredientTaskRequestForm form);
|
||||
|
||||
List<MmPreparationTaskLine> SearchTaskByLine(string lineCode, DateTime hadleDate);
|
||||
|
||||
|
||||
List<MmTaskMaterialInfoByLine> GetTaskInfosByLine(string task_code);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -132,6 +132,10 @@ namespace DOAN.Service.Mobile
|
||||
return Context.Queryable<MmPreparationTaskLine>().Where(it => it.LineCode == lineCode)
|
||||
.Where(it => it.TaskDate == hadleDate).ToList();
|
||||
}
|
||||
public List<MmTaskMaterialInfoByLine> GetTaskInfosByLine(string task_code)
|
||||
{
|
||||
return Context.Queryable<MmTaskMaterialInfoByLine>().Where(it => it.FkTaskCode == task_code).ToList();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user