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
2f352e67
Commit
2f352e67
authored
Aug 18, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购信息修改
parent
bcaeb848
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+9
-1
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+8
-8
No files found.
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
2f352e67
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.JSONResponse
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.service.DepartmentApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
...
...
@@ -7,6 +8,7 @@ import com.gic.haoban.manage.api.service.TestApiService;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
import
com.gic.haoban.manage.service.service.MemberUnionRelatedService
;
import
com.gic.haoban.manage.service.util.EmojiFilterUtil
;
import
com.gic.mq.sdk.GicMQClient
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.dto.qywx.DepartmentDTO
;
import
com.gic.wechat.api.dto.qywx.QywxImageExternalMessageDTO
;
...
...
@@ -70,7 +72,13 @@ public class ServiceTest {
public
void
test
()
{
List
<
String
>
staffIds
=
new
ArrayList
<>();
staffIds
.
add
(
"0006ae5de6484cf9b55072d2d967c481"
);
memberUnionRelatedService
.
cleanStaffRelated
(
"ca66a01b79474c40b3e7c7f93daf1a3b"
,
staffIds
);
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
try
{
clientInstance
.
sendMessage
(
"haoban3OrderBackForFaceMq"
,
"11111"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
// memberUnionRelatedService.cleanStaffRelated("ca66a01b79474c40b3e7c7f93daf1a3b", staffIds);
// int i=2000;
// while (i-->0) {
// departmentApiService.listAllDepartment(i+"");
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
2f352e67
...
...
@@ -767,10 +767,10 @@ public class ClerkController extends WebBaseController{
*/
@RequestMapping
(
"/clerk-detail"
)
public
HaobanResponse
clerkDetail
(
String
clerkId
,
String
wxEnterpriseId
)
{
StaffClerkRelationDTO
staffRelation
=
staffClerkRelationApiService
.
getByClerkId
(
clerkId
);
if
(
staffRelation
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10006
);
}
//
StaffClerkRelationDTO staffRelation = staffClerkRelationApiService.getByClerkId(clerkId);
//
if(staffRelation == null){
//
return resultResponse(HaoBanErrCode.ERR_10006);
//
}
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerk
==
null
){
...
...
@@ -788,10 +788,10 @@ public class ClerkController extends WebBaseController{
*/
@RequestMapping
(
"/save-clerk"
)
public
HaobanResponse
clerkSave
(
String
clerkId
,
String
fieldValue
,
Integer
fieldType
)
{
StaffClerkRelationDTO
staffRelation
=
staffClerkRelationApiService
.
getByClerkId
(
clerkId
);
if
(
staffRelation
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10006
);
}
//
StaffClerkRelationDTO staffRelation = staffClerkRelationApiService.getByClerkId(clerkId);
//
if(staffRelation == null){
//
return resultResponse(HaoBanErrCode.ERR_10006);
//
}
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerk
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10006
);
...
...
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