Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
task3.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
首航-临时账号
task3.0
Commits
4637a050
Commit
4637a050
authored
Sep 25, 2019
by
zt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
239a824a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
SoundsMaxIdDao.java
src/main/java/com/foc/dao/SoundsMaxIdDao.java
+14
-0
SoundMonitorService.java
src/main/java/com/foc/service/SoundMonitorService.java
+5
-0
SoundsMaxIdMapper.xml
src/main/resources/mapper/SoundsMaxIdMapper.xml
+9
-0
No files found.
src/main/java/com/foc/dao/SoundsMaxIdDao.java
View file @
4637a050
...
@@ -69,4 +69,18 @@ public interface SoundsMaxIdDao {
...
@@ -69,4 +69,18 @@ public interface SoundsMaxIdDao {
* @param focSmsEmailRecord
* @param focSmsEmailRecord
*/
*/
void
updateEmail
(
FocSmsEmailRecord
focSmsEmailRecord
);
void
updateEmail
(
FocSmsEmailRecord
focSmsEmailRecord
);
/**
* 查询IP锁列表
*
* @return
*/
List
<
String
>
getBlackIpList
();
/**
* 删除ip锁
*
* @param blackIp
*/
void
deleteBlackIp
(
@Param
(
"blackIp"
)
String
blackIp
);
}
}
src/main/java/com/foc/service/SoundMonitorService.java
View file @
4637a050
...
@@ -60,6 +60,11 @@ public class SoundMonitorService {
...
@@ -60,6 +60,11 @@ public class SoundMonitorService {
Properties
properties
=
PropertiesUtils
.
getProperties
();
Properties
properties
=
PropertiesUtils
.
getProperties
();
String
interval
=
properties
.
getProperty
(
"interval"
);
String
interval
=
properties
.
getProperty
(
"interval"
);
SoundsMaxIdDao
soundsMaxIdDao
=
session
.
getMapper
(
SoundsMaxIdDao
.
class
);
SoundsMaxIdDao
soundsMaxIdDao
=
session
.
getMapper
(
SoundsMaxIdDao
.
class
);
//检查ip锁数据库
List
<
String
>
blackIpList
=
soundsMaxIdDao
.
getBlackIpList
();
blackIpList
.
forEach
(
(
blackIp
)
->
soundsMaxIdDao
.
deleteBlackIp
(
blackIp
)
);
session
.
commit
();
SoundsMaxId
maxId
=
soundsMaxIdDao
.
getMaxId
();
SoundsMaxId
maxId
=
soundsMaxIdDao
.
getMaxId
();
String
updateTime
=
maxId
.
getUpdateDate
();
String
updateTime
=
maxId
.
getUpdateDate
();
Date
date
=
new
Date
();
Date
date
=
new
Date
();
...
...
src/main/resources/mapper/SoundsMaxIdMapper.xml
View file @
4637a050
...
@@ -57,4 +57,12 @@
...
@@ -57,4 +57,12 @@
update foc_sms_email_record set email_send_status = #{emailSendStatus},email_error_log = #{emailErrorLog},
update foc_sms_email_record set email_send_status = #{emailSendStatus},email_error_log = #{emailErrorLog},
email_send_time = #{emailSendTime} where id = #{id}
email_send_time = #{emailSendTime} where id = #{id}
</update>
</update>
<select
id=
"getBlackIpList"
resultType=
"string"
>
select black_ip from sys_login_blacklist where black_ip like '10.%'
</select>
<delete
id=
"deleteBlackIp"
>
delete sys_login_blacklist where black_ip = #{blackIp}
</delete>
</mapper>
</mapper>
\ No newline at end of file
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