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

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

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