Commit 097ed1cd authored by chenhao's avatar chenhao

修改bug:4748

parent a41e7af8
......@@ -105,6 +105,16 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
public List<DataDictionary> getDataDictionaryAndCount(){
List<DataDictionary> list= dataDictionaryMapper.getDataDictionaryListAndCount();
for (DataDictionary data : list) {
Long id = data.getSequenceNbr();
int num = data.getCount();
for (DataDictionary dataDictionary : list) {
if(id.equals(dataDictionary.getParent())) {
num =num+dataDictionary.getCount();
}
}
data.setCount(num);
}
return list;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment