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
7c8ef808
Commit
7c8ef808
authored
Aug 03, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 活码作废 关联详情状态改为作废不删除
parent
367c9a45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
WelcomeRelationServiceImpl.java
...e/service/service/hm/impl/WelcomeRelationServiceImpl.java
+4
-1
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+6
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/WelcomeRelationServiceImpl.java
View file @
7c8ef808
...
...
@@ -161,7 +161,10 @@ public class WelcomeRelationServiceImpl implements WelcomeRelationService {
return
Boolean
.
TRUE
;
}
welcomeTemplateRelation
.
setUpdateTime
(
new
Date
());
welcomeTemplateRelation
.
setStatus
(
WelcomeRelationStatusEnum
.
DISABLE
.
getCode
());
welcomeTemplateRelation
.
setStatus
(
hmWelcomeRelationBO
.
getStatus
());
if
(
welcomeTemplateRelation
.
getStatus
()
==
null
){
welcomeTemplateRelation
.
setStatus
(
WelcomeRelationStatusEnum
.
DISABLE
.
getCode
());
}
welcomeTemplateRelationMapper
.
updateByPrimaryKeySelective
(
welcomeTemplateRelation
);
// 定义
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
7c8ef808
...
...
@@ -24,6 +24,7 @@ import com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.enums.WelcomeRelationStatusEnum
;
import
com.gic.haoban.manage.api.enums.hm.HmWelcomeReferType
;
import
com.gic.haoban.manage.api.service.hm.HmQrcodeApiService
;
import
com.gic.haoban.manage.service.config.Config
;
...
...
@@ -162,7 +163,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
int
saveResult
=
hmQrcodeService
.
insert
(
hmQrcodeQDTO
);
if
(
saveResult
==
1
)
{
// save welcome relation
this
.
updateWelcomeRelation
(
hmQrcodeQDTO
);
this
.
updateWelcomeRelation
(
hmQrcodeQDTO
,
null
);
}
return
ServiceResponse
.
success
();
...
...
@@ -315,7 +316,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
if
(
updateResult
==
1
)
{
// 更新欢迎语引用次数
hmQrcodeQDTO
.
setHmCode
(
hmQrcodeBO
.
getHmCode
());
this
.
updateWelcomeRelation
(
hmQrcodeQDTO
);
this
.
updateWelcomeRelation
(
hmQrcodeQDTO
,
null
);
}
return
ServiceResponse
.
success
();
}
...
...
@@ -424,7 +425,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
*
* @param hmQrcodeQDTO
*/
private
void
updateWelcomeRelation
(
HmQrcodeQDTO
hmQrcodeQDTO
)
{
private
void
updateWelcomeRelation
(
HmQrcodeQDTO
hmQrcodeQDTO
,
Integer
status
)
{
HmWelcomeRelationBO
welcomeRelationBo
=
new
HmWelcomeRelationBO
();
welcomeRelationBo
.
setEnterpriseId
(
hmQrcodeQDTO
.
getEnterpriseId
());
welcomeRelationBo
.
setWxEnterpriseId
(
hmQrcodeQDTO
.
getWxEnterpriseId
());
...
...
@@ -433,6 +434,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
welcomeRelationBo
.
setReferCode
(
hmQrcodeQDTO
.
getHmCode
());
welcomeRelationBo
.
setReferName
(
hmQrcodeQDTO
.
getName
());
welcomeRelationBo
.
setType
(
HmWelcomeReferType
.
HM
.
getCode
());
welcomeRelationBo
.
setStatus
(
status
);
welcomeRelationService
.
updateWelcomeRelation
(
welcomeRelationBo
);
}
...
...
@@ -648,7 +650,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
hmQrcodeService
.
deleteById
(
hmId
);
HmQrcodeQDTO
hmQrcodeQDTO
=
new
HmQrcodeQDTO
();
hmQrcodeQDTO
.
setHmId
(
hmId
);
this
.
updateWelcomeRelation
(
hmQrcodeQDTO
);
this
.
updateWelcomeRelation
(
hmQrcodeQDTO
,
WelcomeRelationStatusEnum
.
DEPRECATED
.
getCode
()
);
return
ServiceResponse
.
success
();
}
...
...
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