use of com.netsteadfast.greenstep.po.hbm.TbSysCode in project bamboobsc by billchen198318.
the class BscKpiCode method loadMapData.
private static void loadMapData() {
managementMap.clear();
compareTypeMap.clear();
calMap.clear();
dataTypeMap.clear();
Map<String, Object> params = new HashMap<String, Object>();
params.put("type", CODE_TYPE);
Map<String, String> orderParams = new HashMap<String, String>();
orderParams.put("code", "ASC");
try {
List<TbSysCode> codes = sysCodeService.findListByParams(params, null, orderParams);
for (TbSysCode code : codes) {
fillDataMap(code);
}
} catch (ServiceException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
checkDataMap();
}
use of com.netsteadfast.greenstep.po.hbm.TbSysCode in project bamboobsc by billchen198318.
the class BscReportPropertyUtils method getParameterValue.
private static String getParameterValue(String code) {
List<TbSysCode> sysCodeList = sysCodeThreadLocal.get();
if (sysCodeList == null) {
return code;
}
String value = "";
for (TbSysCode sysCode : sysCodeList) {
if (sysCode.getCode().equals(code)) {
value = StringUtils.defaultString(sysCode.getParam1());
}
}
if (StringUtils.isBlank(value)) {
return code;
}
return value;
}
Aggregations