Commit 789c742f authored by 廖旭伟's avatar 廖旭伟

窗口负责人修改

parent 74a4efed
......@@ -302,4 +302,19 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
}
}
@Override
public WindowOwnerEntity get(Long key, Context context) throws AppException {
WindowOwnerEntity entity = this.dao.get(key);
if(entity!=null){
if(StringUtils.isNotEmpty(entity.getStaffIds())){
List<Long> staffIdList = Arrays.asList(entity.getStaffIds().split(",")).stream().map(s -> Long.parseLong(s.trim())).collect(Collectors.toList());
entity.setStaffIdList(staffIdList);
entity.setStaffCount(staffIdList.size());
}else {
entity.setStaffIdList(Collections.emptyList());
entity.setStaffCount(0);
}
}
return entity;
}
}
\ No newline at end of file
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