增加根据id查询明细的接口
This commit is contained in:
@@ -19,8 +19,8 @@ public class AccountComponent implements ICommonQuery {
|
||||
private AccountService accountService;
|
||||
|
||||
@Override
|
||||
public Object selectOne(String condition) {
|
||||
return null;
|
||||
public Object selectOne(Long id) throws Exception {
|
||||
return accountService.getAccount(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -58,7 +58,7 @@ public class AccountService {
|
||||
@Resource
|
||||
private UserService userService;
|
||||
|
||||
public Account getAccount(long id) {
|
||||
public Account getAccount(long id) throws Exception{
|
||||
return accountMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user