Commit d2d7af27 authored by 季圣华's avatar 季圣华
Browse files

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

parent 90b09cf7
...@@ -44,6 +44,11 @@ public class OrganizationService { ...@@ -44,6 +44,11 @@ public class OrganizationService {
private UserService userService; private UserService userService;
@Resource @Resource
private LogService logService; private LogService logService;
public Organization getOrganization(long id) throws Exception {
return organizationMapper.selectByPrimaryKey(id);
}
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
public int insertOrganization(String beanJson, HttpServletRequest request)throws Exception { public int insertOrganization(String beanJson, HttpServletRequest request)throws Exception {
Organization organization = JSONObject.parseObject(beanJson, Organization.class); Organization organization = JSONObject.parseObject(beanJson, Organization.class);
......
...@@ -21,8 +21,8 @@ public class PersonComponent implements ICommonQuery { ...@@ -21,8 +21,8 @@ public class PersonComponent implements ICommonQuery {
private PersonService personService; private PersonService personService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return personService.getPerson(id);
} }
@Override @Override
......
...@@ -19,8 +19,8 @@ public class RoleComponent implements ICommonQuery { ...@@ -19,8 +19,8 @@ public class RoleComponent implements ICommonQuery {
private RoleService roleService; private RoleService roleService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return roleService.getRole(id);
} }
@Override @Override
......
...@@ -26,8 +26,8 @@ public class SerialNumberComponent implements ICommonQuery { ...@@ -26,8 +26,8 @@ public class SerialNumberComponent implements ICommonQuery {
private SerialNumberService serialNumberService; private SerialNumberService serialNumberService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return serialNumberService.getSerialNumber(id);
} }
@Override @Override
......
...@@ -21,8 +21,8 @@ public class SupplierComponent implements ICommonQuery { ...@@ -21,8 +21,8 @@ public class SupplierComponent implements ICommonQuery {
private SupplierService supplierService; private SupplierService supplierService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return supplierService.getSupplier(id);
} }
@Override @Override
......
...@@ -21,8 +21,8 @@ public class SystemConfigComponent implements ICommonQuery { ...@@ -21,8 +21,8 @@ public class SystemConfigComponent implements ICommonQuery {
private SystemConfigService systemConfigService; private SystemConfigService systemConfigService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return systemConfigService.getSystemConfig(id);
} }
@Override @Override
......
...@@ -20,8 +20,8 @@ public class UnitComponent implements ICommonQuery { ...@@ -20,8 +20,8 @@ public class UnitComponent implements ICommonQuery {
private UnitService unitService; private UnitService unitService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return unitService.getUnit(id);
} }
@Override @Override
......
...@@ -18,8 +18,8 @@ public class UserComponent implements ICommonQuery { ...@@ -18,8 +18,8 @@ public class UserComponent implements ICommonQuery {
private UserService userService; private UserService userService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return userService.getUser(id);
} }
@Override @Override
......
...@@ -22,8 +22,8 @@ public class UserBusinessComponent implements ICommonQuery { ...@@ -22,8 +22,8 @@ public class UserBusinessComponent implements ICommonQuery {
private UserBusinessService userBusinessService; private UserBusinessService userBusinessService;
@Override @Override
public Object selectOne(String condition)throws Exception { public Object selectOne(Long id) throws Exception {
return null; return userBusinessService.getUserBusiness(id);
} }
@Override @Override
......
Supports Markdown
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