public UserVO(UserPO po) { id = po.getID(); password = po.getPassword(); authority = po.getAuthority(); name = po.getName(); sex = po.getSex(); job = po.getJob(); hallId = po.getHallId(); }
public UserVO findUser(String known, String info) { UserPO po = dataFactory.getUserdataService().find(known, info); if (po == null) return null; String hallName = apartmentbl.getName(po.getHallId()); return new UserVO( po.getID(), po.getPassword(), po.getAuthority(), po.getName(), po.getSex(), po.getJob(), hallName); }