0327-青田重要信息一览

This commit is contained in:
2026-03-27 17:29:18 +08:00
parent b131290459
commit e053f80c55
5 changed files with 98 additions and 111 deletions

View File

@@ -49,6 +49,17 @@ public class CustInfoRetailVo
//催收任务详情--青田
private List<Map<String, Object>> taskDetail;
//重要信息一览贷款信息列表--青田
private List<ImportantInfoLoan932> importantInfoLoan932List;
public List<ImportantInfoLoan932> getImportantInfoLoan932List() {
return importantInfoLoan932List;
}
public void setImportantInfoLoan932List(List<ImportantInfoLoan932> importantInfoLoan932List) {
this.importantInfoLoan932List = importantInfoLoan932List;
}
public List<Map<String, Object>> getTaskDetail() {
return taskDetail;
}

View File

@@ -64,6 +64,8 @@ public class CustInfoRetailServiceImpl implements ICustInfoRetailService {
private AnchorMapper anchorMapper;
@Autowired
private DashboardService dashboardService;
@Autowired
private ImportantInfoLoan932Mapper importantInfoLoan932Mapper;
/**
* 查询对私客户信息
@@ -147,9 +149,12 @@ public class CustInfoRetailServiceImpl implements ICustInfoRetailService {
if (SecurityUtils.getHeadId().equals("932")){
CommonRespVO taskDetail = dashboardService.getTaskDetail(custId);
custInfoRetailVo.setTaskDetail(taskDetail.getData());
List<ImportantInfoLoan932> loanInfoList = importantInfoLoan932Mapper.selectByCustId(custId);
custInfoRetailVo.setImportantInfoLoan932List(loanInfoList);
}
return custInfoRetailVo;
}
public List<CmpmUserList> getCmpmUserList(String custId){
String roleName = userRole();
List<CmpmUserList> list = new ArrayList<>();

View File

@@ -53,8 +53,6 @@ public class WorkRecordServiceImpl implements WorkRecordService {
@Resource
private RedisCache redisCache;
private final static String alterTypeRedisKey = "work:alter_types_count_";
/**
* 查询我的工作清单
*
@@ -201,22 +199,11 @@ public class WorkRecordServiceImpl implements WorkRecordService {
/**
* 获取预警类型及各类型预警数量
* 每天首次查询存储到redis里后面都从redis读取
* 每次直接查询数据库,不使用缓存
*/
@Override
public List<WarnInfoVO> getAlterTypes() {
String headId = SecurityUtils.getHeadId();
String username = SecurityUtils.getUsername();
String redisKey = alterTypeRedisKey + username;
// 先从 redis 获取缓存
if (redisCache.hasKey(redisKey)) {
List<WarnInfoVO> cachedList = redisCache.getCacheObject(redisKey);
if (cachedList != null && !cachedList.isEmpty()) {
log.debug("从 redis 获取预警类型缓存, username: {}", username);
return cachedList;
}
}
// 先查询预警类型列表
List<String> alterTypes = workRecordMapper.selectAlterTypesByHeadId(headId);
@@ -231,10 +218,6 @@ public class WorkRecordServiceImpl implements WorkRecordService {
return warnInfoVO;
}).collect(Collectors.toList());
// 存入 redis过期时间到当天结束
redisCache.setCacheObjectToEndDay(redisKey, resultList);
log.debug("预警类型数据已存入 redis, username: {}, 数量: {}", username, resultList.size());
return resultList;
}