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
3f3b7e79
Commit
3f3b7e79
authored
Aug 20, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d60b9707
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
336 additions
and
205 deletions
+336
-205
VisaModule.cs
REBORN.Module.DMCModule/VisaModule.cs
+182
-100
CustomerOrderModule.cs
REBORN.Module.SellModule/CustomerOrderModule.cs
+4
-4
SellOrderModule.cs
REBORN.Module.SellModule/SellOrderModule.cs
+132
-94
DMCFileUploadService.cs
REBORN.Services.DMCService/DMCFileUploadService.cs
+4
-4
CustomerOrderService.cs
REBORN.Services.SellService/CustomerOrderService.cs
+9
-2
SellOrderService.cs
REBORN.Services.SellService/SellOrderService.cs
+5
-1
No files found.
REBORN.Module.DMCModule/VisaModule.cs
View file @
3f3b7e79
This diff is collapsed.
Click to expand it.
REBORN.Module.SellModule/CustomerOrderModule.cs
View file @
3f3b7e79
...
...
@@ -3120,7 +3120,7 @@ namespace REBORN.Module.SellModule
{
return
ApiResult
.
Success
(
"请选择需要导入的EXCEL!"
);
}
var
list
=
REBORN
.
Data
.
Guest
.
GuestDataHelper
.
ImpoertGuestData
(
FileName
,
1
);
var
list
=
REBORN
.
Data
.
Guest
.
GuestDataHelper
.
ImpoertGuestData
(
FileName
,
1
)
?.
Distinct
()?.
ToList
()
??
new
List
<
Data
.
Guest
.
ImpoertGuest
>()
;
if
(
orderId
>
0
)
{
...
...
@@ -3203,7 +3203,7 @@ namespace REBORN.Module.SellModule
return
false
;
}
}
var
result
=
list
?.
Select
(
subItem
=>
new
{
Tel
=
subItem
?.
MobilePhone
??
""
,
IdCard
=
subItem
?.
IdCard
??
""
,
PassportNo
=
subItem
?.
PassportNo
??
""
,
PassportExpiry
=
StringHelper
.
FormatDate
(
subItem
.
PassportExpiry
),
PassportIssued
=
StringHelper
.
FormatDate
(
subItem
.
PassportIssued
),
Birthday
=
StringHelper
.
FormatDate
(
subItem
.
Birthday
),
userName
=
subItem
.
SurName
+
subItem
.
Name
,
SexStr
=
subItem
.
Sex
==
1
?
"男"
:
subItem
.
Sex
==
2
?
"女"
:
"保密"
,
Age
=
subItem
.
Birthday
.
HasValue
?
System
.
DateTime
.
Now
.
Year
-
subItem
.
Birthday
.
Value
.
Year
:
0
,
subItem
.
MobilePhone
});
var
result
=
list
?.
Select
(
subItem
=>
new
{
Tel
=
subItem
?.
MobilePhone
??
""
,
IdCard
=
subItem
?.
IdCard
??
""
,
Name
=
subItem
.
Name
,
PassportNo
=
subItem
?.
PassportNo
??
""
,
PassportExpiry
=
StringHelper
.
FormatDate
(
subItem
.
PassportExpiry
),
PassportIssued
=
StringHelper
.
FormatDate
(
subItem
.
PassportIssued
),
Birthday
=
StringHelper
.
FormatDate
(
subItem
.
Birthday
),
userName
=
subItem
.
SurName
+
subItem
.
Name
,
SexStr
=
subItem
.
Sex
==
1
?
"男"
:
subItem
.
Sex
==
2
?
"女"
:
"保密"
,
Age
=
subItem
.
Birthday
.
HasValue
?
System
.
DateTime
.
Now
.
Year
-
subItem
.
Birthday
.
Value
.
Year
:
0
,
subItem
.
MobilePhone
});
return
JsonHelper
.
GetCamelCaseResultJson
(
result
);
}
...
...
@@ -3344,8 +3344,8 @@ namespace REBORN.Module.SellModule
{
nameof
(
RB_Customer_TicketOrder_Extend
.
Money
),
demodel
.
Money
},
{
nameof
(
RB_Customer_TicketOrder_Extend
.
SelffetchAddress
),
demodel
.
SelffetchAddress
},
{
nameof
(
RB_Customer_TicketOrder_Extend
.
FinalPriceTips
),
demodel
.
FinalPriceTips
},
{
nameof
(
RB_Customer_TicketOrder_Extend
.
UseDate
),
demodel
.
UseDate
},
{
nameof
(
RB_Customer_TicketOrder_Extend
.
UseDate
),
demodel
.
UseDate
},
{
nameof
(
RB_Customer_TicketOrder_Extend
.
GuestInfo
),
demodel
.
GuestInfo
},
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
REBORN.Module.SellModule/SellOrderModule.cs
View file @
3f3b7e79
This diff is collapsed.
Click to expand it.
REBORN.Services.DMCService/DMCFileUploadService.cs
View file @
3f3b7e79
...
...
@@ -768,15 +768,15 @@ namespace REBORN.Services.DMCService
//Type=1酒店 3-邮轮 8-单机票 9-签证 10-跟团游
if
(
OrderType
==
"1"
||
OrderType
==
"3"
||
OrderType
==
"8"
)
//酒店
{
obj
=
new
REBORN
.
Module
.
SellModule
.
CustomerOrderModule
().
ImpoertGuest_YL
(
fileUrl
,
Convert
.
ToInt32
(
OrderId
)
,
EmployeeId
,
OrderType
);
obj
=
new
REBORN
.
Module
.
SellModule
.
CustomerOrderModule
().
ImpoertGuest_YL
(
fileUrl
,
0
,
EmployeeId
,
OrderType
);
}
else
if
(
OrderType
==
"9"
)
//签证
{
obj
=
new
REBORN
.
Module
.
DMCModule
.
VisaModule
().
ImpoertGuest_YL
(
fileUrl
,
Convert
.
ToInt32
(
OrderId
)
,
EmployeeId
);
obj
=
new
REBORN
.
Module
.
DMCModule
.
VisaModule
().
ImpoertGuest_YL
(
fileUrl
,
0
,
EmployeeId
);
}
else
//跟团游
{
obj
=
sellOrderModule
.
ImpoertGuest_YL
(
fileUrl
,
Convert
.
ToInt32
(
OrderId
)
,
EmployeeId
);
{
// Convert.ToInt32(OrderId)
obj
=
sellOrderModule
.
ImpoertGuest_YL
(
fileUrl
,
0
,
EmployeeId
);
}
}
catch
(
Exception
ex
)
...
...
REBORN.Services.SellService/CustomerOrderService.cs
View file @
3f3b7e79
...
...
@@ -1048,6 +1048,7 @@ namespace REBORN.Services.SellService
Tel
=
jobj
.
GetStringValue
(
"Tel"
),
});
}
orderGuestList
=
orderGuestList
?.
Distinct
()?.
ToList
()
??
new
List
<
OrderGuestList
>();
}
}
catch
(
Exception
ex
)
...
...
@@ -2186,6 +2187,8 @@ namespace REBORN.Services.SellService
foreach
(
var
jItem
in
guestInfoListArray
)
{
JObject
jobj
=
JObject
.
Parse
(
JsonHelper
.
Serialize
(
jItem
));
string
name
=
jobj
.
GetStringValue
(
"Name"
);
orderGuestList
.
Add
(
new
OrderGuestList
{
Birthday
=
jobj
.
GetDateTime
(
"Birthday"
),
...
...
@@ -2197,6 +2200,7 @@ namespace REBORN.Services.SellService
Tel
=
jobj
.
GetStringValue
(
"Tel"
),
});
}
orderGuestList
=
orderGuestList
?.
Distinct
()?.
ToList
()
??
new
List
<
OrderGuestList
>();
}
}
catch
(
Exception
ex
)
...
...
@@ -2982,10 +2986,12 @@ namespace REBORN.Services.SellService
ResultPageModel
pmodel
=
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
request
.
msg
.
ToString
());
RB_CRMTicket_Order_Extend
demodel
=
JsonHelper
.
DeserializeObject
<
RB_CRMTicket_Order_Extend
>(
request
.
msg
.
ToString
());
demodel
.
GroupId
=
userInfo
.
RB_Group_id
;
if
(
demodel
.
IsMyOrder
==
1
)
{
if
(
demodel
.
IsMyOrder
==
1
)
{
demodel
.
EnterID
=
userInfo
.
EmployeeId
;
}
else
{
else
{
demodel
.
OpEmpId
=
userInfo
.
EmployeeId
;
if
(
userInfo
!=
null
&&
userInfo
.
RB_Post_Id
>
0
)
{
...
...
@@ -3369,6 +3375,7 @@ namespace REBORN.Services.SellService
orderGuestList
.
Add
(
gmodel
);
}
orderGuestList
=
orderGuestList
?.
Distinct
()?.
ToList
()
??
new
List
<
OrderGuestList
>();
}
}
catch
(
Exception
ex
)
...
...
REBORN.Services.SellService/SellOrderService.cs
View file @
3f3b7e79
...
...
@@ -6837,6 +6837,9 @@ namespace REBORN.Services.SellService
foreach
(
var
jItem
in
guestInfoListArray
)
{
JObject
jobj
=
JObject
.
Parse
(
JsonHelper
.
Serialize
(
jItem
));
string
name
=
jobj
.
GetStringValue
(
"Name"
);
string
idCard
=
jobj
.
GetStringValue
(
"IdCard"
);
orderGuestList
.
Add
(
new
RB_Travel_Guest_Extend
{
Birthday
=
jobj
.
GetDateTime
(
"Birthday"
),
...
...
@@ -6848,6 +6851,7 @@ namespace REBORN.Services.SellService
Tel
=
jobj
.
GetStringValue
(
"Tel"
),
});
}
//orderGuestList = orderGuestList?.Distinct()?.ToList() ?? new List<RB_Travel_Guest_Extend>();
}
}
catch
(
Exception
ex
)
...
...
@@ -10960,7 +10964,7 @@ namespace REBORN.Services.SellService
LeaveStr
=
CacheManager
.
User
.
RbUserCache
.
GetEmployee
(
x
.
EnterID
)?.
IsLeave
==
1
?
"已离职"
:
""
,
LureEmpName
=
CacheManager
.
User
.
RbUserCache
.
GetEmployee
(
x
.
LureEmpId
)?.
EmName
??
""
,
statsstr
=
x
.
AirConfirm
==
2
?
"机票未确认"
:
(
int
)
x
.
OrderState
==
1
?
"正常"
:
(
int
)
x
.
OrderState
==
2
?
"占位"
:
(
int
)
x
.
OrderState
==
3
?
"候补"
:
(
int
)
x
.
OrderState
==
4
?
"取消"
:
""
,
OrderTypeName
=
userInfo
.
SimpleEasy
==
1
?
(
x
.
PriceTeamType
==
1
?
"定制团"
:
"外丢团"
)
:
(
x
.
IsLeaderOrder
==
1
?
"领队"
:
x
.
GroupType
.
GetEnumName
()),
OrderTypeName
=
userInfo
.
SimpleEasy
==
1
?
(
x
.
PriceTeamType
==
1
?
"定制团"
:
"外丢团"
)
:
(
x
.
IsLeaderOrder
==
1
?
"领队"
:
x
.
GroupType
.
GetEnumName
()),
//OrderType= CRMMergeOrderTypeEnum.Travel,
FinanceList
=
x
.
FinanceList
.
Where
(
z
=>
z
.
Type
==
Common
.
Enum
.
User
.
WFTempLateClassEnum
.
IN
).
Select
(
y
=>
new
{
...
...
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