Package org.g4studio.core.exception

Examples of org.g4studio.core.exception.PrcException


    PropertiesHelper pHelper = PropertiesFactory.getPropertiesHelper(PropertiesFile.G4);
    String callPrcSuccessFlag = pHelper.getValue("callPrcSuccessFlag", "1");
    // getSqlMapClientTemplate().queryForObject(prcName, prcDto);
    getSqlMapClientTemplate().insert(prcName, prcDto);
    if (G4Utils.isEmpty(prcDto.getAsString("appCode"))) {
      throw new PrcException(prcName, "存储过程没有返回状态码appCode");
    } else {
      if (!prcDto.getAsString("appCode").equals(callPrcSuccessFlag)) {
        throw new PrcException(prcName, prcDto.getAsString("appCode"), prcDto.getAsString("errorMsg"));
      }
    }
  }
View Full Code Here


   */
  public void callPrc(String prcName, Dto prcDto, String successFlag) throws PrcException {
    // getSqlMapClientTemplate().queryForObject(prcName, prcDto);
    getSqlMapClientTemplate().insert(prcName, prcDto);
    if (G4Utils.isEmpty(prcDto.getAsString("appCode"))) {
      throw new PrcException(prcName, "存储过程没有返回状态码appCode");
    } else {
      if (!prcDto.getAsString("appCode").equals(successFlag)) {
        throw new PrcException(prcName, prcDto.getAsString("appCode"), prcDto.getAsString("errorMsg"));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.g4studio.core.exception.PrcException

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.