Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
af5a5d1a
Commit
af5a5d1a
authored
Jul 12, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 保存落地页、欢迎语关联关系
parent
10979da2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
6 deletions
+10
-6
HmPageRelationBO.java
...ic/haoban/manage/service/pojo/bo/hm/HmPageRelationBO.java
+3
-0
HmPageRelationService.java
...oban/manage/service/service/hm/HmPageRelationService.java
+1
-1
WelcomeRelationService.java
...ban/manage/service/service/hm/WelcomeRelationService.java
+1
-1
HmPageRelationServiceImpl.java
...ge/service/service/hm/impl/HmPageRelationServiceImpl.java
+2
-1
WelcomeRelationServiceImpl.java
...e/service/service/hm/impl/WelcomeRelationServiceImpl.java
+1
-1
HmPageApiServiceImpl.java
...age/service/service/out/impl/hm/HmPageApiServiceImpl.java
+1
-1
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/hm/HmPageRelationBO.java
View file @
af5a5d1a
...
...
@@ -35,6 +35,9 @@ public class HmPageRelationBO implements Serializable {
*/
private
String
referId
;
/**
* 引用方code
*/
private
String
referCode
;
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/HmPageRelationService.java
View file @
af5a5d1a
...
...
@@ -31,7 +31,7 @@ public interface HmPageRelationService {
* @param hmPageRelationBO
* @return
*/
boolean
update
RelationStatus
(
HmPageRelationBO
hmPageRelationBO
);
boolean
update
PageRelation
(
HmPageRelationBO
hmPageRelationBO
);
/**
* 根据落地页模板code 查询关联的引用方
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/WelcomeRelationService.java
View file @
af5a5d1a
...
...
@@ -59,5 +59,5 @@ public interface WelcomeRelationService {
* @see com.gic.haoban.manage.api.enums.WelcomeRelationStatusEnum
* @return
*/
Boolean
updateWelcomeRelation
Status
(
HmWelcomeRelationBO
hmWelcomeRelationBO
);
Boolean
updateWelcomeRelation
(
HmWelcomeRelationBO
hmWelcomeRelationBO
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmPageRelationServiceImpl.java
View file @
af5a5d1a
...
...
@@ -45,6 +45,7 @@ public class HmPageRelationServiceImpl implements HmPageRelationService {
pageRelation
.
setWxEnterpriseId
(
hmPageRelationBO
.
getWxEnterpriseId
());
pageRelation
.
setPageCode
(
hmPageRelationBO
.
getPageCode
());
pageRelation
.
setReferId
(
hmPageRelationBO
.
getReferId
());
pageRelation
.
setReferCode
(
hmPageRelationBO
.
getReferCode
());
pageRelation
.
setReferName
(
hmPageRelationBO
.
getReferName
());
pageRelation
.
setCreateTime
(
new
Date
());
pageRelation
.
setUpdateTime
(
new
Date
());
...
...
@@ -54,7 +55,7 @@ public class HmPageRelationServiceImpl implements HmPageRelationService {
}
@Override
public
boolean
update
RelationStatus
(
HmPageRelationBO
hmPageRelationBO
)
{
public
boolean
update
PageRelation
(
HmPageRelationBO
hmPageRelationBO
)
{
// 移除该referId之前的引用
Date
now
=
new
Date
();
HmPageRelationQO
pageRelationQo
=
new
HmPageRelationQO
();
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/WelcomeRelationServiceImpl.java
View file @
af5a5d1a
...
...
@@ -143,7 +143,7 @@ public class WelcomeRelationServiceImpl implements WelcomeRelationService {
*/
@Override
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
public
Boolean
updateWelcomeRelation
Status
(
HmWelcomeRelationBO
hmWelcomeRelationBO
)
{
public
Boolean
updateWelcomeRelation
(
HmWelcomeRelationBO
hmWelcomeRelationBO
)
{
log
.
info
(
"[updateWelcomeRelationStatus] params:{}"
,
JSON
.
toJSONString
(
hmWelcomeRelationBO
));
// 取消该referId已有的引用
List
<
TabHaobanWelcomeTemplateRelation
>
tabHaobanWelcomeTemplateRelations
=
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmPageApiServiceImpl.java
View file @
af5a5d1a
...
...
@@ -102,7 +102,7 @@ public class HmPageApiServiceImpl implements HmPageApiService {
*/
private
Integer
checkPageIsBeQuoted
(
String
pageCode
)
{
List
<
HmPageRelationBO
>
relations
=
pageRelationService
.
queryPageRelation
(
pageCode
);
return
0
;
return
relations
.
size
()
;
}
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
af5a5d1a
...
...
@@ -193,7 +193,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
welcomeRelationBo
.
setReferCode
(
hmQrcodeQDTO
.
getHmCode
());
welcomeRelationBo
.
setReferName
(
hmQrcodeQDTO
.
getName
());
welcomeRelationBo
.
setType
(
HmWelcomeReferType
.
HM
.
getCode
());
welcomeRelationService
.
updateWelcomeRelation
Status
(
welcomeRelationBo
);
welcomeRelationService
.
updateWelcomeRelation
(
welcomeRelationBo
);
}
/**
...
...
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