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
e9bcf0fb
Commit
e9bcf0fb
authored
Oct 22, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/导购任务' into 'developer'
Feature/xgh/导购任务 See merge request
!2233
parents
b920fb25
d9619c75
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
10 deletions
+27
-10
HaobanRoleOperationController.java
.../manage/web/controller/HaobanRoleOperationController.java
+7
-0
OpenStaffServiceImpl.java
...ban/manage/service/service/impl/OpenStaffServiceImpl.java
+9
-7
HandoverOperationApiServiceImpl.java
...ice/service/out/impl/HandoverOperationApiServiceImpl.java
+3
-1
OpenStaffApiServiceImpl.java
...age/service/service/out/impl/OpenStaffApiServiceImpl.java
+5
-0
OpenStaffMapper.xml
...ge3-service/src/main/resources/mapper/OpenStaffMapper.xml
+1
-0
TabHaobanMenuMapper.xml
...ce/src/main/resources/mapper/role/TabHaobanMenuMapper.xml
+0
-0
ContentCreativeController.java
...age/web/controller/content/ContentCreativeController.java
+2
-2
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/HaobanRoleOperationController.java
View file @
e9bcf0fb
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.authcenter.commons.dto.AuthcenterUserDetails
;
import
com.gic.authcenter.commons.util.SessionContextUtil
;
...
...
@@ -10,6 +11,8 @@ import com.gic.haoban.manage.api.dto.role.HaobanMenuDTO;
import
com.gic.haoban.manage.api.dto.role.HaobanRoleDTO
;
import
com.gic.haoban.manage.api.service.role.HaobanMenuApiService
;
import
com.gic.haoban.manage.api.service.role.HaobanRoleApiService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -27,6 +30,9 @@ import java.util.List;
@RestController
public
class
HaobanRoleOperationController
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
HaobanRoleOperationController
.
class
);
@Autowired
private
HaobanMenuApiService
haobanMenuApiService
;
@Autowired
...
...
@@ -56,6 +62,7 @@ public class HaobanRoleOperationController {
login
.
setClerkId
(
operationUserId
);
login
.
setClerkName
(
loginUser
.
getLoginName
());
haobanRoleQDTO
.
setSystemFlag
(
0
);
logger
.
info
(
"运维好办权限={},{}"
,
JSONObject
.
toJSONString
(
haobanRoleQDTO
),
operationUserId
);
return
RestResponse
.
successResult
(
haobanRoleApiService
.
edit
(
haobanRoleQDTO
,
login
));
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/OpenStaffServiceImpl.java
View file @
e9bcf0fb
...
...
@@ -115,13 +115,15 @@ public class OpenStaffServiceImpl implements OpenStaffService {
if
(
StringUtils
.
isNotBlank
(
noticeReason
))
{
log
.
info
(
"发送退出登录通知,staffId={}"
,
openStaff
.
getStaffId
());
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
openStaff
.
getStaffId
());
this
.
noticeMessageApiService
.
sendMessageForOpenStaff
(
openStaff
.
getEnterpriseId
(),
staff
.
getStaffName
(),
noticeReason
);
// 发送通知
if
(!
noticeReason
.
equals
(
OpenStaffOfflineEnum
.
OFFLINE1
.
getDesc
()))
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"reason"
,
noticeReason
);
int
messageType
=
NoticeMessageTypeEnum
.
HAOBAN_OPEN_STAFF_LOGOUT
.
getType
();
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
openStaff
.
getEnterpriseId
(),
openStaff
.
getStaffId
(),
"-1"
,
messageType
,
null
,
map
,
null
);
if
(
null
!=
staff
)
{
this
.
noticeMessageApiService
.
sendMessageForOpenStaff
(
openStaff
.
getEnterpriseId
(),
staff
.
getStaffName
(),
noticeReason
);
// 发送通知
if
(!
noticeReason
.
equals
(
OpenStaffOfflineEnum
.
OFFLINE1
.
getDesc
()))
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"reason"
,
noticeReason
);
int
messageType
=
NoticeMessageTypeEnum
.
HAOBAN_OPEN_STAFF_LOGOUT
.
getType
();
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
openStaff
.
getEnterpriseId
(),
openStaff
.
getStaffId
(),
"-1"
,
messageType
,
null
,
map
,
null
);
}
}
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HandoverOperationApiServiceImpl.java
View file @
e9bcf0fb
...
...
@@ -5,6 +5,7 @@ import com.gic.api.base.commons.Page;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.common.utils.DingUtils
;
import
com.gic.haoban.common.utils.PageUtil
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.service.HandoverOperationApiService
;
...
...
@@ -291,7 +292,8 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
List
<
String
>
list
=
entry
.
getValue
();
QywxTransferCustomerDTO
transferCustomerResp
=
qywxUserApiService
.
transferCustomer
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelf3thSecret
(),
wxUserId
,
takeoverUserId
,
list
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
());
if
(
transferCustomerResp
.
getErrcode
()
!=
0
)
{
logger
.
info
(
"转移异常"
);
logger
.
info
(
"离职继承-分配客户异常={}"
,
JSONObject
.
toJSONString
(
transferCustomerResp
));
DingUtils
.
send
(
"离职继承分配异常"
+
wxUserId
,
true
);
}
List
<
QywxTransferCustomerInfoDTO
>
customer
=
transferCustomerResp
.
getCustomer
();
if
(
CollectionUtils
.
isEmpty
(
customer
))
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/OpenStaffApiServiceImpl.java
View file @
e9bcf0fb
...
...
@@ -134,6 +134,11 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
log
.
info
(
"只能托管一个企业={},{}"
,
uuid
,
corpName
);
return
ServiceResponse
.
failure
(
"9999"
,
"只能托管一个企业"
);
}
if
(!
openStaff
.
getStaffId
().
equals
(
staff
.
getStaffId
()))
{
this
.
openStaffService
.
logout
(
uuid
,
"userid不能关联2个成员"
,
0
,
null
);
log
.
info
(
"userid不能关联2个成员={},{},{}"
,
openStaff
.
getStaffId
(),
staff
.
getStaffId
(),
qwUserId
);
return
ServiceResponse
.
failure
(
"9999"
,
"userid不能关联2个成员"
);
}
openStaff
.
setWxCorpId
(
qwCorpId
);
openStaff
.
setQwUserId
(
qwUserId
);
if
(
null
==
openStaff
.
getFirstAuthTime
())
{
...
...
haoban-manage3-service/src/main/resources/mapper/OpenStaffMapper.xml
View file @
e9bcf0fb
...
...
@@ -205,6 +205,7 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_open_staff where qw_user_id = #{qwUserId} and delete_flag = 0
order by status_flag , update_time desc limit 1
</select>
<select
id=
"listAllStaffId"
resultType=
"java.lang.String"
>
...
...
haoban-manage3-service/src/main/resources/mapper/role/
OpenStaff
Mapper.xml
→
haoban-manage3-service/src/main/resources/mapper/role/
TabHaobanMenu
Mapper.xml
View file @
e9bcf0fb
File moved
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentCreativeController.java
View file @
e9bcf0fb
...
...
@@ -130,7 +130,7 @@ public class ContentCreativeController {
// 发送审批消息
// 不是私域,且未开启自动审核
ServiceResponse
<
ContentSettingDTO
>
resp
=
this
.
contentSettingApiService
.
queryContentSettingInfo
(
saveQO
.
getEnterpriseId
())
;
if
(
resp
.
getResult
().
getCommunityUserSetting
().
getClerkMaterialAudit
()==
null
||
resp
.
getResult
().
getCommunityUserSetting
().
getClerkMaterialAudit
()==
0
)
{
if
(
resp
onse
.
getResult
().
getMaterialType
()
==
4
||
(
resp
.
getResult
().
getCommunityUserSetting
().
getClerkMaterialAudit
()==
null
||
resp
.
getResult
().
getCommunityUserSetting
().
getClerkMaterialAudit
()==
0
)
)
{
this
.
sendAudit
(
saveQO
.
getEnterpriseId
(),
saveQO
.
getClerkId
())
;
}
}
...
...
@@ -141,7 +141,7 @@ public class ContentCreativeController {
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
)
;
String
clerkName
=
clerk
.
getClerkName
()
;
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"clerkName"
,
clerkName
);
map
.
put
(
"clerkName"
,
"导购:"
+
clerkName
);
this
.
send
(
enterpriseId
,
map
,
"clerkCreateContent"
);
}
...
...
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