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
50746122
Commit
50746122
authored
Oct 20, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:打印日志
parent
3da1fe64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
39 deletions
+41
-39
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+1
-1
StaffDepartmentRelatedApiServiceImpl.java
...ervice/out/impl/StaffDepartmentRelatedApiServiceImpl.java
+40
-38
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
50746122
...
@@ -151,7 +151,7 @@ public class AuditApiServiceImpl implements AuditApiService {
...
@@ -151,7 +151,7 @@ public class AuditApiServiceImpl implements AuditApiService {
if
(
StringUtils
.
isNotBlank
(
batchId
))
{
if
(
StringUtils
.
isNotBlank
(
batchId
))
{
insertBatchLog
(
batchId
,
AuditRsultType
.
fail
.
getCode
(),
tab
);
insertBatchLog
(
batchId
,
AuditRsultType
.
fail
.
getCode
(),
tab
);
}
}
staffDepartmentRelatedApiService
.
sendBindAuditMessage
(
auditId
,
obj
.
getStaffId
(),
clerkId
,
tab
.
getAuditReason
()
,
true
);
staffDepartmentRelatedApiService
.
sendBindAuditMessage
(
auditId
,
obj
.
getStaffId
(),
clerkId
,
reason
,
true
);
return
reason
;
return
reason
;
}
}
if
(
clerkDTO
==
null
)
{
if
(
clerkDTO
==
null
)
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffDepartmentRelatedApiServiceImpl.java
View file @
50746122
...
@@ -143,7 +143,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -143,7 +143,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
if
(
clerkDTO
==
null
)
{
if
(
clerkDTO
==
null
)
{
return
map
;
return
map
;
}
}
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
relation
.
getWxEnterpriseId
())
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
relation
.
getWxEnterpriseId
());
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
relation
.
getStaffId
());
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
relation
.
getStaffId
());
if
(
staffDTO
==
null
)
{
if
(
staffDTO
==
null
)
{
return
map
;
return
map
;
...
@@ -167,7 +167,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -167,7 +167,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
if
(
staffDTO
==
null
)
{
if
(
staffDTO
==
null
)
{
return
map
;
return
map
;
}
}
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
staffDTO
.
getWxEnterpriseId
())
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
staffDTO
.
getWxEnterpriseId
());
String
wxUserId
=
staffDTO
.
getWxUserId
();
String
wxUserId
=
staffDTO
.
getWxUserId
();
if
(
qwDTO
.
needOpenUserId3th
())
{
if
(
qwDTO
.
needOpenUserId3th
())
{
wxUserId
=
staffDTO
.
getWxOpenUseId
();
wxUserId
=
staffDTO
.
getWxOpenUseId
();
...
@@ -198,7 +198,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -198,7 +198,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
content
=
content
.
substring
(
0
,
26
);
content
=
content
.
substring
(
0
,
26
);
content
=
content
+
"..."
;
content
=
content
+
"..."
;
}
}
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
staffDTO
.
getWxEnterpriseId
())
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
staffDTO
.
getWxEnterpriseId
());
String
wxUserId
=
""
;
String
wxUserId
=
""
;
if
(
qwDTO
.
needOpenUserId3th
())
{
if
(
qwDTO
.
needOpenUserId3th
())
{
wxUserId
=
staffDTO
.
getWxOpenUseId
();
wxUserId
=
staffDTO
.
getWxOpenUseId
();
...
@@ -261,17 +261,17 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -261,17 +261,17 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
@Override
@Override
public
void
sendClerkAdd
(
String
clerkName
,
String
clerkCode
,
String
storeId
,
int
auditStatus
,
String
auditReason
)
{
public
void
sendClerkAdd
(
String
clerkName
,
String
clerkCode
,
String
storeId
,
int
auditStatus
,
String
auditReason
)
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"storeId"
,
storeId
);
jsonObject
.
put
(
"storeId"
,
storeId
);
ClerkDTO
gicClerk
=
clerkService
.
getClerkLeaderByStoreId
(
storeId
);
ClerkDTO
gicClerk
=
clerkService
.
getClerkLeaderByStoreId
(
storeId
);
if
(
gicClerk
==
null
)
{
if
(
gicClerk
==
null
)
{
logger
.
info
(
"店长不存在,发送消息失败{}"
,
storeId
);
logger
.
info
(
"店长不存在,发送消息失败{}"
,
storeId
);
return
;
return
;
}
}
TabHaobanStaffClerkRelation
tab
=
tabHaobanStaffClerkRelationMapper
.
getOneByClerkId
(
gicClerk
.
getClerkId
());
TabHaobanStaffClerkRelation
tab
=
tabHaobanStaffClerkRelationMapper
.
getOneByClerkId
(
gicClerk
.
getClerkId
());
if
(
tab
==
null
)
{
if
(
tab
==
null
)
{
logger
.
info
(
"店长未绑定clerkId={}"
,
gicClerk
.
getClerkId
());
logger
.
info
(
"店长未绑定clerkId={}"
,
gicClerk
.
getClerkId
());
return
;
return
;
}
}
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
params
.
put
(
"clerkName"
,
clerkName
);
params
.
put
(
"clerkName"
,
clerkName
);
params
.
put
(
"clerkCode"
,
clerkCode
);
params
.
put
(
"clerkCode"
,
clerkCode
);
...
@@ -284,25 +284,25 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -284,25 +284,25 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
,
NoticeMessageTypeEnum
.
CLERK_ADD_REFUSE
.
getType
(),
null
,
params
,
jsonObject
);
,
NoticeMessageTypeEnum
.
CLERK_ADD_REFUSE
.
getType
(),
null
,
params
,
jsonObject
);
}
}
}
}
//导购删除,,审核记录,,消息发送
//导购删除,,审核记录,,消息发送
@Override
@Override
public
void
sendClerkDel
(
String
clerkName
,
String
clerkCode
,
String
storeId
,
int
auditStatus
,
String
auditReason
)
{
public
void
sendClerkDel
(
String
clerkName
,
String
clerkCode
,
String
storeId
,
int
auditStatus
,
String
auditReason
)
{
// String messageTitle = "门店导购变更";
// String messageTitle = "门店导购变更";
// String messageContent = "删除导购:" + clerkName + "(" + clerkCode + ")";
// String messageContent = "删除导购:" + clerkName + "(" + clerkCode + ")";
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"storeId"
,
storeId
);
jsonObject
.
put
(
"storeId"
,
storeId
);
ClerkDTO
gicClerk
=
clerkService
.
getClerkLeaderByStoreId
(
storeId
);
ClerkDTO
gicClerk
=
clerkService
.
getClerkLeaderByStoreId
(
storeId
);
if
(
gicClerk
==
null
)
{
if
(
gicClerk
==
null
)
{
logger
.
info
(
"店长不存在,发送消息失败{}"
,
storeId
);
logger
.
info
(
"店长不存在,发送消息失败{}"
,
storeId
);
return
;
return
;
}
}
TabHaobanStaffClerkRelation
tab
=
tabHaobanStaffClerkRelationMapper
.
getOneByClerkId
(
gicClerk
.
getClerkId
());
TabHaobanStaffClerkRelation
tab
=
tabHaobanStaffClerkRelationMapper
.
getOneByClerkId
(
gicClerk
.
getClerkId
());
if
(
tab
==
null
)
{
if
(
tab
==
null
)
{
logger
.
info
(
"店长未绑定clerkId={}"
,
gicClerk
.
getClerkId
());
logger
.
info
(
"店长未绑定clerkId={}"
,
gicClerk
.
getClerkId
());
return
;
return
;
}
}
// String pageUrl = this.getPageUrl(AppPageType.STORE_RELATED_RECORD.getCode(), data);
// String pageUrl = this.getPageUrl(AppPageType.STORE_RELATED_RECORD.getCode(), data);
// this.sendAuditMessage(tab.getStaffId(), messageTitle, messageContent, pageUrl,auditStatus,auditReason);
// this.sendAuditMessage(tab.getStaffId(), messageTitle, messageContent, pageUrl,auditStatus,auditReason);
...
@@ -318,17 +318,18 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -318,17 +318,18 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
,
NoticeMessageTypeEnum
.
CLERK_DEL_AGREE
.
getType
(),
null
,
params
,
jsonObject
);
,
NoticeMessageTypeEnum
.
CLERK_DEL_AGREE
.
getType
(),
null
,
params
,
jsonObject
);
}
}
}
}
@Override
public
boolean
sendSingleMessage
(
String
clerkId
,
String
title
,
@Override
String
content
,
String
pageUrl
)
{
public
boolean
sendSingleMessage
(
String
clerkId
,
String
title
,
if
(
StringUtils
.
isEmpty
(
clerkId
))
{
String
content
,
String
pageUrl
)
{
logger
.
info
(
"clerkId不存在============>"
);
if
(
StringUtils
.
isEmpty
(
clerkId
))
{
return
false
;
logger
.
info
(
"clerkId不存在============>"
);
}
return
false
;
Map
<
String
,
String
>
map
=
getWxUserIdByClerkId
(
clerkId
);
}
String
wxUserId
=
map
.
get
(
"wxUserId"
);
Map
<
String
,
String
>
map
=
getWxUserIdByClerkId
(
clerkId
);
String
corpId
=
map
.
get
(
"corpId"
);
String
wxUserId
=
map
.
get
(
"wxUserId"
);
String
name
=
map
.
get
(
"clerkName"
);
String
corpId
=
map
.
get
(
"corpId"
);
String
name
=
map
.
get
(
"clerkName"
);
if
(
StringUtils
.
isBlank
(
wxUserId
))
{
if
(
StringUtils
.
isBlank
(
wxUserId
))
{
logger
.
info
(
"wxUserId不存在============clerkId={}"
,
clerkId
);
logger
.
info
(
"wxUserId不存在============clerkId={}"
,
clerkId
);
...
@@ -494,6 +495,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -494,6 +495,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
@Override
@Override
public
void
sendBindAuditMessage
(
String
auditId
,
String
staffId
,
String
clerkId
,
String
reason
,
boolean
isRefuse
)
{
public
void
sendBindAuditMessage
(
String
auditId
,
String
staffId
,
String
clerkId
,
String
reason
,
boolean
isRefuse
)
{
logger
.
info
(
"发送审核消息:auditId:{},clerkId:{},reason:{},isRefuse:{}"
,
auditId
,
clerkId
,
reason
,
isRefuse
);
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
==
null
)
{
if
(
clerkDTO
==
null
)
{
return
;
return
;
...
...
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