コード例 #1
0
  @RequestMapping(value = "returnBankCardJSPforApproval")
  public ModelAndView returnBankCardJSPforApproval(
      Long modifyCatdAppId, Long creditapplicationId, String type) {
    System.out.println(creditapplicationId);

    ModifyCatdApp modifyCatdApp =
        modifyCatdAppService.queryModifyCatdAppByPrimarKey(modifyCatdAppId);
    ModelAndView modelAndView = new ModelAndView();
    modelAndView.setViewName("/jsp/rc/basicInfo/bankCardVeiwNew.jsp");
    modelAndView.addObject("creditapplicationId", creditapplicationId);
    modelAndView.addObject("modifyCatdAppId", modifyCatdAppId);

    Map map = new HashMap();
    DESPlus desPlus;
    try {
      desPlus = new DESPlus();
      map.put("clientid", desPlus.encrypt(creditapplicationId + "AccountCard"));
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    String clientid = (String) map.get("clientid");

    System.out.println(clientid);

    long nowTime = System.currentTimeMillis();
    String sMillis[] = new String[2];
    try {
      Properties properties = PropertiesUtil.loadProperties("spring/cm/cm.properties");
      DESPlus desPlus2 = new DESPlus();
      sMillis[0] = desPlus2.encrypt(nowTime + "");
      String cmIp = properties.getProperty("cm.hostip");
      String DESIp = desPlus2.encrypt(cmIp);
      sMillis[1] = DESIp;
    } catch (Exception e) {
      e.printStackTrace();
    }

    String signTime = sMillis[0];
    String signIp = sMillis[1];

    modelAndView.addObject("clientid", clientid);
    modelAndView.addObject("signTime", signTime);
    modelAndView.addObject("signIp", signIp);
    modelAndView.addObject("modifyCatdApp", modifyCatdApp);

    return modelAndView;
  }
コード例 #2
0
 /**
  * 验证修改卡信息文件是否上传
  *
  * @author hq @Description:
  * @param creditAppId
  * @return Map
  */
 @RequestMapping(value = "getImgAmountByCreditAccountCard")
 @ResponseBody
 public Map getImgAmountByGuaranor(Long creditAppId) {
   Map map = new HashMap();
   DESPlus desPlus;
   try {
     desPlus = new DESPlus();
     System.out.println(creditAppId + "AccountCard");
     System.out.println(creditAppId + "AccountCard");
     System.out.println(creditAppId + "AccountCard");
     System.out.println(creditAppId + "AccountCard");
     int imgAmount = creditApplicationService.getImgAmount(creditAppId + "AccountCard");
     map.put("imgAmount", imgAmount);
     return map;
   } catch (Exception e) {
     e.printStackTrace();
     return null;
   }
 }