Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
huatu_API
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liudong1993
huatu_API
Commits
e7582b68
Commit
e7582b68
authored
Aug 19, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
601e3c95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
85 deletions
+102
-85
CustomerOrderModule.cs
REBORN.Module.SellModule/CustomerOrderModule.cs
+102
-85
No files found.
REBORN.Module.SellModule/CustomerOrderModule.cs
View file @
e7582b68
...
@@ -994,9 +994,12 @@ namespace REBORN.Module.SellModule
...
@@ -994,9 +994,12 @@ namespace REBORN.Module.SellModule
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
}
}
try
{
foreach
(
var
item
in
demodel
.
DetailList
)
foreach
(
var
item
in
demodel
.
DetailList
)
{
{
var
oldDModel
=
oldDetailList
.
Where
(
x
=>
x
.
HotelId
==
item
.
HotelId
&&
x
.
Date
==
item
.
Date
).
FirstOrDefault
();
var
oldDModel
=
oldDetailList
.
Where
(
x
=>
x
.
HotelId
==
item
.
HotelId
&&
x
.
Date
==
item
.
Date
).
FirstOrDefault
();
LogHelper
.
WriteInfo
(
"oldDModel:"
+
oldDModel
.
Id
);
if
(
oldDModel
!=
null
)
if
(
oldDModel
!=
null
)
{
{
foreach
(
var
qitem
in
item
.
RoomList
)
foreach
(
var
qitem
in
item
.
RoomList
)
...
@@ -1025,7 +1028,7 @@ namespace REBORN.Module.SellModule
...
@@ -1025,7 +1028,7 @@ namespace REBORN.Module.SellModule
else
else
{
{
qitem
.
OrderId
=
demodel
.
OrderId
;
qitem
.
OrderId
=
demodel
.
OrderId
;
qitem
.
DetailId
=
item
.
Id
;
qitem
.
DetailId
=
oldDModel
.
Id
;
qitem
.
Status
=
0
;
qitem
.
Status
=
0
;
qitem
.
CreateTime
=
DateTime
.
Now
;
qitem
.
CreateTime
=
DateTime
.
Now
;
qitem
.
UpdateBy
=
demodel
.
UpdateBy
;
qitem
.
UpdateBy
=
demodel
.
UpdateBy
;
...
@@ -1035,7 +1038,7 @@ namespace REBORN.Module.SellModule
...
@@ -1035,7 +1038,7 @@ namespace REBORN.Module.SellModule
}
}
//验证 不存在的房型做删除
//验证 不存在的房型做删除
var
dellist
=
oldDModel
.
RoomList
.
Where
(
x
=>
!
item
.
RoomList
.
Select
(
y
=>
y
.
RoomTypeName
).
Contains
(
x
.
RoomTypeName
)).
ToList
();
var
dellist
=
old
RoomList
.
Where
(
x
=>
!
item
.
RoomList
.
Select
(
y
=>
y
.
RoomTypeName
).
Contains
(
x
.
RoomTypeName
)).
ToList
();
foreach
(
var
citem
in
dellist
)
foreach
(
var
citem
in
dellist
)
{
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
...
@@ -1082,6 +1085,12 @@ namespace REBORN.Module.SellModule
...
@@ -1082,6 +1085,12 @@ namespace REBORN.Module.SellModule
}
}
}
}
}
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
);
}
}
#
endregion
#
endregion
if
(
flag
)
if
(
flag
)
...
@@ -1120,6 +1129,8 @@ namespace REBORN.Module.SellModule
...
@@ -1120,6 +1129,8 @@ namespace REBORN.Module.SellModule
}
}
appointOPRepository
.
InsertBatch
(
appointOPList
);
//新增op信息
appointOPRepository
.
InsertBatch
(
appointOPList
);
//新增op信息
}
}
try
{
foreach
(
var
item
in
demodel
.
DetailList
)
foreach
(
var
item
in
demodel
.
DetailList
)
{
{
item
.
OrderId
=
orderId
;
item
.
OrderId
=
orderId
;
...
@@ -1144,6 +1155,12 @@ namespace REBORN.Module.SellModule
...
@@ -1144,6 +1155,12 @@ namespace REBORN.Module.SellModule
}
}
}
}
}
}
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
);
}
#
region
推送企微机器人消息
#
region
推送企微机器人消息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment