Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
d2d7af27
Commit
d2d7af27
authored
May 28, 2019
by
季圣华
Browse files
增加根据id查询明细的接口
parent
90b09cf7
Changes
29
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/organization/OrganizationService.java
View file @
d2d7af27
...
...
@@ -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
);
...
...
src/main/java/com/jsh/erp/service/person/PersonComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/role/RoleComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/serialNumber/SerialNumberComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/supplier/SupplierComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/systemConfig/SystemConfigComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/unit/UnitComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/user/UserComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/userBusiness/UserBusinessComponent.java
View file @
d2d7af27
...
...
@@ -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
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment