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
"vscode:/vscode.git/clone" did not exist on "a92bf8d39b4a0bc57f7420e435958a2d0e254548"
Commit
d2d7af27
authored
May 28, 2019
by
季圣华
Browse files
增加根据id查询明细的接口
parent
90b09cf7
Changes
29
Show 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 {
...
@@ -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
);
...
...
src/main/java/com/jsh/erp/service/person/PersonComponent.java
View file @
d2d7af27
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/role/RoleComponent.java
View file @
d2d7af27
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/serialNumber/SerialNumberComponent.java
View file @
d2d7af27
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/supplier/SupplierComponent.java
View file @
d2d7af27
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/systemConfig/SystemConfigComponent.java
View file @
d2d7af27
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/unit/UnitComponent.java
View file @
d2d7af27
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/user/UserComponent.java
View file @
d2d7af27
...
@@ -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
...
...
src/main/java/com/jsh/erp/service/userBusiness/UserBusinessComponent.java
View file @
d2d7af27
...
@@ -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
...
...
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