Commit 862b506c authored by data爬虫-冯 军凯's avatar data爬虫-冯 军凯

身份证号xml--bean 字段映射bug修复

parent 05021607
......@@ -26,9 +26,9 @@ public class BlackListImportManagerJob {
String startTime = LocalDateTime.now().format(DateTimeFormatter.ISO_DATE);
String endTime = LocalDateTime.now().minusDays(1).format(DateTimeFormatter.ISO_DATE);
iBlackListManagerService.blackListPhoneManagerByMonth(startTime, endTime);
iBlackListManagerService.blackListPhoneManagerByDay(startTime, endTime);
iBlackListManagerService.blackListIdCardManagerByMonth(startTime, endTime);
iBlackListManagerService.blackListIdCardManagerByDay(startTime, endTime);
}
......
......@@ -61,7 +61,7 @@
resultMap="BaseResultMap">
select
c.uuid uuid
,a.realName user_name
,a.realName name
,b.phone_no phone_no
,a.idcard id_no
,a.createDate created_at
......
......@@ -11,4 +11,7 @@ public interface IBlackListManagerService {
public void blackListPhoneManagerByMonth(String startTime, String endTime);
public void blackListIdCardManagerByMonth(String startTime, String endTime);
public void blackListPhoneManagerByDay(String startTime, String endTime);
public void blackListIdCardManagerByDay(String startTime, String endTime);
}
......@@ -5,7 +5,6 @@ import cn.quantgroup.qgblservice.response.GlobalResponse;
import cn.quantgroup.qgblservice.service.IBlackListImportService;
import cn.quantgroup.qgblservice.service.IBlackListManagerService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
......@@ -50,7 +49,7 @@ public class BlackListImportServiceImpl implements IBlackListImportService {
try {
startTime = erlyDate.plusMonths(i).format(DateTimeFormatter.ISO_DATE);
endTime = erlyDate.plusMonths(i + 1).format(DateTimeFormatter.ISO_DATE) ;
endTime = erlyDate.plusMonths(i + 1).format(DateTimeFormatter.ISO_DATE);
if (phoneBreakDate.equalsIgnoreCase(startTime)) {
break;
......@@ -87,7 +86,7 @@ public class BlackListImportServiceImpl implements IBlackListImportService {
try {
startTime = erlyDate.plusMonths(i).format(DateTimeFormatter.ISO_DATE);
endTime = erlyDate.plusMonths(i + 1).format(DateTimeFormatter.ISO_DATE) ;
endTime = erlyDate.plusMonths(i + 1).format(DateTimeFormatter.ISO_DATE);
if (phoneBreakDate.equalsIgnoreCase(startTime)) {
break;
......@@ -96,13 +95,13 @@ public class BlackListImportServiceImpl implements IBlackListImportService {
iBlackListManagerService.blackListIdCardManagerByMonth(startTime, endTime);
} catch (Exception e) {
log.error("手机号整合导入黑名单新表异常, startTime: {} , endTime: {} ", startTime, endTime, e);
log.error("身份证号整合导入黑名单新表异常, startTime: {} , endTime: {} ", startTime, endTime, e);
}
}
log.info("手机号整合导入新表完毕");
return GlobalResponse.success("手机号关联三要素导入黑名单新表完毕");
log.info("身份证号整合导入新表完毕");
return GlobalResponse.success("身份证号关联三要素导入黑名单新表完毕");
}
......
......@@ -7,17 +7,13 @@ import cn.quantgroup.qgblservice.repository.mybatis.mapper.blacklist.BlackListQu
import cn.quantgroup.qgblservice.repository.mybatis.mapper.tidb.BlackListQueryTidbMapper;
import cn.quantgroup.qgblservice.service.IBlackListManagerService;
import cn.quantgroup.qgblservice.utils.jdbc.JdbcExecuters;
import com.alibaba.fastjson.JSON;
import com.google.common.base.Stopwatch;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
......@@ -38,6 +34,7 @@ public class BlackListManagerServiceImpl implements IBlackListManagerService {
/**
* 手机号黑名单black_type_list_new --> black_list_new
*
* @param startTime
* @param endTime
*/
......@@ -56,6 +53,7 @@ public class BlackListManagerServiceImpl implements IBlackListManagerService {
/**
* 身份证黑名单 black_list_idcard_new --> black_list_new
*
* @param startTime
* @param endTime
*/
......@@ -72,4 +70,19 @@ public class BlackListManagerServiceImpl implements IBlackListManagerService {
}
@Override
public void blackListPhoneManagerByDay(String startTime, String endTime) {
List<BlackListQueryTidbVo0> blackListQueryTidbVo0s = blackListQueryTidbMapper.findBlackListPhoneByTime(BlackListQueryTidbParam0.builder().startTime(startTime).endTime(endTime).build());
}
@Override
public void blackListIdCardManagerByDay(String startTime, String endTime) {
List<BlackListQueryTidbVo0> blackListQueryTidbVo0s = blackListQueryTidbMapper.findBlackListIdCardByTime(BlackListQueryTidbParam0.builder().startTime(startTime).endTime(endTime).build());
}
}
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