コード例 #1
0
  /**
   * 自动处理客户信息并加入风险名单
   *
   * @return
   */
  public void addRiskCustomerschedu() {
    // 查询风险属性
    List<RiskAttribute> attributeList = riskAttributeService.findRiskOnlineAttributeList();

    CustomerInforFilter filter = new CustomerInforFilter();
    // 设置每次最大查询记录数
    filter.setLimit(50);
    // 查询页码
    filter.setPage(0);
    // 查询客户信息
    QueryResult<CustomerInfor> qs = customerInforService.findCustomerInforByFilter(filter);
    try {
      while (qs.getItems().size() != 0) {
        for (CustomerInfor customerInfor : qs.getItems()) {
          for (RiskAttribute riskAttribute : attributeList) {
            // 处理客户信息
            processRisk(customerInfor, riskAttribute);
          }
        }
        // 设置查询的页码
        filter.setPage(filter.getPage() + 1);
        qs = customerInforService.findCustomerInforByFilter(filter);
      }
    } catch (Exception e) {
      throw new RuntimeException(e.getMessage());
    }
  }
コード例 #2
0
 /**
  * 同步人行征信报告
  *
  * @return
  */
 public void synPbccrcReport() {
   CustomerInforFilter filter = new CustomerInforFilter();
   // 设置每次最大查询记录数
   filter.setLimit(50);
   // 查询页码
   filter.setPage(0);
   // 查询客户信息
   QueryResult<CustomerInfor> qs = customerInforService.findCustomerInforByFilter(filter);
   try {
     PbccrcReport pbccrcReport = new PbccrcReport();
     while (qs.getItems().size() != 0) {
       for (CustomerInfor customerInfor : qs.getItems()) {
         // 查询人行征信信息
         pbccrcReport.manuProcessPbocCreditInfo(
             customerInfor.getChineseName(),
             customerInfor.getCardType(),
             customerInfor.getCardId(),
             "",
             "",
             "",
             "",
             "");
       }
       // 设置查询的页码
       filter.setPage(filter.getPage() + 1);
       qs = customerInforService.findCustomerInforByFilter(filter);
     }
   } catch (Exception e) {
     throw new RuntimeException(e.getMessage());
   }
 }