0318青田催收信息恢复
This commit is contained in:
@@ -31,4 +31,6 @@ public interface DashboardService {
|
|||||||
CommonRespVO getWarnRespList(String type, Long pageNum, Long pageSize);
|
CommonRespVO getWarnRespList(String type, Long pageNum, Long pageSize);
|
||||||
|
|
||||||
CommonRespVO getTagList(String custId);
|
CommonRespVO getTagList(String custId);
|
||||||
|
|
||||||
|
CommonRespVO getTaskDetail(String custId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,6 +271,44 @@ public class DashboardServiceImpl implements DashboardService {
|
|||||||
return respVO;
|
return respVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取催收任务详情--青田
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CommonRespVO getTaskDetail(String custId) {
|
||||||
|
CommonRespVO respVO = new CommonRespVO();
|
||||||
|
UrlRegistry urlRegistry = urlRegistryMapper.selectUrlByCondition(SecurityUtils.getHeadId(), "2", "催收信息");
|
||||||
|
if (urlRegistry == null || urlRegistry.getUrlPath() == null) {
|
||||||
|
log.warn("未配置催收信息接口URL, headId: {}", SecurityUtils.getHeadId());
|
||||||
|
return respVO;
|
||||||
|
}
|
||||||
|
String processedCustId = custId.length() > 3 ? custId.substring(3) : custId;
|
||||||
|
Map<String, Object> paramMap = new HashMap<>();
|
||||||
|
paramMap.put("csno", processedCustId);
|
||||||
|
String paramJson = JSON.toJSONString(paramMap);
|
||||||
|
|
||||||
|
try {
|
||||||
|
String authToken = getAuthToken();
|
||||||
|
String resp = HttpUtils.doPost(urlRegistry.getUrlPath(), paramJson, authToken);
|
||||||
|
respVO = resp2VO(resp);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("请求催收信息异常: " + e.getMessage());
|
||||||
|
redisCache.deleteObject(REDIS_KEY_TOKEN + SecurityUtils.getUsername());
|
||||||
|
String newToken = getAuthToken();
|
||||||
|
log.info("已刷新token, 重试请求, token: " + newToken);
|
||||||
|
try {
|
||||||
|
String resp = HttpUtils.doPost(urlRegistry.getUrlPath(), paramJson, newToken);
|
||||||
|
respVO = resp2VO(resp);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error("重试请求仍然失败: " + ex.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return respVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取token--青田
|
* 获取token--青田
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -35,6 +35,17 @@ public class CustInfoBusinessVo {
|
|||||||
|
|
||||||
private List<AddressDetail> addressDetails;
|
private List<AddressDetail> addressDetails;
|
||||||
|
|
||||||
|
//催收任务详情--青田
|
||||||
|
private List<Map<String, Object>> taskDetail;
|
||||||
|
|
||||||
|
public List<Map<String, Object>> getTaskDetail() {
|
||||||
|
return taskDetail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDetail(List<Map<String, Object>> taskDetail) {
|
||||||
|
this.taskDetail = taskDetail;
|
||||||
|
}
|
||||||
|
|
||||||
public List<AddressDetail> getAddressDetails() {
|
public List<AddressDetail> getAddressDetails() {
|
||||||
return addressDetails;
|
return addressDetails;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,17 @@ public class CustInfoMerchantVo {
|
|||||||
|
|
||||||
private List<AddressDetail> addressDetails;
|
private List<AddressDetail> addressDetails;
|
||||||
|
|
||||||
|
//催收任务详情--青田
|
||||||
|
private List<Map<String, Object>> taskDetail;
|
||||||
|
|
||||||
|
public List<Map<String, Object>> getTaskDetail() {
|
||||||
|
return taskDetail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDetail(List<Map<String, Object>> taskDetail) {
|
||||||
|
this.taskDetail = taskDetail;
|
||||||
|
}
|
||||||
|
|
||||||
public List<CmpmUserList> getCmpmUserLists() {
|
public List<CmpmUserList> getCmpmUserLists() {
|
||||||
return cmpmUserLists;
|
return cmpmUserLists;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,17 @@ public class CustInfoRetailVo
|
|||||||
//他行利率信息
|
//他行利率信息
|
||||||
private List<OtherBankRate> otherBankRates;
|
private List<OtherBankRate> otherBankRates;
|
||||||
|
|
||||||
|
//催收任务详情--青田
|
||||||
|
private List<Map<String, Object>> taskDetail;
|
||||||
|
|
||||||
|
public List<Map<String, Object>> getTaskDetail() {
|
||||||
|
return taskDetail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDetail(List<Map<String, Object>> taskDetail) {
|
||||||
|
this.taskDetail = taskDetail;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCmpmUserName() {
|
public String getCmpmUserName() {
|
||||||
return cmpmUserName!=null?cmpmUserName:"";
|
return cmpmUserName!=null?cmpmUserName:"";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import com.ruoyi.common.utils.SecurityUtils;
|
|||||||
import com.ruoyi.ibs.custmap.domain.entity.CustInfoRadar;
|
import com.ruoyi.ibs.custmap.domain.entity.CustInfoRadar;
|
||||||
import com.ruoyi.ibs.custmap.mapper.CustMapMapper;
|
import com.ruoyi.ibs.custmap.mapper.CustMapMapper;
|
||||||
import com.ruoyi.ibs.customerselect.mapper.CustInfoBusinessMapper;
|
import com.ruoyi.ibs.customerselect.mapper.CustInfoBusinessMapper;
|
||||||
|
import com.ruoyi.ibs.dashboard.domain.vo.CommonRespVO;
|
||||||
|
import com.ruoyi.ibs.dashboard.service.DashboardService;
|
||||||
import com.ruoyi.ibs.grid.domain.vo.AnchorDetail;
|
import com.ruoyi.ibs.grid.domain.vo.AnchorDetail;
|
||||||
import com.ruoyi.ibs.grid.mapper.AnchorMapper;
|
import com.ruoyi.ibs.grid.mapper.AnchorMapper;
|
||||||
import com.ruoyi.ibs.grid.service.AnchorService;
|
import com.ruoyi.ibs.grid.service.AnchorService;
|
||||||
@@ -66,7 +68,8 @@ public class CustInfoBusinessServiceImpl implements ICustInfoBusinessService
|
|||||||
private AnchorMapper anchorMapper;
|
private AnchorMapper anchorMapper;
|
||||||
@Resource
|
@Resource
|
||||||
RedisCache redisCache;
|
RedisCache redisCache;
|
||||||
|
@Autowired
|
||||||
|
private DashboardService dashboardService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CustMapMapper custMapMapper;
|
private CustMapMapper custMapMapper;
|
||||||
/**
|
/**
|
||||||
@@ -119,6 +122,10 @@ public class CustInfoBusinessServiceImpl implements ICustInfoBusinessService
|
|||||||
if (custInfoBusiness.getSocialCreditCode()!=null){
|
if (custInfoBusiness.getSocialCreditCode()!=null){
|
||||||
custInfoBusinessVo.setAddressDetails(anchorMapper.selectCustAddressList(custInfoBusiness.getSocialCreditCode()));
|
custInfoBusinessVo.setAddressDetails(anchorMapper.selectCustAddressList(custInfoBusiness.getSocialCreditCode()));
|
||||||
}
|
}
|
||||||
|
if (SecurityUtils.getHeadId().equals("932")){
|
||||||
|
CommonRespVO taskDetail = dashboardService.getTaskDetail(custId);
|
||||||
|
custInfoBusinessVo.setTaskDetail(taskDetail.getData());
|
||||||
|
}
|
||||||
return custInfoBusinessVo;
|
return custInfoBusinessVo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import com.ruoyi.common.utils.DateUtils;
|
|||||||
import com.ruoyi.common.utils.SecurityUtils;
|
import com.ruoyi.common.utils.SecurityUtils;
|
||||||
import com.ruoyi.ibs.custmap.domain.entity.CustInfoRadar;
|
import com.ruoyi.ibs.custmap.domain.entity.CustInfoRadar;
|
||||||
import com.ruoyi.ibs.custmap.mapper.CustMapMapper;
|
import com.ruoyi.ibs.custmap.mapper.CustMapMapper;
|
||||||
|
import com.ruoyi.ibs.dashboard.domain.vo.CommonRespVO;
|
||||||
|
import com.ruoyi.ibs.dashboard.service.DashboardService;
|
||||||
import com.ruoyi.ibs.grid.domain.vo.AnchorDetail;
|
import com.ruoyi.ibs.grid.domain.vo.AnchorDetail;
|
||||||
import com.ruoyi.ibs.grid.mapper.AnchorMapper;
|
import com.ruoyi.ibs.grid.mapper.AnchorMapper;
|
||||||
import com.ruoyi.ibs.grid.service.AnchorService;
|
import com.ruoyi.ibs.grid.service.AnchorService;
|
||||||
@@ -64,8 +66,8 @@ public class CustInfoMerchantServiceImpl implements ICustInfoMerchantService {
|
|||||||
private AnchorService anchorService;
|
private AnchorService anchorService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private AnchorMapper anchorMapper;
|
private AnchorMapper anchorMapper;
|
||||||
|
@Autowired
|
||||||
|
private DashboardService dashboardService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CustMapMapper custMapMapper;
|
private CustMapMapper custMapMapper;
|
||||||
|
|
||||||
@@ -119,7 +121,10 @@ public class CustInfoMerchantServiceImpl implements ICustInfoMerchantService {
|
|||||||
if (custInfoMerchant.getSocialCreditCode()!=null){
|
if (custInfoMerchant.getSocialCreditCode()!=null){
|
||||||
custInfoMerchantVo.setAddressDetails(anchorMapper.selectCustAddressList(custInfoMerchant.getSocialCreditCode()));
|
custInfoMerchantVo.setAddressDetails(anchorMapper.selectCustAddressList(custInfoMerchant.getSocialCreditCode()));
|
||||||
}
|
}
|
||||||
|
if (SecurityUtils.getHeadId().equals("932")){
|
||||||
|
CommonRespVO taskDetail = dashboardService.getTaskDetail(custId);
|
||||||
|
custInfoMerchantVo.setTaskDetail(taskDetail.getData());
|
||||||
|
}
|
||||||
return custInfoMerchantVo;
|
return custInfoMerchantVo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,10 @@ package com.ruoyi.ibs.list.service.impl;
|
|||||||
|
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import com.ruoyi.common.utils.SecurityUtils;
|
||||||
import com.ruoyi.ibs.customerselect.mapper.CustInfoBusinessMapper;
|
import com.ruoyi.ibs.customerselect.mapper.CustInfoBusinessMapper;
|
||||||
|
import com.ruoyi.ibs.dashboard.domain.vo.CommonRespVO;
|
||||||
|
import com.ruoyi.ibs.dashboard.service.DashboardService;
|
||||||
import com.ruoyi.ibs.grid.domain.vo.AnchorDetail;
|
import com.ruoyi.ibs.grid.domain.vo.AnchorDetail;
|
||||||
import com.ruoyi.ibs.grid.mapper.AnchorMapper;
|
import com.ruoyi.ibs.grid.mapper.AnchorMapper;
|
||||||
import com.ruoyi.ibs.grid.service.AnchorService;
|
import com.ruoyi.ibs.grid.service.AnchorService;
|
||||||
@@ -59,6 +62,8 @@ public class CustInfoRetailServiceImpl implements ICustInfoRetailService {
|
|||||||
private SysIndustryMapper sysIndustryMapper;
|
private SysIndustryMapper sysIndustryMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
private AnchorMapper anchorMapper;
|
private AnchorMapper anchorMapper;
|
||||||
|
@Autowired
|
||||||
|
private DashboardService dashboardService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询对私客户信息
|
* 查询对私客户信息
|
||||||
@@ -138,7 +143,10 @@ public class CustInfoRetailServiceImpl implements ICustInfoRetailService {
|
|||||||
if (custInfoRetail.getCustIdc()!=null){
|
if (custInfoRetail.getCustIdc()!=null){
|
||||||
custInfoRetailVo.setAddressDetails(anchorMapper.selectCustAddressList(custInfoRetail.getCustIdc()));
|
custInfoRetailVo.setAddressDetails(anchorMapper.selectCustAddressList(custInfoRetail.getCustIdc()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (SecurityUtils.getHeadId().equals("932")){
|
||||||
|
CommonRespVO taskDetail = dashboardService.getTaskDetail(custId);
|
||||||
|
custInfoRetailVo.setTaskDetail(taskDetail.getData());
|
||||||
}
|
}
|
||||||
return custInfoRetailVo;
|
return custInfoRetailVo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user