/**
  * 为下载照片提供主键加密
  *
  * @param value
  * @return
  */
 @RequestMapping("encodingSpaceId")
 public @ResponseBody Message encodingSpaceId(String value) {
   Message message = new Message();
   try {
     DESPlus desPlus = new DESPlus();
     value = desPlus.encrypt(value);
     message.setSuccess(true);
     message.setMsg(value);
   } catch (Exception e) {
     message.setSuccess(false);
     message.setMsg("主键id加密失败");
     e.printStackTrace();
   }
   return message;
 }
  @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;
  }
  /**
   * 弹出执行展业计划窗口
   *
   * @param value
   * @return
   */
  @RequestMapping("registerSpaceExecuteFrame")
  public ModelAndView registerSpaceExecuteFrame(String value) {
    ModelAndView modelAndView = new ModelAndView();
    String value2 = "";
    try {
      DESPlus desPlus = new DESPlus();
      value2 = desPlus.encrypt(value);
    } catch (Exception e) {
      e.printStackTrace();
    }

    modelAndView.addObject("value", value);
    modelAndView.addObject("value2", value2);
    modelAndView.setViewName("/jsp/rc/sales/execute_space.jsp");
    return modelAndView;
  }