增加根据id查询明细的接口

This commit is contained in:
季圣华
2019-05-28 23:37:16 +08:00
parent 90b09cf7ac
commit d2d7af27ac
29 changed files with 78 additions and 52 deletions

View File

@@ -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

View File

@@ -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);
}