Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
cfld-know-partner
Project
Project
Details
Activity
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
cfld-backend
cfld-know-partner
Commits
5ef30f20
Commit
5ef30f20
authored
Nov 03, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合伙招商api
parent
d419e42b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
35 deletions
+8
-35
PartnerProjectTemplate.java
...ain/java/com/partner/admin/VO/PartnerProjectTemplate.java
+1
-28
PartnerProjectInfoServiceImpl.java
...ner/admin/service/impl/PartnerProjectInfoServiceImpl.java
+7
-7
No files found.
src/main/java/com/partner/admin/VO/PartnerProjectTemplate.java
View file @
5ef30f20
...
...
@@ -5,33 +5,6 @@ import lombok.Data;
public
class
PartnerProjectTemplate
{
public
static
final
String
projectConfirmTemplate
=
"<p>"
+
"致:<span>@person</span> "
+
"</p>"
+
"<p>"
+
" 依据《招商合作协议》,现我方确认,您为我方引荐了<span> </span><b><u>@investmentSubject<span> </span></u></b>相关投资项目。我们的招商人员将会近期与您取得联系,与您一同完成企业对接。在项目落地后,我们将依据<span> </span>《招商合作协议》支付您相应的佣金。 "
+
"</p>"
+
"<p>"
+
"引荐项目主要内容如下:"
+
"</p>"
+
"<p>"
+
"意向投资方:<b><u>@investmentSubject</u></b>"
+
"</p>"
+
"<p>"
+
"企业注册地址:<span> </span><b><u>@regLocation</u></b> "
+
"</p>"
+
"<p>"
+
"项目拟投资总额 :<b><u><span>@projectInvestmentTotal</span>亿元</u></b>"
+
"</p>"
+
"<p>"
+
"项目关键决策人:<span> </span><b><u>@decisionMaker</u></b>"
+
"</p>"
+
"<p>"
+
"决策人职务:<span> </span><b><u>@decisionMakerPosition</u></b> "
+
"</p>"
+
"<p>"
+
"@date "
+
"</p>"
;
public
static
final
String
projectConfirmTemplate
=
"<p><br></p><p style=\"text-align: center;\"><strong>正文</strong></p><p><span style=\"color: rgb(51, 51, 51);\">致:@person@</span></p><p><span style=\"color: rgb(51, 51, 51);\"> </span><span style=\"color: rgb(51, 51, 51);\"><u><strong>依据《招商合作协议》,现我方确认,您为我方引荐了 @investmentSubject 相关投资项目。我们的招商人员将会近期与您取得联系,与您一同完成企业对接。在项目落地后,我们将依据 《招商合作协议》支付您相应的佣金。</strong></u></span></p><p><span style=\"color: rgb(51, 51, 51);\">引荐项目主要内容如下:</span></p><p><span style=\"color: rgb(51, 51, 51);\"><u><strong>意向投资方:@investmentSubject@</strong></u></span></p><p><span style=\"color: rgb(51, 51, 51);\"><u><strong>企业注册地址: @regLocation@</strong></u></span></p><p><span style=\"color: rgb(51, 51, 51);\"><u><strong>项目拟投资总额 :@projectInvestmentTotal@ 亿元 </strong></u></span></p><p><span style=\"color: rgb(51, 51, 51);\"><u><strong>项目关键决策人: @decisionMaker@</strong></u></span></p><p><span style=\"color: rgb(51, 51, 51);\"><u><strong>决策人职务: @decisionMakerPosition@</strong></u></span></p><p><span style=\"color: rgb(51, 51, 51);\">@date@</span></p><p><br></p>"
;
public
static
final
String
commissionConfirmTemplate
=
""
;
}
src/main/java/com/partner/admin/service/impl/PartnerProjectInfoServiceImpl.java
View file @
5ef30f20
...
...
@@ -461,13 +461,13 @@ public class PartnerProjectInfoServiceImpl extends ServiceImpl<PartnerProjectInf
public
String
getProjectConfirmTemplate
(
Integer
id
)
{
String
content
=
PartnerProjectTemplate
.
projectConfirmTemplate
;
ProjectConfirmTemplateVO
templateContent
=
partnerProjectInfoMapper
.
getProjectConfirmTemplate
(
id
);
content
=
content
.
replace
(
"@person"
,
templateContent
.
getPerson
()).
replace
(
"@investmentSubject"
,
templateContent
.
getInvestmentSubject
()).
replace
(
"@regLocation"
,
templateContent
.
getRegLocation
()).
replace
(
"@projectInvestmentTotal"
,
String
.
valueOf
(
templateContent
.
getProjectInvestmentTotal
().
setScale
(
2
,
RoundingMode
.
HALF_UP
))).
replace
(
"@decisionMaker"
,
templateContent
.
getDecisionMaker
()).
replace
(
"@decisionMakerPosition"
,
templateContent
.
getDecisionMakerPosition
()).
replace
(
"@date"
,
DateUtil
.
format
(
new
Date
(),
"yyyy年MM月dd日"
));
content
=
content
.
replace
(
"@person
@
"
,
templateContent
.
getPerson
()).
replace
(
"@investmentSubject
@
"
,
templateContent
.
getInvestmentSubject
()).
replace
(
"@regLocation
@
"
,
templateContent
.
getRegLocation
()).
replace
(
"@projectInvestmentTotal
@
"
,
String
.
valueOf
(
templateContent
.
getProjectInvestmentTotal
().
setScale
(
2
,
RoundingMode
.
HALF_UP
))).
replace
(
"@decisionMaker
@
"
,
templateContent
.
getDecisionMaker
()).
replace
(
"@decisionMakerPosition
@
"
,
templateContent
.
getDecisionMakerPosition
()).
replace
(
"@date
@
"
,
DateUtil
.
format
(
new
Date
(),
"yyyy年MM月dd日"
));
return
content
;
}
...
...
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