Commit 796ec55d authored by 郝彦辉's avatar 郝彦辉

修改每天定时任务的执行时间

parent 80826cf6
...@@ -74,8 +74,7 @@ public class BlackGreyListJob { ...@@ -74,8 +74,7 @@ public class BlackGreyListJob {
* 出参说明: <br> * 出参说明: <br>
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
*/ */
//@Scheduled(cron = "0 30 1 * * ?") //每天凌晨1点30 @Scheduled(cron = "0 0 6 * * ?")//每天凌晨6点00
@Scheduled(cron = "0 50 15 * * ?")
public void blackListImportJob() { public void blackListImportJob() {
try { try {
...@@ -85,7 +84,7 @@ public class BlackGreyListJob { ...@@ -85,7 +84,7 @@ public class BlackGreyListJob {
String todayNyr = LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME); String todayNyr = LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME);
long statUtc = 0L; long statUtc = 0L;
//1、导入-现金分期15+逾期黑名单 //1、导入-现金分期15+逾期黑名单 约耗时65866.ms
String xianJinDai = null; String xianJinDai = null;
try { try {
statUtc = System.currentTimeMillis(); statUtc = System.currentTimeMillis();
...@@ -97,7 +96,7 @@ public class BlackGreyListJob { ...@@ -97,7 +96,7 @@ public class BlackGreyListJob {
log.info(todayNyr+", 每天执行新增现金分期15+逾期黑名单结束, Msg: {} , 总耗时: {} ", xianJinDai, (System.currentTimeMillis()-statUtc)+".ms"); log.info(todayNyr+", 每天执行新增现金分期15+逾期黑名单结束, Msg: {} , 总耗时: {} ", xianJinDai, (System.currentTimeMillis()-statUtc)+".ms");
} }
//2、导入-Vcc15+逾期黑名单 //2、导入-Vcc15+逾期黑名单 约耗时14369.ms
String vcc = null; String vcc = null;
try { try {
statUtc = System.currentTimeMillis(); statUtc = System.currentTimeMillis();
...@@ -110,7 +109,7 @@ public class BlackGreyListJob { ...@@ -110,7 +109,7 @@ public class BlackGreyListJob {
} }
//3、将逾期已还清黑名单转灰名单 //3、将逾期已还清黑名单转灰名单 耗时1206283.ms 约20分钟
String removeBlackToGrey = null; String removeBlackToGrey = null;
try { try {
statUtc = System.currentTimeMillis(); statUtc = System.currentTimeMillis();
...@@ -207,6 +206,7 @@ public class BlackGreyListJob { ...@@ -207,6 +206,7 @@ public class BlackGreyListJob {
//删掉执行标记 //删掉执行标记
redisTemplate.delete(ConstantBlackGrey.REDIS_KEY.SIGN_IS_RUN_UPDATE_BLACK_OVERDUEDAY_KEY); redisTemplate.delete(ConstantBlackGrey.REDIS_KEY.SIGN_IS_RUN_UPDATE_BLACK_OVERDUEDAY_KEY);
//耗时3807471.ms 约64分钟,
updateBLOverdueDay = blackGreyListService.updateBlackListOverdueDay(); updateBLOverdueDay = blackGreyListService.updateBlackListOverdueDay();
}catch (Exception e){ }catch (Exception e){
log.error(todayNyr+", 每天执行更新黑名单最大逾期天数和累计逾期天数异常", e); log.error(todayNyr+", 每天执行更新黑名单最大逾期天数和累计逾期天数异常", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment