Exemple #1
0
 /**
  * 查询身份证验证申请信息明细
  *
  * @author:wjl
  * @time:2013-04-16 11:15:00
  */
 @Override
 protected String execMethod() throws Exception {
   logger.debug("query applyInfo Mx start");
   if (getSessionUser() == null) {
     return "loginMx";
   }
   if (!applyInfoDomain.getId().equals("0")) {
     applyInfoDomain = applyInfoService.queryApplyInfoMxById(applyInfoDomain.getId());
   } else {
     applyInfoDomain = new ApplyInfoDomain();
     applyInfoDomain.setId("0");
   }
   return SUCCESS;
 }
Exemple #2
0
  @Override
  public void saveApplyInfo(ApplyInfoDomain applyInfoDomain, String userId) {
    try {
      ApplyInfo bo = new ApplyInfo();
      bo.setVerifyStart(Long.valueOf(applyInfoDomain.getVerifyStart()));
      bo.setVerifyComment(java.net.URLDecoder.decode(applyInfoDomain.getVerifyComment(), "utf-8"));
      bo.setOperatorId(Long.valueOf(userId));
      bo.setId(Long.valueOf(applyInfoDomain.getId()));

      saveObject("modify_applyInfo_info", bo);
      // 对于通过的修改用户表
      if ("1".equals(applyInfoDomain.getVerifyStart())) {
        WebUserInfo webUserInfo = new WebUserInfo();
        webUserInfo.setId(Long.valueOf(applyInfoDomain.getUserId()));
        if ("0".equals(applyInfoDomain.getApplyType())) {
          webUserInfo.setPactCargoFlag(1);
        } else if ("1".equals(applyInfoDomain.getApplyType())) {
          webUserInfo.setPactCardFlag(1);
        } else if ("2".equals(applyInfoDomain.getApplyType())) {
          webUserInfo.setPactCarDriverFlag(1);
        }
        saveObject("modify_web_user_apply__info", webUserInfo);
      }
      // 添加操作日志
      ManagerWorkLogInfo MWLIbo = new ManagerWorkLogInfo();
      MWLIbo.setName("审核身份验证申请");
      MWLIbo.setColumnId(Long.valueOf(applyInfoDomain.getId()));
      String content = "";
      if (bo.getVerifyStart() == 1) {
        content = content + "审核结果:通过;";
      } else {
        content = content + "审核结果:不通过;";
      }
      content = content + "回复内容:" + bo.getVerifyComment() + ";";
      MWLIbo.setContent(content);
      MWLIbo.setManagerId(Long.valueOf(userId));
      MWLIbo.setTableName("t_apply_info");
      addObject("add_workLog_info", MWLIbo);
    } catch (Exception e) {
      logger.error("save_applyInfo", e);
      throw new RuntimeException();
    }
  }