fix:查询子项

pg_adapter
wangxy 6 months ago
parent 283cf3f4f5
commit 7c09284ee1

@ -79,9 +79,7 @@ public class CheckReportManager {
public List<CheckTypeItemDTO> getCheckTypeDTO(String checkType,String typeName) {
List<CheckTypeItemDTO> checkTypeItemDTOList =new ArrayList<>();
SysDictData dictData = new SysDictData();
dictData.setDictType(checkType);
List<SysDictData> dataList = dictDataService.selectDictDataList(dictData);
List<SysDictData> dataList = dictDataService.selectDictDataByType(checkType);
dataList.forEach(sysDictData2 -> checkTypeItemDTOList.add(CheckTypeItemDTO.builder()
.typeName(typeName)
.checkType(checkType)
@ -97,9 +95,7 @@ public class CheckReportManager {
public List<CheckTypeDTO> getCheckTypeDtoParent(String type) {
List<CheckTypeDTO> checkTypeDtoS = new ArrayList<>();
SysDictData sysDictData =new SysDictData();
sysDictData.setDictType(type);
List<SysDictData> list = dictDataService.selectDictDataList(sysDictData);
List<SysDictData> list = dictDataService.selectDictDataByType(type);
list.forEach(sysDictData1 -> checkTypeDtoS.add(CheckTypeDTO.builder()
.typeName(sysDictData1.getDictLabel())
.checkType(sysDictData1.getDictValue()).build()));

@ -57,4 +57,12 @@ public interface ISysDictDataService
* @return
*/
public int updateDictData(SysDictData dictData);
/**
*
*
* @param dictType
* @return
*/
public List<SysDictData> selectDictDataByType(String dictType);
}

@ -110,4 +110,9 @@ public class SysDictDataServiceImpl implements ISysDictDataService
}
return row;
}
@Override
public List<SysDictData> selectDictDataByType(String dictType) {
return dictDataMapper.selectDictDataByType(dictType);
}
}

Loading…
Cancel
Save