Commit 10b4ecba by Seniorious

bug

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