|
|
|
@ -287,16 +287,16 @@ namespace Admin.Core.Api.Controllers.Business
|
|
|
|
|
return Failed<List<LR_weigh_BatchCode>>("传入参数为空!");
|
|
|
|
|
}
|
|
|
|
|
MessageModel<List<LR_weigh>> messageModel = new MessageModel<List<LR_weigh>>();
|
|
|
|
|
string planID = _hw_BarrelService.GetPlanIdByBarrelID(barrelBarcode.Trim());
|
|
|
|
|
if (string.IsNullOrEmpty(planID))
|
|
|
|
|
string materialName = _hw_BarrelService.GetMaterialNameByBarrelID(barrelBarcode.Trim());
|
|
|
|
|
if (string.IsNullOrEmpty(materialName))
|
|
|
|
|
{
|
|
|
|
|
return Failed<List<LR_weigh_BatchCode>>("查询不到罐号对应的计划ID!");
|
|
|
|
|
return Failed<List<LR_weigh_BatchCode>>("查询不到罐号对应的物料ID!");
|
|
|
|
|
}
|
|
|
|
|
if (planID == "-1")
|
|
|
|
|
if (materialName == "-1")
|
|
|
|
|
{
|
|
|
|
|
return Failed<List<LR_weigh_BatchCode>>("查询不到罐号!");
|
|
|
|
|
}
|
|
|
|
|
List<LR_weigh> wlist = _lr_weighService.GetRecentWeightList(planID);
|
|
|
|
|
List<LR_weigh> wlist = _lr_weighService.GetRecentWeightList(materialName);
|
|
|
|
|
List<LR_weigh_BatchCode> list = new List<LR_weigh_BatchCode>();
|
|
|
|
|
foreach (LR_weigh weigh in wlist)
|
|
|
|
|
{
|
|
|
|
|