Package edu.zzuli.common

Examples of edu.zzuli.common.MisException


   * @return
   */
  public List<Map<String, String>> getSsbmList(String GG_CZYB_ID) {
    try {
      if (GG_CZYB_ID == null) {
        throw new MisException("人员ID参数为null!");
      }
      Map map = new HashMap();
      String sql = "select GG_BMXX.Id,GG_BMXX.BMMC,GG_BMXX.BMFL from GG_BMRY,GG_BMXX where GG_BMRY.BMID=GG_BMXX.Id and GG_BMRY.RYID=:GG_CZYB_ID order by GG_BMXX.Sxh";
      map.put("GG_CZYB_ID", GG_CZYB_ID);
      return this.baseDaoEntity.queryForList(sql,map);
    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[LoginServiceImpl.getSsbmList]异常!");
    }
  }
View Full Code Here


  }

  public List queryForList(String sql, SqlParameterSource paramSource) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      if (paramSource == null) {
        throw new MisException("查询参数为null!");
      }
      return this.baseDaoEntity.getParaJdbcTemplate().queryForList(sql,
          paramSource);
    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[BaseDaoEntity.queryForList]异常!");
    }
  }
View Full Code Here

   * @param sql
   */
  public void execute(String sql) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      this.baseDaoEntity.getJdbcTemplate().execute(sql);
    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[BaseDaoEntity.queryForList]异常!");
    }
  }
View Full Code Here

   * @param paramSource
   */
  public void execute(String sql, SqlParameterSource paramSource) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      if (paramSource == null) {
        throw new MisException("查询参数为null!");
      }
      this.baseDaoEntity.getParaJdbcTemplate().update(sql, paramSource);
    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[BaseDaoEntity.queryForList]异常!");
    }
  }
View Full Code Here

   * @param mapParam
   */
  public void execute(String sql, Map mapParam) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      if (mapParam == null) {
        throw new MisException("查询参数为null!");
      }
      this.baseDaoEntity.getParaJdbcTemplate().update(sql, mapParam);
    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[BaseDaoEntity.queryForList]异常!");
    }
  }
View Full Code Here

  }

  public void saveSingleBasePO(BasePO basePO) {
    try {
      if (basePO == null) {
        throw new MisException("参数为null!");
      }
      this.baseDaoEntity.getHibernateDao().save(basePO);

    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[saveSingleBasePO]异常!");
    }
  }
View Full Code Here

      int day = 0;
      int hour = 0;
      int minute = 0;
      int sec = 0;
      if (strTime.length() < 8) {
        throw new MisException("时间格式不合法,不能少与八位数字!");
      }
      if (strTime.length() >= 8) {
        year = Integer.valueOf(strTime.substring(0, 4));
        month = Integer.valueOf(strTime.substring(4, 6)) - 1;
        day = Integer.valueOf(strTime.substring(6, 8));
View Full Code Here

    return localMap.values();
  }

  public V get(Object key) {
    if (!localMap.containsKey(key)) {
      new MisException("not contains key : " + key).printStackTrace();
    }
    return localMap.get(key);
  }
View Full Code Here

    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[BaseDaoEntity.selectSingle]异常!", e);
    }
  }
View Full Code Here

   */
  @Deprecated
  public Map selectSingleMap(String sql) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      List<Map> listMap = this.jdbcTemplate.query(sql, MyColumnMapRowMapper.newInstance());
      if (listMap.size() > 0) {
        return listMap.get(0);
      } else {
        return null;
      }
    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[BaseDaoEntity.selectSingleMap]异常!", e);
    }
  }
View Full Code Here

TOP

Related Classes of edu.zzuli.common.MisException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.