當(dāng)要根據(jù)某個非主鍵字段查詢一個對象時:
EntityWrapper<UserInfo> wrapper = new EntityWrapper<UserInfo>();
wrapper.eq("account_id", accountId);
UserInfo userInfo= userInfoService.selectOne(wrapper);//根據(jù)accountId找到綁定的員工
當(dāng)要根據(jù)某個非主鍵字段查詢一個對象時:
EntityWrapper<UserInfo> wrapper = new EntityWrapper<UserInfo>();
wrapper.eq("account_id", accountId);
UserInfo userInfo= userInfoService.selectOne(wrapper);//根據(jù)accountId找到綁定的員工