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
70c44f71
Commit
70c44f71
authored
Jan 30, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/获取用户敏感信息' into 'developer'
Feature/获取用户敏感信息 See merge request
!909
parents
d96faa41
7b088c3a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+1
-1
StaffServiceImpl.java
.../haoban/manage/service/service/impl/StaffServiceImpl.java
+11
-3
HaobanQywxFeeApiServiceImpl.java
...ice/service/out/impl/fee/HaobanQywxFeeApiServiceImpl.java
+1
-1
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
70c44f71
...
@@ -136,7 +136,7 @@ public interface StaffMapper {
...
@@ -136,7 +136,7 @@ public interface StaffMapper {
/**
/**
* 更新是否激活
* 更新是否激活
*/
*/
int
updateActiveStatusById
(
@Param
(
"
wxOpenUserId"
)
String
wxOpenUser
Id
,
@Param
(
"activeTime"
)
Date
activeTime
,
int
updateActiveStatusById
(
@Param
(
"
staffId"
)
String
staff
Id
,
@Param
(
"activeTime"
)
Date
activeTime
,
@Param
(
"expireTime"
)
Date
expireTime
,
@Param
(
"expireTime"
)
Date
expireTime
,
@Param
(
"activeCode"
)
String
activeCode
,
@Param
(
"activeStatus"
)
Integer
activeStatus
);
@Param
(
"activeCode"
)
String
activeCode
,
@Param
(
"activeStatus"
)
Integer
activeStatus
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffServiceImpl.java
View file @
70c44f71
...
@@ -174,9 +174,9 @@ public class StaffServiceImpl implements StaffService {
...
@@ -174,9 +174,9 @@ public class StaffServiceImpl implements StaffService {
}
}
@Override
@Override
public
int
updateActiveStatusById
(
String
wxOpenUser
Id
,
Date
activeTime
,
Date
expireTime
,
public
int
updateActiveStatusById
(
String
staff
Id
,
Date
activeTime
,
Date
expireTime
,
String
activeCode
,
Integer
activeStatus
)
{
String
activeCode
,
Integer
activeStatus
)
{
return
mapper
.
updateActiveStatusById
(
wxOpenUser
Id
,
activeTime
,
expireTime
,
activeCode
,
activeStatus
)
;
return
mapper
.
updateActiveStatusById
(
staff
Id
,
activeTime
,
expireTime
,
activeCode
,
activeStatus
)
;
}
}
@Override
@Override
...
@@ -249,7 +249,15 @@ public class StaffServiceImpl implements StaffService {
...
@@ -249,7 +249,15 @@ public class StaffServiceImpl implements StaffService {
Date
start
=
new
Date
(
item
.
getActiveTime
()*
1000L
)
;
Date
start
=
new
Date
(
item
.
getActiveTime
()*
1000L
)
;
Date
end
=
new
Date
(
item
.
getExpireTime
()*
1000L
)
;
Date
end
=
new
Date
(
item
.
getExpireTime
()*
1000L
)
;
log
.
info
(
"更新staff表,userId={}"
,
userId
);
log
.
info
(
"更新staff表,userId={}"
,
userId
);
this
.
updateActiveStatusById
(
userId
,
start
,
end
,
activeCode
,
1
)
;
TabHaobanStaff
staff
=
this
.
mapper
.
selectByUserIdAndEnterpriseId
(
userId
,
wxEnterpriseId
)
;
if
(
null
==
staff
&&
end
.
getTime
()>
System
.
currentTimeMillis
())
{
staff
=
this
.
mapper
.
getDeleteUser
(
userId
,
wxEnterpriseId
)
;
}
if
(
null
!=
staff
)
{
this
.
updateActiveStatusById
(
staff
.
getStaffId
(),
start
,
end
,
activeCode
,
1
)
;
}
else
{
log
.
info
(
"查询激活账号,用户不存在,userid={}"
,
userId
);
}
TabHaobanQywxFeeAccountStaff
accountStaff
=
new
TabHaobanQywxFeeAccountStaff
();
TabHaobanQywxFeeAccountStaff
accountStaff
=
new
TabHaobanQywxFeeAccountStaff
();
accountStaff
.
setFeeAccountStaffId
(
UniqueIdUtils
.
uniqueLong
());
accountStaff
.
setFeeAccountStaffId
(
UniqueIdUtils
.
uniqueLong
());
accountStaff
.
setWxEnterpriseId
(
wxEnterpriseId
);
accountStaff
.
setWxEnterpriseId
(
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/fee/HaobanQywxFeeApiServiceImpl.java
View file @
70c44f71
...
@@ -230,7 +230,7 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
...
@@ -230,7 +230,7 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
int
monthWillInterceptNum
=
haobanQywxFeeAccountStaffService
.
monthWillInterceptNum
(
wxEnterpriseId
);
int
monthWillInterceptNum
=
haobanQywxFeeAccountStaffService
.
monthWillInterceptNum
(
wxEnterpriseId
);
String
content
=
"30天将有"
+
monthWillInterceptNum
+
"个接口许可证即将过期,您总共还剩余"
+
permissionUserNum
+
"个可用的接口许可证,请保证数量充足,如需增加请及时联系相关人员续费,避免影响使用"
;
String
content
=
"30天将有"
+
monthWillInterceptNum
+
"个接口许可证即将过期,您总共还剩余"
+
permissionUserNum
+
"个可用的接口许可证,请保证数量充足,如需增加请及时联系相关人员续费,避免影响使用"
;
//告警
//告警
messageAlert
(
wxEnterpriseId
,
corpName
,
corpid
,
AlertTypeEnum
.
FEE_ALARM
.
getName
(),
content
);
//
messageAlert(wxEnterpriseId, corpName, corpid, AlertTypeEnum.FEE_ALARM.getName(), content);
}
}
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
70c44f71
...
@@ -504,7 +504,7 @@
...
@@ -504,7 +504,7 @@
`expire_time` = #{expireTime},
`expire_time` = #{expireTime},
`active_code` = #{activeCode},
`active_code` = #{activeCode},
update_time = now()
update_time = now()
where
wx_open_user_id = #{wxOpenUser
Id}
where
staff_id = #{staff
Id}
</update>
</update>
<update
id=
"deleteActivieInfo"
>
<update
id=
"deleteActivieInfo"
>
...
...
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