Commit 8286988e authored by chenzhao's avatar chenzhao

修改bug

parent f7d949c5
...@@ -160,10 +160,12 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID ...@@ -160,10 +160,12 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
detailMap.put("postTypeName",dataDicSimpleList); detailMap.put("postTypeName",dataDicSimpleList);
List<Map<String, Object>> list = dutyPersonShiftMapper.getFirstAidForTypeCodeAndCompanyId( List<Map<String, Object>> list = dutyPersonShiftMapper.getFirstAidForTypeCodeAndCompanyId(
Long.parseLong(i)); Long.parseLong(firstAidCompanyId));
list.stream().forEach(m -> { list.stream().forEach(m -> {
String firstAidNameString = m.get("name").toString() + "@" + m.get("sequence_nbr").toString(); String firstAidNameString = m.get("name").toString() + "@" + m.get("sequence_nbr").toString();
firstAidSimpleList.add(firstAidNameString); if (!firstAidSimpleList.contains(firstAidNameString)){
firstAidSimpleList.add(firstAidNameString);
}
}); });
if( firstAidSimpleList != null && firstAidSimpleList.size() >= 1 ) { if( firstAidSimpleList != null && firstAidSimpleList.size() >= 1 ) {
detailMap.put("firstAidName", firstAidSimpleList); detailMap.put("firstAidName", firstAidSimpleList);
......
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