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
3d7bb1ad
Commit
3d7bb1ad
authored
Sep 27, 2023
by
赵剑炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消息队列接受数据部分
parent
14808cb6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
2 行删除
+9
-2
RecordsReq.cs
WebApiNET6-master/Models/ReqModel/RecordsReq.cs
+4
-0
LogSummaryRepository.cs
WebApiNET6-master/Repositories/Repository/Bussiness/LogSummaryRepository.cs
+2
-1
LogService.cs
WebApiNET6-master/Services/LogService.cs
+3
-1
没有找到文件。
WebApiNET6-master/Models/ReqModel/RecordsReq.cs
View file @
3d7bb1ad
...
@@ -35,7 +35,11 @@ namespace Common.Utility.Model
...
@@ -35,7 +35,11 @@ namespace Common.Utility.Model
public
class
CarList
public
class
CarList
{
{
public
int
carId
{
get
;
set
;
}
public
String
?
carName
{
get
;
set
;
}
public
String
?
carNumber
{
get
;
set
;
}
public
int
?
outInState
{
get
;
set
;
}
public
int
?
outInState
{
get
;
set
;
}
public
String
?
errorState
{
get
;
set
;
}
public
String
?
errorState
{
get
;
set
;
}
}
}
...
...
WebApiNET6-master/Repositories/Repository/Bussiness/LogSummaryRepository.cs
View file @
3d7bb1ad
...
@@ -29,7 +29,8 @@ namespace Repositories.Repository.Bussiness
...
@@ -29,7 +29,8 @@ 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
();
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
result
=
await
context
.
Updateable
(
inv
).
WhereColumns
(
it
=>
new
{
it
.
epc
}).
UpdateColumns
(
it
=>
new
{
it
.
state
,
it
.
updateTime
}).
ExecuteCommandAsync
();
//实体有多少列更新多少列
var
logSum
=
await
context
.
InsertNav
(
model
)
var
logSum
=
await
context
.
InsertNav
(
model
)
.
Include
(
z1
=>
z1
.
DetailList
)
.
Include
(
z1
=>
z1
.
DetailList
)
...
...
WebApiNET6-master/Services/LogService.cs
View file @
3d7bb1ad
...
@@ -52,6 +52,8 @@ namespace Services
...
@@ -52,6 +52,8 @@ namespace Services
LogDetail
logdetail
=
new
LogDetail
();
LogDetail
logdetail
=
new
LogDetail
();
logdetail
.
createTime
=
DateTime
.
Now
;
logdetail
.
createTime
=
DateTime
.
Now
;
logdetail
.
updateTime
=
DateTime
.
Now
;
logdetail
.
updateTime
=
DateTime
.
Now
;
logdetail
.
equipmentName
=
item
.
carName
;
logdetail
.
equipmentSize
=
item
.
carNumber
;
logdetail
.
state
=
item
.
outInState
;
logdetail
.
state
=
item
.
outInState
;
log
.
DetailList
.
Add
(
logdetail
);
log
.
DetailList
.
Add
(
logdetail
);
}
}
...
@@ -66,7 +68,7 @@ namespace Services
...
@@ -66,7 +68,7 @@ namespace Services
List
<
Car
>
invCarList
=
model
.
carList
?.
Select
(
x
=>
new
Car
()
List
<
Car
>
invCarList
=
model
.
carList
?.
Select
(
x
=>
new
Car
()
{
{
updateTime
=
DateTime
.
Now
,
updateTime
=
DateTime
.
Now
,
id
=
x
.
carId
,
state
=
x
.
outInState
.
ToString
()
state
=
x
.
outInState
.
ToString
()
}).
ToList
();
}).
ToList
();
return
_logSummaryRepository
.
AddLogs
(
log
,
inveqList
,
invCarList
);
return
_logSummaryRepository
.
AddLogs
(
log
,
inveqList
,
invCarList
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论