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
4a9ae94b
Commit
4a9ae94b
authored
Nov 24, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a1209f9c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
121 additions
and
1 deletion
+121
-1
RB_Contract.cs
REBORN.Model/Entity/Dmc/RB_Contract.cs
+5
-0
RB_Travel_Contract.cs
REBORN.Model/Entity/Dmc/RB_Travel_Contract.cs
+5
-0
RB_Contract_Extend.cs
REBORN.Model/Extend/Dmc/RB_Contract_Extend.cs
+20
-0
RB_Travel_Contract_Extend.cs
REBORN.Model/Extend/Dmc/RB_Travel_Contract_Extend.cs
+5
-0
TravelContractModule.cs
REBORN.Module.DMCModule/TravelContractModule.cs
+32
-0
TravelContractService.cs
REBORN.Services.DMCService/TravelContractService.cs
+54
-1
No files found.
REBORN.Model/Entity/Dmc/RB_Contract.cs
View file @
4a9ae94b
...
...
@@ -1045,5 +1045,10 @@ namespace REBORN.Model.Entity.Dmc
/// 费用支付说明
/// </summary>
public
string
PriceDescription
{
get
;
set
;
}
/// <summary>
/// 合团附件 最多3个,只支持 PDF docx
/// </summary>
public
string
FileUrl
{
get
;
set
;
}
}
}
REBORN.Model/Entity/Dmc/RB_Travel_Contract.cs
View file @
4a9ae94b
...
...
@@ -1136,5 +1136,10 @@ namespace REBORN.Model.Entity.Dmc
/// 合同模板 0系统合同 1旅游局合同
/// </summary>
public
int
ContractTemplete
{
get
;
set
;
}
/// <summary>
/// 合团附件 最多3个,只支持 PDF docx
/// </summary>
public
string
FileUrl
{
get
;
set
;
}
}
}
REBORN.Model/Extend/Dmc/RB_Contract_Extend.cs
View file @
4a9ae94b
...
...
@@ -33,6 +33,11 @@ namespace REBORN.Model.Extend.Dmc
/// 是否上传旅游局合同 1是
/// </summary>
public
int
IsApplyContract
{
get
;
set
;
}
/// <summary>
/// 合团附件
/// </summary>
public
List
<
ContractFile
>
FileList
{
get
;
set
;
}
}
/// <summary>
...
...
@@ -75,4 +80,19 @@ namespace REBORN.Model.Extend.Dmc
/// </summary>
public
string
Mobile
{
get
;
set
;
}
}
/// <summary>
/// 合同附件
/// </summary>
public
class
ContractFile
{
/// <summary>
/// 路径
/// </summary>
public
string
Url
{
get
;
set
;
}
/// <summary>
/// 名称
/// </summary>
public
string
Name
{
get
;
set
;
}
}
}
REBORN.Model/Extend/Dmc/RB_Travel_Contract_Extend.cs
View file @
4a9ae94b
...
...
@@ -171,6 +171,11 @@ namespace REBORN.Model.Extend.Dmc
/// </summary>
public
int
IsApplyContract
{
get
;
set
;
}
/// <summary>
/// 合同列表
/// </summary>
public
List
<
ContractFile
>
FileList
{
get
;
set
;
}
}
/// <summary>
...
...
REBORN.Module.DMCModule/TravelContractModule.cs
View file @
4a9ae94b
...
...
@@ -321,6 +321,7 @@ namespace REBORN.Module.DMCModule
{
nameof
(
RB_Contract_Extend
.
DepositDate
),
model
.
DepositDate
},
{
nameof
(
RB_Contract_Extend
.
FinalPrice
),
model
.
FinalPrice
},
{
nameof
(
RB_Contract_Extend
.
PriceDescription
),
model
.
PriceDescription
},
{
nameof
(
RB_Contract_Extend
.
FileUrl
),
model
.
FileUrl
},
{
nameof
(
RB_Contract_Extend
.
UpdateTime
),
DateTime
.
Now
},
};
flag
=
contractRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Contract_Extend
.
Id
),
model
.
Id
));
...
...
@@ -580,7 +581,21 @@ namespace REBORN.Module.DMCModule
MergeToCompanyName
=
htModel
.
Carpool_Company
}
};
if
(!
string
.
IsNullOrEmpty
(
htModel
.
FileUrl
))
{
var
fileList
=
JsonHelper
.
DeserializeObject
<
List
<
ContractFile
>>(
htModel
.
FileUrl
);
if
(
fileList
.
Any
())
{
var
Attachments
=
new
List
<
Attachment
>();
foreach
(
var
item
in
fileList
)
{
Attachments
.
Add
(
new
Attachment
()
{
Url
=
item
.
Url
,
Type
=
System
.
IO
.
Path
.
GetExtension
(
item
.
Url
)
});
}
req
.
Attachments
=
Attachments
.
ToArray
();
}
}
var
payload
=
service
.
GetJson
(
req
);
LogHelper
.
Write
(
payload
);
...
...
@@ -1036,6 +1051,7 @@ namespace REBORN.Module.DMCModule
{
nameof
(
RB_Travel_Contract_Extend
.
Tourists_Sex
),
extModel
.
Tourists_Sex
},
{
nameof
(
RB_Travel_Contract_Extend
.
Tourists_Unit
),
extModel
.
Tourists_Unit
},
{
nameof
(
RB_Travel_Contract_Extend
.
Tourists_IDType
),
extModel
.
Tourists_IDType
},
{
nameof
(
RB_Travel_Contract_Extend
.
FileUrl
),
extModel
.
FileUrl
},
};
flag
=
travel_ContractRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Travel_Contract_Extend
.
ID
),
extModel
.
ID
));
if
(
flag
)
{
...
...
@@ -1631,6 +1647,22 @@ namespace REBORN.Module.DMCModule
}
#
endregion
#
region
合同附件
if
(
htModel
.
FileList
!=
null
&&
htModel
.
FileList
.
Any
())
{
var
Attachments
=
new
List
<
Attachment
>();
foreach
(
var
item
in
htModel
.
FileList
)
{
Attachments
.
Add
(
new
Attachment
()
{
Url
=
item
.
Url
,
Type
=
System
.
IO
.
Path
.
GetExtension
(
item
.
Url
)
});
}
req
.
Attachments
=
Attachments
.
ToArray
();
}
#
endregion
foreach
(
var
item
in
termsList
.
Where
(
x
=>
x
.
SNO
==
5
))
{
if
(
item
.
Name
==
"代订服务的责任约定"
&&
htModel
.
OtherConventionPrice
>
0
&&
htModel
.
RB_Group_Id
==
106
)
...
...
REBORN.Services.DMCService/TravelContractService.cs
View file @
4a9ae94b
...
...
@@ -395,6 +395,29 @@ namespace REBORN.Services.DMCService
}
}
}
string
fileList
=
parm
.
GetStringValue
(
"fileList"
);
model
.
FileList
=
new
List
<
ContractFile
>();
if
(!
string
.
IsNullOrWhiteSpace
(
fileList
))
{
JArray
fileArr
=
JArray
.
Parse
(
fileList
);
if
(
fileArr
!=
null
&&
fileArr
.
Count
>
0
)
{
if
(
fileArr
.
Count
>
3
)
{
return
ApiResult
.
Failed
(
"附件最多上传3个"
);
}
foreach
(
var
jItem
in
fileArr
)
{
JObject
jobj
=
JObject
.
Parse
(
JsonHelper
.
Serialize
(
jItem
));
model
.
FileList
.
Add
(
new
ContractFile
{
Url
=
jobj
.
GetStringValue
(
"Url"
),
Name
=
jobj
.
GetStringValue
(
"Name"
),
});
}
if
(
model
.
FileList
!=
null
&&
model
.
FileList
.
Any
())
{
model
.
FileUrl
=
JsonConvert
.
SerializeObject
(
model
.
FileList
);
}
}
}
if
(
model
.
Id
==
0
)
//查询旅客信息
{
model
.
CreateBy
=
userInfo
.
EmployeeId
;
...
...
@@ -1006,7 +1029,8 @@ namespace REBORN.Services.DMCService
thirdContractSignUrl
=
model
?.
ThirdContractSignUrl
,
thirdContractQRCode
=
model
?.
ThirdContractQRCode
,
thirdContractFileUrl
=
model
?.
ThirdContractFileUrl
,
contractTemplete
=
model
?.
ContractTemplete
contractTemplete
=
model
?.
ContractTemplete
,
fileList
=
!
string
.
IsNullOrEmpty
(
model
?.
FileUrl
)
?
JsonHelper
.
DeserializeObject
<
List
<
ContractFile
>>(
model
?.
FileUrl
)
:
new
List
<
ContractFile
>()
};
return
ApiResult
.
Success
(
data
:
result
);
}
...
...
@@ -1322,6 +1346,10 @@ namespace REBORN.Services.DMCService
}
}
}
model
.
FileList
=
new
List
<
ContractFile
>();
if
(!
string
.
IsNullOrEmpty
(
model
.
FileUrl
))
{
model
.
FileList
=
JsonHelper
.
DeserializeObject
<
List
<
ContractFile
>>(
model
.
FileUrl
);
}
return
ApiResult
.
Success
(
"请求成功!"
,
model
);
}
...
...
@@ -1771,6 +1799,31 @@ namespace REBORN.Services.DMCService
{
extModel
.
TicketAndHotelJson
=
Common
.
Plugin
.
JsonHelper
.
Serialize
(
extModel
.
ContractTicketAndHotel
);
}
string
fileList
=
parm
.
GetStringValue
(
"FileList"
);
extModel
.
FileList
=
new
List
<
ContractFile
>();
if
(!
string
.
IsNullOrWhiteSpace
(
fileList
))
{
JArray
fileArr
=
JArray
.
Parse
(
fileList
);
if
(
fileArr
!=
null
&&
fileArr
.
Count
>
0
)
{
if
(
fileArr
.
Count
>
3
)
{
return
ApiResult
.
Failed
(
"附件最多上传3个"
);
}
foreach
(
var
jItem
in
fileArr
)
{
JObject
jobj
=
JObject
.
Parse
(
JsonHelper
.
Serialize
(
jItem
));
extModel
.
FileList
.
Add
(
new
ContractFile
{
Url
=
jobj
.
GetStringValue
(
"Url"
),
Name
=
jobj
.
GetStringValue
(
"Name"
),
});
}
if
(
extModel
.
FileList
!=
null
&&
extModel
.
FileList
.
Any
())
{
extModel
.
FileUrl
=
JsonConvert
.
SerializeObject
(
extModel
.
FileList
);
}
}
}
var
flag
=
travelContractModule
.
SetTravelContractModule
(
extModel
,
out
int
Id
);
return
flag
?
ApiResult
.
Success
(
"操作成功!"
,
data
:
Id
)
:
ApiResult
.
Failed
(
"操作失败!"
);
}
...
...
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