private static void Doctor_checkStatus(CommodityMapper commodityMapper) { Shared.printTestClassEndInfo(); Map<String, Object> params = new HashMap<String, Object>(); DataSourceContextHolder.setDbName(Shared.DBName_Test); commodityMapper.checkStatus(params); if (EnumErrorCode.values()[Integer.parseInt(params.get(BaseAction.SP_OUT_PARAM_iErrorCode).toString())] != EnumErrorCode.EC_NoError) { System.out.println("检查的商品状态的错误码不正确,errorCode =" + EnumErrorCode.values()[Integer.parseInt(params.get(BaseAction.SP_OUT_PARAM_iErrorCode).toString())]); } if (!params.get(BaseAction.SP_OUT_PARAM_sErrorMsg).toString().equals("")) { System.out.println("检查的商品状态的错误信息与预期中的错误信息不相符,errorMsg=" + params.get(BaseAction.SP_OUT_PARAM_sErrorMsg).toString()); } }java代码示例 标签:java,get,代码,SP,PARAM,params,OLW,toString,OUT From: https://www.cnblogs.com/BXERP/p/16640182.html