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
36abf50f
Commit
36abf50f
authored
Jun 10, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
fa78c12d
25fca1d0
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
81 additions
and
7 deletions
+81
-7
StaffClerkRelationApiService.java
...oban/manage/api/service/StaffClerkRelationApiService.java
+6
-0
TabHaobanStaffClerkRelationMapper.java
...service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
+3
-0
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+3
-1
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+8
-0
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+4
-0
StaffDepartmentRelatedApiServiceImpl.java
...ervice/out/impl/StaffDepartmentRelatedApiServiceImpl.java
+1
-0
TabHaobanAuditMapper.xml
...ervice/src/main/resources/mapper/TabHaobanAuditMapper.xml
+6
-6
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+10
-0
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+4
-0
ClerkInfoVo.java
...c/main/java/com/gic/haoban/manage/web/vo/ClerkInfoVo.java
+36
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffClerkRelationApiService.java
View file @
36abf50f
...
@@ -75,5 +75,11 @@ public interface StaffClerkRelationApiService {
...
@@ -75,5 +75,11 @@ public interface StaffClerkRelationApiService {
* @return
* @return
*/
*/
StaffClerkRelationDTO
getByClerkId
(
String
clerkId
);
StaffClerkRelationDTO
getByClerkId
(
String
clerkId
);
/**
* 删除关联关系
* @param clerkId
*/
void
delByClerkId
(
String
clerkId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
View file @
36abf50f
...
@@ -74,4 +74,6 @@ public interface TabHaobanStaffClerkRelationMapper {
...
@@ -74,4 +74,6 @@ public interface TabHaobanStaffClerkRelationMapper {
TabHaobanStaffClerkRelation
getByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
);
TabHaobanStaffClerkRelation
getByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
);
int
delByPrimaryKey
(
@Param
(
"staffClerkRelationId"
)
String
staffClerkRelationId
);
int
delByPrimaryKey
(
@Param
(
"staffClerkRelationId"
)
String
staffClerkRelationId
);
void
delByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
36abf50f
...
@@ -243,6 +243,8 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -243,6 +243,8 @@ public class AuditApiServiceImpl implements AuditApiService{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
}
}
staffClerkRelationApiService
.
delByClerkId
(
obj
.
getClerkId
());
staffDepartmentRelatedApiService
.
sendClerkDel
(
obj
.
getClerkName
(),
obj
.
getClerkCode
(),
tab
.
getCommitStoreId
(),
1
,
""
);
staffDepartmentRelatedApiService
.
sendClerkDel
(
obj
.
getClerkName
(),
obj
.
getClerkCode
(),
tab
.
getCommitStoreId
(),
1
,
""
);
}
else
if
(
auditType
==
AuditType
.
CLERK_UNBIND
.
getCode
()){
}
else
if
(
auditType
==
AuditType
.
CLERK_UNBIND
.
getCode
()){
//解绑申请,无需审核,直接通过
//解绑申请,无需审核,直接通过
...
@@ -281,7 +283,7 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -281,7 +283,7 @@ public class AuditApiServiceImpl implements AuditApiService{
staffDepartmentRelatedApiService
.
sendClerkAdd
(
enterpriseId
,
obj
.
getClerkCode
(),
2
,
auditReason
);
staffDepartmentRelatedApiService
.
sendClerkAdd
(
enterpriseId
,
obj
.
getClerkCode
(),
2
,
auditReason
);
}
else
if
(
auditType
==
AuditType
.
CLERK_DEL
.
getCode
())
{
}
else
if
(
auditType
==
AuditType
.
CLERK_DEL
.
getCode
())
{
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
staffDepartmentRelatedApiService
.
sendClerkDel
(
obj
.
getClerkName
(),
obj
.
getClerkCode
(),
tab
.
getCommitStoreId
(),
2
,
auditReason
);
staffDepartmentRelatedApiService
.
sendClerkDel
(
obj
.
getClerkName
(),
obj
.
getClerkCode
(),
tab
2
.
getCommitStoreId
(),
2
,
auditReason
);
}
}
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
36abf50f
...
@@ -84,6 +84,10 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -84,6 +84,10 @@ public class MessageApiServiceImpl implements MessageApiService {
@Override
@Override
public
void
gicMessageReceive
(
GicMessageDTO
gicMessageDTO
)
{
public
void
gicMessageReceive
(
GicMessageDTO
gicMessageDTO
)
{
if
(
true
)
{
log
.
info
(
"好办3.0去除消息监听"
);
return
;
}
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
try
{
try
{
log
.
info
(
"发送消息到dealGicMessageMq,{}"
,
JSON
.
toJSONString
(
gicMessageDTO
));
log
.
info
(
"发送消息到dealGicMessageMq,{}"
,
JSON
.
toJSONString
(
gicMessageDTO
));
...
@@ -193,6 +197,10 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -193,6 +197,10 @@ public class MessageApiServiceImpl implements MessageApiService {
@Override
@Override
public
void
dealWxMessage
(
String
param
)
{
public
void
dealWxMessage
(
String
param
)
{
if
(
true
)
{
log
.
info
(
"不出发更新企业微信变更"
);
return
;
}
QywxCallBackDTO
dto
=
JSON
.
parseObject
(
param
,
QywxCallBackDTO
.
class
);
QywxCallBackDTO
dto
=
JSON
.
parseObject
(
param
,
QywxCallBackDTO
.
class
);
log
.
info
(
"【处理微信回调】dto={}"
,
JSON
.
toJSONString
(
param
));
log
.
info
(
"【处理微信回调】dto={}"
,
JSON
.
toJSONString
(
param
));
if
(
dto
!=
null
){
if
(
dto
!=
null
){
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
36abf50f
...
@@ -211,4 +211,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
...
@@ -211,4 +211,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
staffClerkRelatinService
.
insert
(
staffClerkRelation
);
staffClerkRelatinService
.
insert
(
staffClerkRelation
);
}
}
}
}
@Override
public
void
delByClerkId
(
String
clerkId
)
{
tabHaobanStaffClerkRelationMapper
.
delByClerkId
(
clerkId
);
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffDepartmentRelatedApiServiceImpl.java
View file @
36abf50f
...
@@ -297,6 +297,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -297,6 +297,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
ClerkDTO
gicClerk
=
clerkService
.
getClerkLeaderByStoreId
(
storeId
);
ClerkDTO
gicClerk
=
clerkService
.
getClerkLeaderByStoreId
(
storeId
);
if
(
gicClerk
==
null
){
if
(
gicClerk
==
null
){
logger
.
info
(
"店长不存在,发送消息失败{}"
,
storeId
);
logger
.
info
(
"店长不存在,发送消息失败{}"
,
storeId
);
return
;
}
}
TabHaobanStaffClerkRelation
tab
=
tabHaobanStaffClerkRelationMapper
.
getOneByClerkId
(
gicClerk
.
getClerkId
());
TabHaobanStaffClerkRelation
tab
=
tabHaobanStaffClerkRelationMapper
.
getOneByClerkId
(
gicClerk
.
getClerkId
());
if
(
tab
==
null
){
if
(
tab
==
null
){
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanAuditMapper.xml
View file @
36abf50f
...
@@ -389,8 +389,8 @@
...
@@ -389,8 +389,8 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_audit
from tab_haoban_audit
where
1=1
where
and
commit_store_id = #{storeId,jdbcType=VARCHAR}
commit_store_id = #{storeId,jdbcType=VARCHAR}
and status_flag = 1
and status_flag = 1
<if
test=
"auditType == null || auditType == -1"
>
<if
test=
"auditType == null || auditType == -1"
>
and audit_type in (2,3,4,5)
and audit_type in (2,3,4,5)
...
@@ -409,8 +409,8 @@
...
@@ -409,8 +409,8 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_audit
from tab_haoban_audit
where
1=1
where
and
status_flag = 1
status_flag = 1
and related_Id = #{relatedId}
and related_Id = #{relatedId}
and audit_type = #{auditType}
and audit_type = #{auditType}
and audit_status = 0
and audit_status = 0
...
@@ -420,8 +420,8 @@
...
@@ -420,8 +420,8 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_audit
from tab_haoban_audit
where
1=1
where
and
status_flag = 1
status_flag = 1
and audit_type = 3
and audit_type = 3
and audit_status = 0
and audit_status = 0
and enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
and enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
36abf50f
...
@@ -320,4 +320,13 @@
...
@@ -320,4 +320,13 @@
and status_flag =1
and status_flag =1
</update>
</update>
<update
id=
"delByClerkId"
>
update tab_haoban_staff_clerk_relation
set
status_flag = 0,
update_time = now()
where clerk_id = #{clerkId,jdbcType=VARCHAR}
and status_flag =1
</update>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
36abf50f
...
@@ -321,6 +321,10 @@ public class StaffController extends WebBaseController{
...
@@ -321,6 +321,10 @@ public class StaffController extends WebBaseController{
if
(
hasRelationClerkIds
.
contains
(
clerkInfoVo
.
getClerkId
()))
{
if
(
hasRelationClerkIds
.
contains
(
clerkInfoVo
.
getClerkId
()))
{
clerkInfoVo
.
setRelationStatus
(
1
);
clerkInfoVo
.
setRelationStatus
(
1
);
}
}
StoreDTO
store
=
storeService
.
getStore
(
clerkInfoVo
.
getStoreId
());
if
(
null
!=
store
)
{
clerkInfoVo
.
setStoreName
(
store
.
getStoreName
());
}
});
});
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/ClerkInfoVo.java
View file @
36abf50f
...
@@ -11,8 +11,44 @@ public class ClerkInfoVo implements Serializable {
...
@@ -11,8 +11,44 @@ public class ClerkInfoVo implements Serializable {
private
String
clerkName
;
private
String
clerkName
;
private
String
clerkCode
;
private
String
clerkCode
;
private
String
clerkId
;
private
String
clerkId
;
private
String
enterpriseName
;
private
String
enterpriseId
;
private
String
storeId
;
private
String
storeName
;
private
Integer
relationStatus
=
0
;
private
Integer
relationStatus
=
0
;
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
public
String
getStoreName
()
{
return
storeName
;
}
public
void
setStoreName
(
String
storeName
)
{
this
.
storeName
=
storeName
;
}
public
String
getEnterpriseName
()
{
return
enterpriseName
;
}
public
void
setEnterpriseName
(
String
enterpriseName
)
{
this
.
enterpriseName
=
enterpriseName
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getClerkName
()
{
public
String
getClerkName
()
{
return
clerkName
;
return
clerkName
;
}
}
...
...
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