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
1
Merge Requests
1
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
52fa9882
Commit
52fa9882
authored
Jul 16, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
14a966d8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
6 deletions
+11
-6
StaffClerkRelationApiService.java
...oban/manage/api/service/StaffClerkRelationApiService.java
+1
-1
HmQrcodeService.java
...gic/haoban/manage/service/service/hm/HmQrcodeService.java
+1
-1
HmQrcodeServiceImpl.java
...n/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
+2
-1
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+5
-2
HmQrcodeController.java
...c/haoban/manage/web/controller/hm/HmQrcodeController.java
+2
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffClerkRelationApiService.java
View file @
52fa9882
...
...
@@ -206,6 +206,6 @@ public interface StaffClerkRelationApiService {
* @return
* @throws
*/
int
getCanAddHmCount
(
String
enterpriseId
,
String
wxEnterpriseId
)
;
int
getCanAddHmCount
(
String
enterpriseId
,
String
wxEnterpriseId
,
String
clerkId
)
;
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/HmQrcodeService.java
View file @
52fa9882
...
...
@@ -175,5 +175,5 @@ public interface HmQrcodeService {
*/
int
batchUpdateQrcodeGroup
(
List
<
Long
>
hmIds
,
Long
groupId
);
int
getCanAddCount
(
String
wxEnterpriseId
,
String
enterpr
si
eId
,
String
clerkId
)
;
int
getCanAddCount
(
String
wxEnterpriseId
,
String
enterpr
is
eId
,
String
clerkId
)
;
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
View file @
52fa9882
...
...
@@ -148,8 +148,9 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
return
0
;
}
if
(!(
authStoreIdList
.
size
()
==
1
&&
authStoreIdList
.
contains
(
"-1"
)))
{
log
.
info
(
"
全部门店={}"
,
clerkId
);
log
.
info
(
"
部分门店={}"
,
authStoreIdList
.
size
()
);
}
else
{
log
.
info
(
"全部门店={}"
,
clerkId
);
authStoreIdList
=
null
;
}
int
count
=
this
.
tabHaobanHmQrcodeMapper
.
getCanAddCount
(
wxEnterpriseId
,
enterprsieId
,
authStoreIdList
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
52fa9882
...
...
@@ -29,6 +29,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanStaff;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkBindLog
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
import
com.gic.haoban.manage.service.service.*
;
import
com.gic.haoban.manage.service.service.hm.HmQrcodeService
;
import
com.gic.haoban.manage.service.task.RouterConstant
;
import
com.gic.haoban.task.api.dto.MqMessageQo
;
import
com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactDTO
;
...
...
@@ -76,6 +77,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
private
WxEnterpriseService
wxEnterpriseService
;
@Autowired
private
HmQrcodeApiService
hmQrcodeApiService
;
@Autowired
private
HmQrcodeService
hmQrcodeService
;
@Override
public
void
bindLogMq
(
String
params
)
{
...
...
@@ -534,8 +537,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
}
@Override
public
int
getCanAddHmCount
(
String
enterpriseId
,
String
wxEnterprise
Id
)
{
public
int
getCanAddHmCount
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerk
Id
)
{
int
count
=
this
.
hmQrcodeService
.
getCanAddCount
(
wxEnterpriseId
,
enterpriseId
,
clerkId
);
return
0
;
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmQrcodeController.java
View file @
52fa9882
...
...
@@ -328,7 +328,8 @@ public class HmQrcodeController {
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
enterpriseId
=
loginUser
.
getEnterpriseId
()
;
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
()
;
int
count
=
this
.
staffClerkRelationApiService
.
getCanAddHmCount
(
enterpriseId
,
wxEnterpriseId
)
;
String
clerkId
=
loginUser
.
getClerkId
()
;
int
count
=
this
.
staffClerkRelationApiService
.
getCanAddHmCount
(
wxEnterpriseId
,
enterpriseId
,
clerkId
)
;
return
RestResponse
.
successResult
(
count
);
}
}
...
...
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