Commit 3d7bb1ad by 赵剑炜

修改消息队列接受数据部分

parent 14808cb6
......@@ -35,7 +35,11 @@ namespace Common.Utility.Model
public class CarList
{
public int carId { get; set; }
public String? carName { get; set; }
public String? carNumber { get; set; }
public int? outInState { get; set; }
public String? errorState { get; set; }
}
......
......@@ -29,7 +29,8 @@ namespace Repositories.Repository.Bussiness
//var invs = await context.Queryable<Inventory>().Where(x =>
//model.DetailList.Select(x => x.epc).Contains(x.epc)).ToListAsync();
context.BeginTran();
await context.Updateable(cars).WhereColumns(it => new { it.no }).UpdateColumns(it => new { it.state, it.updateTime }).ExecuteCommandAsync();//实体有多少列更新多少列
await context.Updateable(cars).WhereColumns(it => new { it.id }).UpdateColumns(it => new { it.state, it.updateTime }).ExecuteCommandAsync();//实体有多少列更新多少列
var result = await context.Updateable(inv).WhereColumns(it=>new { it.epc }).UpdateColumns(it => new { it.state,it.updateTime}).ExecuteCommandAsync();//实体有多少列更新多少列
var logSum = await context.InsertNav(model)
.Include(z1=>z1.DetailList)
......
......@@ -52,6 +52,8 @@ namespace Services
LogDetail logdetail = new LogDetail();
logdetail.createTime = DateTime.Now;
logdetail.updateTime = DateTime.Now;
logdetail.equipmentName = item.carName;
logdetail.equipmentSize = item.carNumber;
logdetail.state = item.outInState;
log.DetailList.Add(logdetail);
}
......@@ -66,7 +68,7 @@ namespace Services
List<Car> invCarList = model.carList?.Select(x => new Car()
{
updateTime=DateTime.Now,
id=x.carId,
state = x.outInState.ToString()
}).ToList();
return _logSummaryRepository.AddLogs(log, inveqList, invCarList);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论