Commit 10b4ecba by Seniorious

bug

parent 6be47d09
......@@ -530,6 +530,5 @@ namespace APIs.Controllers
};
return JsonConvert.SerializeObject(src);
}
}
}
......@@ -9,7 +9,7 @@
"Launch": "http://*:5233;http://*:5243",
"AllowedHosts": "*",
"ConnectionStrings": {
"MySQL": "server=192.168.3.128;port=3306;Database=xuzhou;Uid=junmp;Pwd=123456;"
"MySQL": "server=127.0.0.1;port=3306;Database=xuzhou_new;Uid=root;Pwd=123456;"
//RabbitMQ配置
},
......@@ -20,7 +20,7 @@
//密码
"Password": "123456",
//ip地址,多个时以英文“,”分割
"HostName": "192.168.3.188",
"HostName": "127.0.0.1",
//端口
"Port": 5672,
//虚拟队列名称
......@@ -34,7 +34,7 @@
//密码
"Password": "123456",
//ip地址,多个时以英文“,”分割
"HostName": "192.168.3.188",
"HostName": "127.0.0.1",
//端口
"Port": 5672,
//虚拟队列名称
......
......@@ -3,6 +3,7 @@ using Models.SqlModel;
using Models.Table;
using Repositories.IRepository.IBussiness;
using Repositories.IRepository.IUnitOfWork;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
......@@ -28,14 +29,18 @@ namespace Repositories.Repository.Bussiness
{
//var invs = await context.Queryable<Inventory>().Where(x =>
//model.DetailList.Select(x => x.epc).Contains(x.epc)).ToListAsync();
context.BeginTran();
context.Updateable(cars).WhereColumns(it => new { it.id }).UpdateColumns(it => new { it.state, it.updateTime }).ExecuteCommand();//实体有多少列更新多少列
var result = context.Updateable(inv).WhereColumns(it=>new { it.epc }).UpdateColumns(it => new { it.state,it.updateTime}).ExecuteCommand();//实体有多少列更新多少列
var logSum = context.InsertNav(model)
.Include(z1=>z1.DetailList)
.ExecuteCommandAsync();
context.Updateable(cars).WhereColumns(it => new { it.id }).UpdateColumns(it => new { it.state, it.updateTime }).ExecuteCommand();//实体有多少列更新多少列
var result = context.Updateable(inv).WhereColumns(it => new { it.epc }).UpdateColumns(it => new { it.state, it.updateTime }).ExecuteCommand();//实体有多少列更新多少列
var logSum = context.InsertNav(model)
.Include(z1 => z1.DetailList)
.ExecuteCommand();
context.CommitTran();
}
catch (Exception e)
{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论