Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_local_platform
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
赵剑炜
jyzb_local_platform
Commits
10b4ecba
Commit
10b4ecba
authored
Oct 20, 2023
by
Seniorious
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
6be47d09
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
10 行删除
+14
-10
BaseInfoController.cs
WebApiNET6-master/APIs/Controllers/BaseInfoController.cs
+0
-1
appsettings.json
WebApiNET6-master/APIs/appsettings.json
+3
-3
LogSummaryRepository.cs
WebApiNET6-master/Repositories/Repository/Bussiness/LogSummaryRepository.cs
+11
-6
没有找到文件。
WebApiNET6-master/APIs/Controllers/BaseInfoController.cs
View file @
10b4ecba
...
@@ -530,6 +530,5 @@ namespace APIs.Controllers
...
@@ -530,6 +530,5 @@ namespace APIs.Controllers
};
};
return
JsonConvert
.
SerializeObject
(
src
);
return
JsonConvert
.
SerializeObject
(
src
);
}
}
}
}
}
}
WebApiNET6-master/APIs/appsettings.json
View file @
10b4ecba
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"Launch"
:
"http://*:5233;http://*:5243"
,
"Launch"
:
"http://*:5233;http://*:5243"
,
"AllowedHosts"
:
"*"
,
"AllowedHosts"
:
"*"
,
"ConnectionStrings"
:
{
"ConnectionStrings"
:
{
"MySQL"
:
"server=1
92.168.3.128;port=3306;Database=xuzhou;Uid=junmp
;Pwd=123456;"
"MySQL"
:
"server=1
27.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"
:
"1
92.168.3.188
"
,
"HostName"
:
"1
27.0.0.1
"
,
//端口
//端口
"Port"
:
5672
,
"Port"
:
5672
,
//虚拟队列名称
//虚拟队列名称
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
//密码
//密码
"Password"
:
"123456"
,
"Password"
:
"123456"
,
//ip地址,多个时以英文“
,
”分割
//ip地址,多个时以英文“
,
”分割
"HostName"
:
"1
92.168.3.188
"
,
"HostName"
:
"1
27.0.0.1
"
,
//端口
//端口
"Port"
:
5672
,
"Port"
:
5672
,
//虚拟队列名称
//虚拟队列名称
...
...
WebApiNET6-master/Repositories/Repository/Bussiness/LogSummaryRepository.cs
View file @
10b4ecba
...
@@ -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
logSum
=
context
.
InsertNav
(
model
)
var
result
=
context
.
Updateable
(
inv
).
WhereColumns
(
it
=>
new
{
it
.
epc
}).
UpdateColumns
(
it
=>
new
{
it
.
state
,
it
.
updateTime
}).
ExecuteCommand
();
//实体有多少列更新多少列
.
Include
(
z1
=>
z1
.
DetailList
)
var
logSum
=
context
.
InsertNav
(
model
)
.
ExecuteCommandAsync
();
.
Include
(
z1
=>
z1
.
DetailList
)
.
ExecuteCommand
();
context
.
CommitTran
();
context
.
CommitTran
();
}
}
catch
(
Exception
e
)
catch
(
Exception
e
)
{
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论