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
bd196b7c
Commit
bd196b7c
authored
Jul 22, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活码操作
parent
b74afe48
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
97 additions
and
56 deletions
+97
-56
HmQrcodeQDTO.java
...a/com/gic/haoban/manage/api/dto/qdto/hm/HmQrcodeQDTO.java
+2
-2
ChannelCodeEnum.java
...java/com/gic/haoban/manage/api/enums/ChannelCodeEnum.java
+10
-6
HmQrcodeApiService.java
.../gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
+13
-10
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+2
-1
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+0
-5
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+4
-4
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+63
-27
HmQrcodeController.java
...c/haoban/manage/web/controller/hm/HmQrcodeController.java
+3
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/qdto/hm/HmQrcodeQDTO.java
View file @
bd196b7c
...
...
@@ -97,9 +97,9 @@ public class HmQrcodeQDTO implements Serializable {
private
String
staffId
;
private
String
staffName
;
/**
* 调用类型
,1:手动调用;2:系统调用;3:批量调用
* 调用类型
来源 0:不记录,1:来源为后台操作 其他查看枚举 HbBindEnum
*/
private
Integer
invokingType
;
private
Integer
invokingType
=
0
;
public
Long
getHmId
()
{
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/ChannelCodeEnum.java
View file @
bd196b7c
...
...
@@ -4,18 +4,21 @@ package com.gic.haoban.manage.api.enums;
* Created by hua on 2020/6/24.
*/
public
enum
ChannelCodeEnum
{
/**
* 好办绑定 解绑类型
*/
ADMIN_BIND
(
1001
,
"后台管理员绑定"
),
SELF_BIND
(
1002
,
"好办
客户端
绑定"
),
AUDIT_BIND
(
1003
,
"审核绑定"
),
SELF_BIND
(
1002
,
"好办
小程序
绑定"
),
AUDIT_BIND
(
1003
,
"
后台
审核绑定"
),
SYNC_BIND
(
1004
,
"GIC同步绑定"
),
ADMIN_UNBIND
(
2001
,
"后台管理员解绑"
),
SELF_UNBIND
(
2002
,
"好办
客户
端解绑"
),
SELF_UNBIND
(
2002
,
"好办
小程序
端解绑"
),
SYNC_UNBIND
(
2003
,
"GIC同步解绑"
),
WEIXIN_DEL
(
2004
,
"
微信删除
解绑"
),
AUDIT_UNBIND
(
2005
,
"审核解绑"
),
WEIXIN_DEL
(
2004
,
"
员工离职
解绑"
),
AUDIT_UNBIND
(
2005
,
"
后台
审核解绑"
),
RIGHT_CHANGE_UNBIND
(
2006
,
"权限变更解绑"
),
STORE_CHANGE_UNBIND
(
2007
,
"门店变更解绑"
),
// CHANGR_RIGHT_UNBIND(2005,"审核解绑"),
;
private
int
code
;
private
String
name
;
...
...
@@ -41,6 +44,7 @@ public enum ChannelCodeEnum {
this
.
name
=
name
;
}
public
static
String
getNameByCode
(
int
code
)
{
ChannelCodeEnum
[]
values
=
ChannelCodeEnum
.
values
();
for
(
ChannelCodeEnum
channelCodeEnum
:
values
)
{
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
View file @
bd196b7c
package
com
.
gic
.
haoban
.
manage
.
api
.
service
.
hm
;
import
java.util.List
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
...
...
@@ -11,6 +9,8 @@ import com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
java.util.List
;
/**
* @author mozhu
* @date 2022/7/5 09:33
...
...
@@ -72,23 +72,26 @@ public interface HmQrcodeApiService {
/**
* 作废
*
* @param hmId hm id
* @return boolean
* @param hmId hm id
* @param invokingType 调用类型
* @return {@link ServiceResponse }
* @author mozhu
* @date 2022-07-
06 13:40:27
* @date 2022-07-
22 15:10:42
*/
ServiceResponse
delById
(
Long
hmId
);
ServiceResponse
delById
(
Long
hmId
,
Integer
invokingType
);
/**
* 导购解绑作废
*
* @param clerkId
* @param enterpriseId 企业标识
* @return boolean
* @param enterpriseId 企业标识
* @param wxEnterpriseId wx企业标识
* @param invokingType 调用类型
* @return {@link ServiceResponse }
* @author mozhu
* @date 2022-07-
06 15:39:0
1
* @date 2022-07-
22 15:14:5
1
*/
ServiceResponse
delByClerkId
(
String
clerkId
,
String
enterpriseId
,
String
wxEnterpriseId
);
ServiceResponse
delByClerkId
(
String
clerkId
,
String
enterpriseId
,
String
wxEnterpriseId
,
Integer
invokingType
);
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
bd196b7c
...
...
@@ -82,7 +82,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
staffClerkBindLogService
.
pushToMq
(
clerkRelation
.
getStaffId
(),
optStaffId
,
BindTypeEnum
.
UNBIND
.
getVal
(),
chanelCode
,
clerkRelation
.
getStaffClerkRelationId
());
//废弃活码
hmQrcodeApiService
.
delByClerkId
(
clerkId
,
clerkRelation
.
getEnterpriseId
(),
clerkRelation
.
getWxEnterpriseId
());
hmQrcodeApiService
.
delByClerkId
(
clerkId
,
clerkRelation
.
getEnterpriseId
(),
clerkRelation
.
getWxEnterpriseId
()
,
chanelCode
);
}
return
b
;
}
...
...
@@ -155,6 +155,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
hmQrcodeQDTO
.
setPassFlag
(
1
);
hmQrcodeQDTO
.
setStoreId
(
dto
.
getStoreId
());
hmQrcodeQDTO
.
setClerkIdList
(
Collections
.
singletonList
(
dto
.
getClerkId
()));
hmQrcodeQDTO
.
setInvokingType
(
chanelCode
);
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
}
return
s
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
bd196b7c
...
...
@@ -71,7 +71,6 @@ import com.gic.member.tag.api.service.MemberTagOpenApiService;
import
com.gic.mq.sdk.GicMQClient
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.dto.qywx.*
;
import
com.gic.wechat.api.dto.qywx.response.QywxResponseDTO
;
import
com.gic.wechat.api.dto.qywx.welcome.*
;
import
com.gic.wechat.api.enums.QywxMediaTypeEnum
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
...
...
@@ -658,10 +657,6 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
log
.
info
(
"特殊欢迎语 state:{}"
,
state
);
WelcomeReferBO
welcomeReferBo
=
getWelcomeReferBo
(
state
);
welcomeDetailBO
=
welcomeService
.
getMatchWelcomeWithReferId
(
staffId
,
wxEnterpriseId
,
welcomeReferBo
);
//结束临时会话模式
log
.
info
(
"结束临时会话模式:userid:{},externalUserid:{}"
,
dto
.
getWxUserId
(),
dto
.
getExternalUserid
());
QywxResponseDTO
qywxResponseDTO
=
qywxUserApiService
.
closeTempChat
(
corpid
,
config
.
getWxSuiteid
(),
dto
.
getWxUserId
(),
dto
.
getExternalUserid
());
log
.
info
(
"结束临时会话返回结果:{}"
,
JSON
.
toJSONString
(
qywxResponseDTO
));
}
else
{
welcomeDetailBO
=
welcomeService
.
getMatchWelcome
(
staffId
,
wxEnterpriseId
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
bd196b7c
...
...
@@ -238,7 +238,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
//删除绑定关系
tabHaobanStaffClerkRelationMapper
.
delByStoreIdAndCode
(
storeId
,
clerkCode
);
//删除主门店
delSetMainStore
(
staffClerkRelation
);
delSetMainStore
(
staffClerkRelation
,
ChannelCodeEnum
.
SELF_UNBIND
.
getCode
()
);
}
@Override
...
...
@@ -305,7 +305,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
public
void
delByClerkId
(
String
clerkId
)
{
TabHaobanStaffClerkRelation
staffClerkRelation
=
tabHaobanStaffClerkRelationMapper
.
getOneByClerkId
(
clerkId
);
tabHaobanStaffClerkRelationMapper
.
delByClerkId
(
clerkId
);
delSetMainStore
(
staffClerkRelation
);
delSetMainStore
(
staffClerkRelation
,
ChannelCodeEnum
.
AUDIT_UNBIND
.
getCode
()
);
}
@Override
...
...
@@ -387,7 +387,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
staffClerkBindLogService
.
pushToMq
(
staffId
,
optStaffId
,
optType
,
channelCode
,
relationId
);
}
private
void
delSetMainStore
(
TabHaobanStaffClerkRelation
staffClerkRelation
)
{
private
void
delSetMainStore
(
TabHaobanStaffClerkRelation
staffClerkRelation
,
Integer
channelCode
)
{
if
(
staffClerkRelation
==
null
)
{
logger
.
info
(
"staffClerkRelation为空"
);
return
;
...
...
@@ -399,7 +399,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
//删除主门店
clerkMainStoreRelatedService
.
delMainStore
(
staffId
,
staffClerkRelation
.
getStoreId
(),
wxEnterpriseId
);
//废弃活码
hmQrcodeApiService
.
delByClerkId
(
clerkId
,
staffClerkRelation
.
getEnterpriseId
(),
wxEnterpriseId
);
hmQrcodeApiService
.
delByClerkId
(
clerkId
,
staffClerkRelation
.
getEnterpriseId
(),
wxEnterpriseId
,
channelCode
);
}
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
bd196b7c
This diff is collapsed.
Click to expand it.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmQrcodeController.java
View file @
bd196b7c
...
...
@@ -80,6 +80,7 @@ public class HmQrcodeController {
hmQrcodeQDTO
.
setModifierName
(
loginUser
.
getClerkName
());
hmQrcodeQDTO
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
hmQrcodeQDTO
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
hmQrcodeQDTO
.
setInvokingType
(
1
);
ServiceResponse
serviceResponse
=
this
.
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
if
(!
"0000"
.
equals
(
serviceResponse
.
getCode
()))
{
return
RestResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCode
.
ERR_DEFINE
.
getCode
()),
serviceResponse
.
getMessage
());
...
...
@@ -116,6 +117,7 @@ public class HmQrcodeController {
hmQrcodeQDTO
.
setModifierName
(
loginUser
.
getClerkName
());
hmQrcodeQDTO
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
hmQrcodeQDTO
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
hmQrcodeQDTO
.
setInvokingType
(
1
);
ServiceResponse
serviceResponse
=
this
.
hmQrcodeApiService
.
update
(
hmQrcodeQDTO
);
if
(!
"0000"
.
equals
(
serviceResponse
.
getCode
()))
{
return
RestResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCode
.
ERR_DEFINE
.
getCode
()),
serviceResponse
.
getMessage
());
...
...
@@ -230,7 +232,7 @@ public class HmQrcodeController {
*/
@RequestMapping
(
value
=
"del"
,
method
=
RequestMethod
.
DELETE
)
public
RestResponse
del
(
Long
hmId
)
{
ServiceResponse
serviceResponse
=
this
.
hmQrcodeApiService
.
delById
(
hmId
);
ServiceResponse
serviceResponse
=
this
.
hmQrcodeApiService
.
delById
(
hmId
,
1
);
if
(!
"0000"
.
equals
(
serviceResponse
.
getCode
()))
{
return
RestResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCode
.
ERR_DEFINE
.
getCode
()),
serviceResponse
.
getMessage
());
}
...
...
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