Commit f87f4255 by huangZW

111

parent dd75c3e8
...@@ -106,6 +106,9 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -106,6 +106,9 @@ public class StaffApiServiceImpl implements StaffApiService {
@Override @Override
public List<StaffDTO> listByIds(List<String> staffIds) { public List<StaffDTO> listByIds(List<String> staffIds) {
if(CollectionUtil.isEmpty(staffIds)){
return new ArrayList<StaffDTO>();
}
List<TabHaobanStaff> staffs = staffMapper.listByIds(staffIds); List<TabHaobanStaff> staffs = staffMapper.listByIds(staffIds);
if(CollectionUtil.isNotEmpty(staffs)){ if(CollectionUtil.isNotEmpty(staffs)){
List<StaffDTO> resultList = EntityUtil.changeEntityListByJSON(StaffDTO.class, staffs); List<StaffDTO> resultList = EntityUtil.changeEntityListByJSON(StaffDTO.class, staffs);
......
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