| | |
| | | * @return |
| | | */ |
| | | public List<List<String>> getReportMaterialType() { |
| | | |
| | | DataTableEntity dtMaterialType = baseDao.listTable("product_sys_dict", "dict_name = ?", new Object[] {Cmnconst.MATERIAL_TYPE}, new Object[] {"dict_value","dict_label"}); |
| | | DataTableEntity dtMaterialType = baseDao.listTable(Cmnconst.PRODUCT_PROJECT_BASE_MATERIAL_TYPE, null, new Object[] {}, new Object[] {"material_type_name","material_type_value"}); |
| | | if (!BaseUtil.dataTableIsEmpty(dtMaterialType)) { |
| | | |
| | | List<List<String>> returnList = new ArrayList<>(); |
| | |
| | | List<String> listNotShowMaterialCodeName = new ArrayList<>(); |
| | | |
| | | for (int i = 0; i < dtMaterialType.getRows(); i++) { |
| | | String dictValue = dtMaterialType.getFieldSetEntity(i).getString("dict_value"); |
| | | String dictLabel = dtMaterialType.getFieldSetEntity(i).getString("dict_label"); |
| | | String dictValue = dtMaterialType.getFieldSetEntity(i).getString("material_type_value"); |
| | | String dictLabel = dtMaterialType.getFieldSetEntity(i).getString("material_type_name"); |
| | | if ("0".equals(dictValue)) { |
| | | listSummary.add(dictValue); |
| | | listShowMaterialCode.add(dictValue); |