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
a8f48032
Commit
a8f48032
authored
Sep 08, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改酒店订单接口
parent
58e0b429
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
283 additions
and
129 deletions
+283
-129
StringHelper.cs
REBORN.Common/Plugin/StringHelper.cs
+8
-16
VisaModule.cs
REBORN.Module.DMCModule/VisaModule.cs
+2
-1
CustomerOrderModule.cs
REBORN.Module.SellModule/CustomerOrderModule.cs
+194
-84
SellOrderModule.cs
REBORN.Module.SellModule/SellOrderModule.cs
+3
-1
VisaService.cs
REBORN.Services.DMCService/VisaService.cs
+8
-11
CustomerOrderService.cs
REBORN.Services.SellService/CustomerOrderService.cs
+66
-16
SellOrderService.cs
REBORN.Services.SellService/SellOrderService.cs
+2
-0
No files found.
REBORN.Common/Plugin/StringHelper.cs
View file @
a8f48032
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Collections.Specialized
;
using
System.Collections.Specialized
;
using
System.IO
;
using
System.IO
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
System.Text.RegularExpressions
;
using
System.Web
;
using
System.Web
;
...
@@ -14,8 +15,6 @@ namespace REBORN.Common.Plugin
...
@@ -14,8 +15,6 @@ namespace REBORN.Common.Plugin
/// </summary>
/// </summary>
public
class
StringHelper
public
class
StringHelper
{
{
private
const
string
digits
=
"0123456789"
;
private
const
string
letters
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
;
private
static
Random
random
=
new
Random
();
private
static
Random
random
=
new
Random
();
#
region
"随机数"
#
region
"随机数"
/// <summary>
/// <summary>
...
@@ -24,22 +23,15 @@ namespace REBORN.Common.Plugin
...
@@ -24,22 +23,15 @@ namespace REBORN.Common.Plugin
/// <returns></returns>
/// <returns></returns>
public
static
string
GenerateRandomString
()
public
static
string
GenerateRandomString
()
{
{
char
[]
result
=
new
char
[
10
];
// 生成9位随机数字
string
digits
=
new
string
(
Enumerable
.
Repeat
(
"0123456789"
,
9
)
.
Select
(
s
=>
s
[
random
.
Next
(
s
.
Length
)]).
ToArray
());
// 先填充9位数字
// 生成1位随机字母(只包含大写字母)
for
(
int
i
=
0
;
i
<
9
;
i
++)
string
letter
=
((
char
)
random
.
Next
(
'A'
,
'Z'
+
1
)).
ToString
();
{
result
[
i
]
=
(
char
)
random
.
Next
(
'0'
,
'9'
+
1
);
}
// 生成1位字母
char
letter
=
(
char
)
random
.
Next
(
'A'
,
'Z'
+
1
);
// 随机选择一个位置插入字母
int
letterPosition
=
random
.
Next
(
10
);
result
[
letterPosition
]
=
letter
;
return
new
string
(
result
);
// 字母放在最后
return
digits
+
letter
;
}
}
/// <summary>
/// <summary>
...
...
REBORN.Module.DMCModule/VisaModule.cs
View file @
a8f48032
...
@@ -3207,7 +3207,8 @@ TEL:03-3779-9111";
...
@@ -3207,7 +3207,8 @@ TEL:03-3779-9111";
{
nameof
(
RB_Sell_VisaOrder
.
FinalPriceTips
),
model
.
FinalPriceTips
},
{
nameof
(
RB_Sell_VisaOrder
.
FinalPriceTips
),
model
.
FinalPriceTips
},
{
nameof
(
RB_Sell_VisaOrder
.
SupplierId
),
model
.
SupplierId
},
{
nameof
(
RB_Sell_VisaOrder
.
SupplierId
),
model
.
SupplierId
},
{
nameof
(
RB_Sell_VisaOrder
.
VisaId
),
model
.
VisaId
},
{
nameof
(
RB_Sell_VisaOrder
.
VisaId
),
model
.
VisaId
},
{
nameof
(
RB_Sell_VisaOrder
.
RB_Branch_Id
),
model
.
RB_Branch_Id
},
{
nameof
(
RB_Sell_VisaOrder
.
CreateBy
),
model
.
CreateBy
},
};
};
IList
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
IList
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
{
...
...
REBORN.Module.SellModule/CustomerOrderModule.cs
View file @
a8f48032
This diff is collapsed.
Click to expand it.
REBORN.Module.SellModule/SellOrderModule.cs
View file @
a8f48032
...
@@ -5589,7 +5589,7 @@ namespace REBORN.Module.SellModule
...
@@ -5589,7 +5589,7 @@ namespace REBORN.Module.SellModule
tmodel.OutBranchId = userInfo.RB_Branch_id;
tmodel.OutBranchId = userInfo.RB_Branch_id;
tmodel.RB_Group_Id = dmodel.RB_Group_Id;
tmodel.RB_Group_Id = dmodel.RB_Group_Id;
tmodel.RB_Department_Id = userInfo.RB_Department_Id;
tmodel.RB_Department_Id = userInfo.RB_Department_Id;
tmodel.TCNUM =
StringHelper.FormatDate(tmodel.StartDate) +
StringHelper.GenerateRandomString();
tmodel.TCNUM =
tmodel.StartDate.Value.ToString("yyyyMMdd") +
StringHelper.GenerateRandomString();
tmodel.Status = GroupStateEnum.Normal;
tmodel.Status = GroupStateEnum.Normal;
tmodel.TCState = TravelSaleStateEnum.SaleTeam;
tmodel.TCState = TravelSaleStateEnum.SaleTeam;
var hotelId = travel_PriceRepository.Insert(tmodel);
var hotelId = travel_PriceRepository.Insert(tmodel);
...
@@ -6043,6 +6043,8 @@ namespace REBORN.Module.SellModule
...
@@ -6043,6 +6043,8 @@ namespace REBORN.Module.SellModule
tomodel.ContactName = dmodel.ContactName;
tomodel.ContactName = dmodel.ContactName;
tomodel.ContactMobile = dmodel.ContactMobile;
tomodel.ContactMobile = dmodel.ContactMobile;
tomodel.IsLeaderOrder = 0;
tomodel.IsLeaderOrder = 0;
tomodel.EnterID = dmodel.EnterID;
tomodel.RB_Branch_Id = dmodel.RB_Branch_Id;
orderRepository.Update(tomodel, trans);
orderRepository.Update(tomodel, trans);
//验证 团款是否收齐
//验证 团款是否收齐
if ((tomodel.PreferPrice ?? 0) <= (tomodel.Income ?? 0) + (tomodel.PlatformTax ?? 0) + (tomodel.DiscountMoney ?? 0) + (tomodel.RedEnvelopeMoney ?? 0) - (tomodel.Refund ?? 0))
if ((tomodel.PreferPrice ?? 0) <= (tomodel.Income ?? 0) + (tomodel.PlatformTax ?? 0) + (tomodel.DiscountMoney ?? 0) + (tomodel.RedEnvelopeMoney ?? 0) - (tomodel.Refund ?? 0))
REBORN.Services.DMCService/VisaService.cs
View file @
a8f48032
...
@@ -5028,6 +5028,11 @@ namespace REBORN.Services.DMCService
...
@@ -5028,6 +5028,11 @@ namespace REBORN.Services.DMCService
Meet
=
parm
.
GetDecimal
(
"Meet"
),
Meet
=
parm
.
GetDecimal
(
"Meet"
),
TotalPrice
=
parm
.
GetDecimal
(
"TotalPrice"
),
TotalPrice
=
parm
.
GetDecimal
(
"TotalPrice"
),
};
};
int
createBy
=
parm
.
GetInt
(
"CreateBy"
,
0
);
if
(
createBy
>
0
)
{
userInfo
=
CacheManager
.
User
.
RbUserCache
.
GetUserLoginInfo
(
createBy
.
ToString
());
}
//出行人员名单(姓名、电话、出生年月日是必须的、护照号、身份证号、护照有效期非必填)
//出行人员名单(姓名、电话、出生年月日是必须的、护照号、身份证号、护照有效期非必填)
string
guestInfoStr
=
parm
.
GetStringValue
(
"GuestList"
);
string
guestInfoStr
=
parm
.
GetStringValue
(
"GuestList"
);
List
<
RB_Travel_Guest_Extend
>
orderGuestList
=
new
List
<
RB_Travel_Guest_Extend
>();
List
<
RB_Travel_Guest_Extend
>
orderGuestList
=
new
List
<
RB_Travel_Guest_Extend
>();
...
@@ -5232,15 +5237,6 @@ namespace REBORN.Services.DMCService
...
@@ -5232,15 +5237,6 @@ namespace REBORN.Services.DMCService
model
.
VisaOrderStatus
=
1
;
model
.
VisaOrderStatus
=
1
;
model
.
IsCommission
=
2
;
model
.
IsCommission
=
2
;
model
.
Income
=
0
;
model
.
Income
=
0
;
//if (model.ClientType == 2)
//{
// model.TotalPrice = VisaProductModel.VisaB2CPrice * model.PeopleNum;
//}
//else
//{
// model.TotalPrice = VisaProductModel.VisaPrice * model.PeopleNum;
//}
// IsUpdateTCNum = false;
}
}
else
else
{
{
...
@@ -5298,8 +5294,8 @@ namespace REBORN.Services.DMCService
...
@@ -5298,8 +5294,8 @@ namespace REBORN.Services.DMCService
model
.
DiscountMoney
=
0
;
model
.
DiscountMoney
=
0
;
}
}
#
endregion
#
endregion
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
model
.
CreateBy
=
userInfo
.
EmployeeId
;
model
.
Unit_Price
=
Math
.
Round
((
model
.
TotalPrice
??
0
)
/
(
model
.
PeopleNum
??
1
),
2
);
//VisaProductModel.VisaPrice;
model
.
Unit_Price
=
Math
.
Round
((
model
.
TotalPrice
??
0
)
/
(
model
.
PeopleNum
??
1
),
2
);
//VisaProductModel.VisaPrice;
model
.
UnitB2C_Price
=
VisaProductModel
.
VisaB2CPrice
;
model
.
UnitB2C_Price
=
VisaProductModel
.
VisaB2CPrice
;
model
.
CommissionMoney
=
VisaProductModel
.
CommissionPrice
;
model
.
CommissionMoney
=
VisaProductModel
.
CommissionPrice
;
...
@@ -5684,6 +5680,7 @@ namespace REBORN.Services.DMCService
...
@@ -5684,6 +5680,7 @@ namespace REBORN.Services.DMCService
x
.
FinalPriceTips
,
x
.
FinalPriceTips
,
x
.
Meet
,
x
.
Meet
,
x
.
OtherContractList
,
x
.
OtherContractList
,
CreateBy
=
x
.
CreateBy
??
0
,
ContractType
=
Common
.
Enum
.
ResourceTypeEnum
.
Visa
,
ContractType
=
Common
.
Enum
.
ResourceTypeEnum
.
Visa
,
SupplierModel
=
new
{
SupplierId
=
x
?.
SupplierModel
?.
ID
??
0
,
SupplierName
=
x
?.
SupplierModel
?.
Name
??
""
,
Tel
=
x
?.
SupplierModel
?.
Tel
??
""
,
Contact
=
x
?.
SupplierModel
?.
Contact
??
""
,
CompanyName
=
x
?.
SupplierModel
?.
CompanyName
??
""
,
DutyParagraph
=
x
?.
SupplierModel
?.
DutyParagraph
??
""
,
CompanyPhone
=
x
?.
SupplierModel
?.
CompanyPhone
??
""
,
OpeningBank
=
x
?.
SupplierModel
?.
OpeningBank
??
""
,
BankNo
=
x
?.
SupplierModel
?.
BankNo
??
""
},
SupplierModel
=
new
{
SupplierId
=
x
?.
SupplierModel
?.
ID
??
0
,
SupplierName
=
x
?.
SupplierModel
?.
Name
??
""
,
Tel
=
x
?.
SupplierModel
?.
Tel
??
""
,
Contact
=
x
?.
SupplierModel
?.
Contact
??
""
,
CompanyName
=
x
?.
SupplierModel
?.
CompanyName
??
""
,
DutyParagraph
=
x
?.
SupplierModel
?.
DutyParagraph
??
""
,
CompanyPhone
=
x
?.
SupplierModel
?.
CompanyPhone
??
""
,
OpeningBank
=
x
?.
SupplierModel
?.
OpeningBank
??
""
,
BankNo
=
x
?.
SupplierModel
?.
BankNo
??
""
},
AppointOPList
=
x
.
AppointOPList
?.
Select
(
z
=>
new
{
z
.
OPId
,
OPName
=
CacheManager
.
User
.
RbUserCache
.
GetUserLoginInfo
(
z
.
OPId
.
ToString
())?.
emName
??
""
}),
AppointOPList
=
x
.
AppointOPList
?.
Select
(
z
=>
new
{
z
.
OPId
,
OPName
=
CacheManager
.
User
.
RbUserCache
.
GetUserLoginInfo
(
z
.
OPId
.
ToString
())?.
emName
??
""
}),
...
...
REBORN.Services.SellService/CustomerOrderService.cs
View file @
a8f48032
This diff is collapsed.
Click to expand it.
REBORN.Services.SellService/SellOrderService.cs
View file @
a8f48032
...
@@ -11777,6 +11777,8 @@ namespace REBORN.Services.SellService
...
@@ -11777,6 +11777,8 @@ namespace REBORN.Services.SellService
AppointOPList
=
x
.
AppointOPInfoList
?.
Select
(
z
=>
new
{
z
.
OPId
,
OPName
=
CacheManager
.
User
.
RbUserCache
.
GetUserLoginInfo
(
z
.
OPId
.
ToString
())?.
emName
??
""
}),
AppointOPList
=
x
.
AppointOPInfoList
?.
Select
(
z
=>
new
{
z
.
OPId
,
OPName
=
CacheManager
.
User
.
RbUserCache
.
GetUserLoginInfo
(
z
.
OPId
.
ToString
())?.
emName
??
""
}),
x
.
WordPathFileData
,
x
.
WordPathFileData
,
Branch_Id
=
x
.
RB_Branch_Id
,
Branch_Id
=
x
.
RB_Branch_Id
,
EnterID
=
x
.
EnterID
,
CreateBy
=
x
.
EnterID
,
});
});
pmodel
.
count
=
int
.
Parse
(
count
.
ToString
());
pmodel
.
count
=
int
.
Parse
(
count
.
ToString
());
pmodel
.
pageData
=
data
;
pmodel
.
pageData
=
data
;
...
...
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