Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bsoft
sv-springboot
Commits
10de1d88
Commit
10de1d88
authored
Oct 21, 2019
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Service添加
parent
8d2963a6
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
1183 additions
and
42 deletions
+1183
-42
bsoft-api/src/main/java/com/bsoft/api/common/base/RequestResult.java
+37
-0
bsoft-api/src/main/java/com/bsoft/api/common/enums/RequestResultType.java
+21
-0
bsoft-api/src/main/java/com/bsoft/api/controller/DicDimController.java
+63
-0
bsoft-api/src/main/java/com/bsoft/api/controller/DicOrgController.java
+62
-0
bsoft-api/src/main/java/com/bsoft/api/controller/SysMenuController.java
+62
-0
bsoft-api/src/main/java/com/bsoft/api/controller/SysRoleController.java
+62
-0
bsoft-api/src/main/java/com/bsoft/api/controller/SysRoleMenuRsController.java
+63
-0
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserMenuRsController.java
+63
-0
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserOrgController.java
+62
-0
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserRoleRsController.java
+62
-0
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserMapper.java
+6
-5
bsoft-api/src/main/java/com/bsoft/api/model/SysUser.java
+30
-30
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/ListPage.java
+68
-0
bsoft-api/src/main/java/com/bsoft/api/service/DicDimService.java
+8
-0
bsoft-api/src/main/java/com/bsoft/api/service/DicOrgService.java
+6
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/DicDimServiceImpl.java
+47
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysMenuServiceImpl.java
+46
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleMenuRsServiceImpl.java
+46
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleServiceImpl.java
+47
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserMenuRsServiceImpl.java
+46
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserOrgRsServiceImpl.java
+46
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserRoleServiceImpl.java
+47
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/UserServiceImpl.java
+2
-1
bsoft-api/src/main/java/com/bsoft/api/service/Impl/dicOrgServiceImpl.java
+45
-0
bsoft-api/src/main/java/com/bsoft/api/service/ServiceBase.java
+46
-0
bsoft-api/src/main/java/com/bsoft/api/service/SysMenuService.java
+6
-0
bsoft-api/src/main/java/com/bsoft/api/service/SysRoleMenuRsService.java
+6
-0
bsoft-api/src/main/java/com/bsoft/api/service/SysRoleService.java
+6
-0
bsoft-api/src/main/java/com/bsoft/api/service/SysUserMenuRsService.java
+6
-0
bsoft-api/src/main/java/com/bsoft/api/service/SysUserOrgRsService.java
+6
-0
bsoft-api/src/main/java/com/bsoft/api/service/SysUserRoleRsService.java
+6
-0
bsoft-api/src/main/resources/mapper/SysUserMapper.xml
+6
-6
bsoft-api/src/test/resources/generatorConfig.xml
+48
-0
No files found.
bsoft-api/src/main/java/com/bsoft/api/common/base/RequestResult.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
common
.
base
;
public
class
RequestResult
{
Integer
code
;
String
msg
;
Object
data
;
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
Object
getData
()
{
return
data
;
}
public
void
setData
(
Object
data
)
{
this
.
data
=
data
;
}
public
RequestResult
(
Integer
code
,
String
msg
,
Object
data
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
this
.
data
=
data
;
}
}
bsoft-api/src/main/java/com/bsoft/api/common/enums/RequestResultType.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
common
.
enums
;
public
enum
RequestResultType
{
SUCCESS
(
1
,
"成功"
),
FAILURE
(
0
,
"失败"
),;
private
int
value
;
private
String
desc
;
RequestResultType
(
int
value
,
String
desc
){
this
.
value
=
value
;
this
.
desc
=
desc
;
}
public
int
getValue
()
{
return
value
;
}
public
String
getDesc
()
{
return
desc
;
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/DicDimController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.Result
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.DicDim
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.DicDimService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"维度操作"
})
@RequestMapping
(
"dim"
)
@RestController
public
class
DicDimController
{
@Autowired
private
DicDimService
dicDimService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
DicDim
>
list
=
dicDimService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
DicDim
>
list
=
dicDimService
.
findAll
();
ListPage
<
DicDim
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
dicDimService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
DicDim
dicDim
){
dicDimService
.
add
(
dicDim
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
DicDim
dicDim
){
dicDimService
.
update
(
dicDim
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
dicDimService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/DicOrgController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.DicOrg
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.DicOrgService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"机构"
})
@RequestMapping
(
"org"
)
@RestController
public
class
DicOrgController
{
@Autowired
private
DicOrgService
dicOrgService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
DicOrg
>
list
=
dicOrgService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
DicOrg
>
list
=
dicOrgService
.
findAll
();
ListPage
<
DicOrg
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
dicOrgService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
DicOrg
dicOrg
){
dicOrgService
.
add
(
dicOrg
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
DicOrg
dicOrg
){
dicOrgService
.
update
(
dicOrg
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
dicOrgService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/SysMenuController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.SysMenu
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.SysMenuService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"菜单"
})
@RequestMapping
(
"menu"
)
@RestController
public
class
SysMenuController
{
@Autowired
private
SysMenuService
sysMenuService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
SysMenu
>
list
=
sysMenuService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
SysMenu
>
list
=
sysMenuService
.
findAll
();
ListPage
<
SysMenu
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
sysMenuService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
SysMenu
sysMenu
){
sysMenuService
.
add
(
sysMenu
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
SysMenu
sysMenu
){
sysMenuService
.
update
(
sysMenu
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
sysMenuService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/SysRoleController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.SysRole
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.SysRoleService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"角色"
})
@RequestMapping
(
"role"
)
@RestController
public
class
SysRoleController
{
@Autowired
private
SysRoleService
sysRoleService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
SysRole
>
list
=
sysRoleService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
SysRole
>
list
=
sysRoleService
.
findAll
();
ListPage
<
SysRole
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
sysRoleService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
SysRole
sysRole
){
sysRoleService
.
add
(
sysRole
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
SysRole
sysRole
){
sysRoleService
.
update
(
sysRole
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
sysRoleService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/SysRoleMenuRsController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.SysRoleMenuRs
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.SysRoleMenuRsService
;
import
com.bsoft.api.service.SysUserOrgRsService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"角色菜单关系"
})
@RequestMapping
(
"roleMenu"
)
@RestController
public
class
SysRoleMenuRsController
{
@Autowired
private
SysRoleMenuRsService
sysRoleMenuRsService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
SysRoleMenuRs
>
list
=
sysRoleMenuRsService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
SysRoleMenuRs
>
list
=
sysRoleMenuRsService
.
findAll
();
ListPage
<
SysRoleMenuRs
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
sysRoleMenuRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
SysRoleMenuRs
sysRoleMenuRs
){
sysRoleMenuRsService
.
add
(
sysRoleMenuRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
SysRoleMenuRs
sysRoleMenuRs
){
sysRoleMenuRsService
.
update
(
sysRoleMenuRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
sysRoleMenuRsService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserMenuRsController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.SysRoleMenuRs
;
import
com.bsoft.api.model.SysUserMenuRs
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.SysUserMenuRsService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"用户菜单关系"
})
@RequestMapping
(
"userMenu"
)
@RestController
public
class
SysUserMenuRsController
{
@Autowired
private
SysUserMenuRsService
sysUserMenuRsService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
SysUserMenuRs
>
list
=
sysUserMenuRsService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
SysUserMenuRs
>
list
=
sysUserMenuRsService
.
findAll
();
ListPage
<
SysUserMenuRs
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
sysUserMenuRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
SysUserMenuRs
sysUserMenuRs
){
sysUserMenuRsService
.
add
(
sysUserMenuRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
SysUserMenuRs
sysUserMenuRs
){
sysUserMenuRsService
.
update
(
sysUserMenuRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
sysUserMenuRsService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserOrgController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.SysUserOrgRs
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.SysUserOrgRsService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"用户机构关系"
})
@RequestMapping
(
"userOrg"
)
@RestController
public
class
SysUserOrgController
{
@Autowired
private
SysUserOrgRsService
sysUserOrgRsService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
SysUserOrgRs
>
list
=
sysUserOrgRsService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
SysUserOrgRs
>
list
=
sysUserOrgRsService
.
findAll
();
ListPage
<
SysUserOrgRs
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
sysUserOrgRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
SysUserOrgRs
sysUserOrgRs
){
sysUserOrgRsService
.
add
(
sysUserOrgRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
SysUserOrgRs
sysUserOrgRs
){
sysUserOrgRsService
.
update
(
sysUserOrgRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
sysUserOrgRsService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserRoleRsController.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.base.RequestResult
;
import
com.bsoft.api.common.enums.RequestResultType
;
import
com.bsoft.api.model.SysUserRoleRs
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.SysUserRoleRsService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
tags
=
{
"用户角色关系"
})
@RequestMapping
(
"userRole"
)
@RestController
public
class
SysUserRoleRsController
{
@Autowired
private
SysUserRoleRsService
sysUserRoleRsService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
SysUserRoleRs
>
list
=
sysUserRoleRsService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
SysUserRoleRs
>
list
=
sysUserRoleRsService
.
findAll
();
ListPage
<
SysUserRoleRs
>
listPage
=
new
ListPage
(
list
,
pageSize
,
pageIndex
,
0
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
sysUserRoleRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
SysUserRoleRs
sysUserRoleRs
){
sysUserRoleRsService
.
add
(
sysUserRoleRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
SysUserRoleRs
sysUserRoleRs
){
sysUserRoleRsService
.
update
(
sysUserRoleRs
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
sysUserRoleRsService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserMapper.java
View file @
10de1d88
...
@@ -9,7 +9,7 @@ public interface SysUserMapper {
...
@@ -9,7 +9,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
* This method corresponds to the database table LL.SYS_USER
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
BigDecimal
id
);
...
@@ -17,7 +17,7 @@ public interface SysUserMapper {
...
@@ -17,7 +17,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
* This method corresponds to the database table LL.SYS_USER
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
int
insert
(
SysUser
record
);
int
insert
(
SysUser
record
);
...
@@ -25,7 +25,7 @@ public interface SysUserMapper {
...
@@ -25,7 +25,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
* This method corresponds to the database table LL.SYS_USER
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
SysUser
selectByPrimaryKey
(
BigDecimal
id
);
SysUser
selectByPrimaryKey
(
BigDecimal
id
);
...
@@ -33,7 +33,7 @@ public interface SysUserMapper {
...
@@ -33,7 +33,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
* This method corresponds to the database table LL.SYS_USER
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
List
<
SysUser
>
selectAll
();
List
<
SysUser
>
selectAll
();
...
@@ -41,7 +41,7 @@ public interface SysUserMapper {
...
@@ -41,7 +41,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
* This method corresponds to the database table LL.SYS_USER
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
int
updateByPrimaryKey
(
SysUser
record
);
int
updateByPrimaryKey
(
SysUser
record
);
}
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/model/SysUser.java
View file @
10de1d88
...
@@ -9,7 +9,7 @@ public class SysUser {
...
@@ -9,7 +9,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.ID
* This field corresponds to the database column LL.SYS_USER.ID
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
BigDecimal
id
;
private
BigDecimal
id
;
...
@@ -18,7 +18,7 @@ public class SysUser {
...
@@ -18,7 +18,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.CREATE_DATE
* This field corresponds to the database column LL.SYS_USER.CREATE_DATE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
Date
createDate
;
private
Date
createDate
;
...
@@ -27,7 +27,7 @@ public class SysUser {
...
@@ -27,7 +27,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.CREATE_USERID
* This field corresponds to the database column LL.SYS_USER.CREATE_USERID
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
BigDecimal
createUserid
;
private
BigDecimal
createUserid
;
...
@@ -36,7 +36,7 @@ public class SysUser {
...
@@ -36,7 +36,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.STATE
* This field corresponds to the database column LL.SYS_USER.STATE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
BigDecimal
state
;
private
BigDecimal
state
;
...
@@ -45,7 +45,7 @@ public class SysUser {
...
@@ -45,7 +45,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.USER_CODE
* This field corresponds to the database column LL.SYS_USER.USER_CODE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
Object
userCode
;
private
Object
userCode
;
...
@@ -54,7 +54,7 @@ public class SysUser {
...
@@ -54,7 +54,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.USER_NAME
* This field corresponds to the database column LL.SYS_USER.USER_NAME
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
Object
userName
;
private
Object
userName
;
...
@@ -63,7 +63,7 @@ public class SysUser {
...
@@ -63,7 +63,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.PASSWORD
* This field corresponds to the database column LL.SYS_USER.PASSWORD
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
Object
password
;
private
Object
password
;
...
@@ -72,7 +72,7 @@ public class SysUser {
...
@@ -72,7 +72,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.IDCARD
* This field corresponds to the database column LL.SYS_USER.IDCARD
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
Object
idcard
;
private
Object
idcard
;
...
@@ -81,7 +81,7 @@ public class SysUser {
...
@@ -81,7 +81,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.SEX
* This field corresponds to the database column LL.SYS_USER.SEX
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
Object
sex
;
private
Object
sex
;
...
@@ -90,7 +90,7 @@ public class SysUser {
...
@@ -90,7 +90,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.MOBILE
* This field corresponds to the database column LL.SYS_USER.MOBILE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
private
Object
mobile
;
private
Object
mobile
;
...
@@ -100,7 +100,7 @@ public class SysUser {
...
@@ -100,7 +100,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.ID
* @return the value of LL.SYS_USER.ID
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
BigDecimal
getId
()
{
public
BigDecimal
getId
()
{
return
id
;
return
id
;
...
@@ -112,7 +112,7 @@ public class SysUser {
...
@@ -112,7 +112,7 @@ public class SysUser {
*
*
* @param id the value for LL.SYS_USER.ID
* @param id the value for LL.SYS_USER.ID
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setId
(
BigDecimal
id
)
{
public
void
setId
(
BigDecimal
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -124,7 +124,7 @@ public class SysUser {
...
@@ -124,7 +124,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.CREATE_DATE
* @return the value of LL.SYS_USER.CREATE_DATE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
Date
getCreateDate
()
{
public
Date
getCreateDate
()
{
return
createDate
;
return
createDate
;
...
@@ -136,7 +136,7 @@ public class SysUser {
...
@@ -136,7 +136,7 @@ public class SysUser {
*
*
* @param createDate the value for LL.SYS_USER.CREATE_DATE
* @param createDate the value for LL.SYS_USER.CREATE_DATE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setCreateDate
(
Date
createDate
)
{
public
void
setCreateDate
(
Date
createDate
)
{
this
.
createDate
=
createDate
;
this
.
createDate
=
createDate
;
...
@@ -148,7 +148,7 @@ public class SysUser {
...
@@ -148,7 +148,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.CREATE_USERID
* @return the value of LL.SYS_USER.CREATE_USERID
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
BigDecimal
getCreateUserid
()
{
public
BigDecimal
getCreateUserid
()
{
return
createUserid
;
return
createUserid
;
...
@@ -160,7 +160,7 @@ public class SysUser {
...
@@ -160,7 +160,7 @@ public class SysUser {
*
*
* @param createUserid the value for LL.SYS_USER.CREATE_USERID
* @param createUserid the value for LL.SYS_USER.CREATE_USERID
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setCreateUserid
(
BigDecimal
createUserid
)
{
public
void
setCreateUserid
(
BigDecimal
createUserid
)
{
this
.
createUserid
=
createUserid
;
this
.
createUserid
=
createUserid
;
...
@@ -172,7 +172,7 @@ public class SysUser {
...
@@ -172,7 +172,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.STATE
* @return the value of LL.SYS_USER.STATE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
BigDecimal
getState
()
{
public
BigDecimal
getState
()
{
return
state
;
return
state
;
...
@@ -184,7 +184,7 @@ public class SysUser {
...
@@ -184,7 +184,7 @@ public class SysUser {
*
*
* @param state the value for LL.SYS_USER.STATE
* @param state the value for LL.SYS_USER.STATE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setState
(
BigDecimal
state
)
{
public
void
setState
(
BigDecimal
state
)
{
this
.
state
=
state
;
this
.
state
=
state
;
...
@@ -196,7 +196,7 @@ public class SysUser {
...
@@ -196,7 +196,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.USER_CODE
* @return the value of LL.SYS_USER.USER_CODE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
Object
getUserCode
()
{
public
Object
getUserCode
()
{
return
userCode
;
return
userCode
;
...
@@ -208,7 +208,7 @@ public class SysUser {
...
@@ -208,7 +208,7 @@ public class SysUser {
*
*
* @param userCode the value for LL.SYS_USER.USER_CODE
* @param userCode the value for LL.SYS_USER.USER_CODE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setUserCode
(
Object
userCode
)
{
public
void
setUserCode
(
Object
userCode
)
{
this
.
userCode
=
userCode
;
this
.
userCode
=
userCode
;
...
@@ -220,7 +220,7 @@ public class SysUser {
...
@@ -220,7 +220,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.USER_NAME
* @return the value of LL.SYS_USER.USER_NAME
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
Object
getUserName
()
{
public
Object
getUserName
()
{
return
userName
;
return
userName
;
...
@@ -232,7 +232,7 @@ public class SysUser {
...
@@ -232,7 +232,7 @@ public class SysUser {
*
*
* @param userName the value for LL.SYS_USER.USER_NAME
* @param userName the value for LL.SYS_USER.USER_NAME
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setUserName
(
Object
userName
)
{
public
void
setUserName
(
Object
userName
)
{
this
.
userName
=
userName
;
this
.
userName
=
userName
;
...
@@ -244,7 +244,7 @@ public class SysUser {
...
@@ -244,7 +244,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.PASSWORD
* @return the value of LL.SYS_USER.PASSWORD
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
Object
getPassword
()
{
public
Object
getPassword
()
{
return
password
;
return
password
;
...
@@ -256,7 +256,7 @@ public class SysUser {
...
@@ -256,7 +256,7 @@ public class SysUser {
*
*
* @param password the value for LL.SYS_USER.PASSWORD
* @param password the value for LL.SYS_USER.PASSWORD
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setPassword
(
Object
password
)
{
public
void
setPassword
(
Object
password
)
{
this
.
password
=
password
;
this
.
password
=
password
;
...
@@ -268,7 +268,7 @@ public class SysUser {
...
@@ -268,7 +268,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.IDCARD
* @return the value of LL.SYS_USER.IDCARD
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
Object
getIdcard
()
{
public
Object
getIdcard
()
{
return
idcard
;
return
idcard
;
...
@@ -280,7 +280,7 @@ public class SysUser {
...
@@ -280,7 +280,7 @@ public class SysUser {
*
*
* @param idcard the value for LL.SYS_USER.IDCARD
* @param idcard the value for LL.SYS_USER.IDCARD
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setIdcard
(
Object
idcard
)
{
public
void
setIdcard
(
Object
idcard
)
{
this
.
idcard
=
idcard
;
this
.
idcard
=
idcard
;
...
@@ -292,7 +292,7 @@ public class SysUser {
...
@@ -292,7 +292,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.SEX
* @return the value of LL.SYS_USER.SEX
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
Object
getSex
()
{
public
Object
getSex
()
{
return
sex
;
return
sex
;
...
@@ -304,7 +304,7 @@ public class SysUser {
...
@@ -304,7 +304,7 @@ public class SysUser {
*
*
* @param sex the value for LL.SYS_USER.SEX
* @param sex the value for LL.SYS_USER.SEX
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setSex
(
Object
sex
)
{
public
void
setSex
(
Object
sex
)
{
this
.
sex
=
sex
;
this
.
sex
=
sex
;
...
@@ -316,7 +316,7 @@ public class SysUser {
...
@@ -316,7 +316,7 @@ public class SysUser {
*
*
* @return the value of LL.SYS_USER.MOBILE
* @return the value of LL.SYS_USER.MOBILE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
Object
getMobile
()
{
public
Object
getMobile
()
{
return
mobile
;
return
mobile
;
...
@@ -328,7 +328,7 @@ public class SysUser {
...
@@ -328,7 +328,7 @@ public class SysUser {
*
*
* @param mobile the value for LL.SYS_USER.MOBILE
* @param mobile the value for LL.SYS_USER.MOBILE
*
*
* @mbg.generated Mon Oct 21 1
1:03:4
3 CST 2019
* @mbg.generated Mon Oct 21 1
5:22:3
3 CST 2019
*/
*/
public
void
setMobile
(
Object
mobile
)
{
public
void
setMobile
(
Object
mobile
)
{
this
.
mobile
=
mobile
;
this
.
mobile
=
mobile
;
...
...
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/ListPage.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
model
.
respmodel
;
import
java.util.List
;
public
class
ListPage
<
T
>
{
int
totalCount
;
int
totalPageCount
;
int
curPageIndex
;
int
pageSize
;
List
<
T
>
listData
;
public
ListPage
()
{
}
public
ListPage
(
List
<
T
>
list
,
Integer
pageSize
,
Integer
pageIndex
,
int
cost
)
{
totalCount
=
list
.
size
();
this
.
pageSize
=
pageSize
==
null
?
totalCount
:
pageSize
;
curPageIndex
=
pageIndex
==
null
?
1
:
pageIndex
;
totalPageCount
=
(
int
)
Math
.
ceil
((
double
)
totalCount
/
this
.
pageSize
);
int
startIndex
=
this
.
pageSize
*
(
curPageIndex
-
1
)
-
cost
;
int
endIndex
=
this
.
pageSize
*
curPageIndex
+
cost
;
listData
=
list
.
subList
(
startIndex
>
totalCount
?
totalCount
:
startIndex
<
0
?
0
:
startIndex
,
endIndex
<
totalCount
?
endIndex
:
totalCount
);
}
public
ListPage
(
List
<
T
>
list
,
Integer
pageSize
,
Integer
pageIndex
)
{
this
(
list
,
pageSize
,
pageIndex
,
1
);
}
public
int
getTotalCount
()
{
return
totalCount
;
}
public
void
setTotalCount
(
int
totalCount
)
{
this
.
totalCount
=
totalCount
;
}
public
int
getTotalPageCount
()
{
return
totalPageCount
;
}
public
void
setTotalPageCount
(
int
totalPageCount
)
{
this
.
totalPageCount
=
totalPageCount
;
}
public
int
getCurPageIndex
()
{
return
curPageIndex
;
}
public
void
setCurPageIndex
(
int
curPageIndex
)
{
this
.
curPageIndex
=
curPageIndex
;
}
public
int
getPageSize
()
{
return
pageSize
;
}
public
void
setPageSize
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
public
List
<
T
>
getListData
()
{
return
listData
;
}
public
void
setListData
(
List
<
T
>
listData
)
{
this
.
listData
=
listData
;
}
}
bsoft-api/src/main/java/com/bsoft/api/service/DicDimService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.DicDim
;
import
java.util.List
;
public
interface
DicDimService
extends
ServiceBase
<
DicDim
>
{
}
bsoft-api/src/main/java/com/bsoft/api/service/DicOrgService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.DicOrg
;
public
interface
DicOrgService
extends
ServiceBase
<
DicOrg
>
{
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/DicDimServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.DicDimMapper
;
import
com.bsoft.api.model.DicDim
;
import
com.bsoft.api.service.DicDimService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
DicDimServiceImpl
implements
DicDimService
{
@Resource
private
DicDimMapper
dicDimMapper
;
@Override
public
int
add
(
DicDim
dicDim
)
{
return
dicDimMapper
.
insert
(
dicDim
);
}
@Override
public
List
<
DicDim
>
findAll
()
{
return
dicDimMapper
.
selectAll
();
}
@Override
public
DicDim
find
(
int
id
)
{
return
dicDimMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
dicDimMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
DicDim
dicDim
)
{
return
dicDimMapper
.
updateByPrimaryKey
(
dicDim
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysMenuServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.SysMenuMapper
;
import
com.bsoft.api.model.SysMenu
;
import
com.bsoft.api.service.SysMenuService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
SysMenuServiceImpl
implements
SysMenuService
{
@Resource
private
SysMenuMapper
sysMenuMapper
;
@Override
public
int
add
(
SysMenu
sysMenu
)
{
return
sysMenuMapper
.
insert
(
sysMenu
);
}
@Override
public
List
<
SysMenu
>
findAll
()
{
return
sysMenuMapper
.
selectAll
();
}
@Override
public
SysMenu
find
(
int
id
)
{
return
sysMenuMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
sysMenuMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
SysMenu
sysMenu
)
{
return
sysMenuMapper
.
updateByPrimaryKey
(
sysMenu
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleMenuRsServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.SysRoleMenuRsMapper
;
import
com.bsoft.api.model.SysRoleMenuRs
;
import
com.bsoft.api.service.SysRoleMenuRsService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
SysRoleMenuRsServiceImpl
implements
SysRoleMenuRsService
{
@Resource
private
SysRoleMenuRsMapper
sysRoleMenuRsMapper
;
@Override
public
int
add
(
SysRoleMenuRs
sysRoleMenuRs
)
{
return
sysRoleMenuRsMapper
.
insert
(
sysRoleMenuRs
);
}
@Override
public
List
<
SysRoleMenuRs
>
findAll
()
{
return
sysRoleMenuRsMapper
.
selectAll
();
}
@Override
public
SysRoleMenuRs
find
(
int
id
)
{
return
sysRoleMenuRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
sysRoleMenuRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
SysRoleMenuRs
sysRoleMenuRs
)
{
return
sysRoleMenuRsMapper
.
updateByPrimaryKey
(
sysRoleMenuRs
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.SysRoleMapper
;
import
com.bsoft.api.model.DicOrg
;
import
com.bsoft.api.model.SysRole
;
import
com.bsoft.api.service.SysRoleService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
SysRoleServiceImpl
implements
SysRoleService
{
@Resource
private
SysRoleMapper
sysRoleMapper
;
@Override
public
int
add
(
SysRole
sysRole
)
{
return
sysRoleMapper
.
insert
(
sysRole
);
}
@Override
public
List
<
SysRole
>
findAll
()
{
return
sysRoleMapper
.
selectAll
();
}
@Override
public
SysRole
find
(
int
id
)
{
return
sysRoleMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
sysRoleMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
SysRole
sysRole
)
{
return
sysRoleMapper
.
updateByPrimaryKey
(
sysRole
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserMenuRsServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.SysUserMenuRsMapper
;
import
com.bsoft.api.model.SysUserMenuRs
;
import
com.bsoft.api.service.SysUserMenuRsService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
SysUserMenuRsServiceImpl
implements
SysUserMenuRsService
{
@Resource
private
SysUserMenuRsMapper
sysUserMenuRsMapper
;
@Override
public
int
add
(
SysUserMenuRs
sysUserMenuRs
)
{
return
sysUserMenuRsMapper
.
insert
(
sysUserMenuRs
);
}
@Override
public
List
<
SysUserMenuRs
>
findAll
()
{
return
sysUserMenuRsMapper
.
selectAll
();
}
@Override
public
SysUserMenuRs
find
(
int
id
)
{
return
sysUserMenuRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
sysUserMenuRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
SysUserMenuRs
sysUserMenuRs
)
{
return
sysUserMenuRsMapper
.
updateByPrimaryKey
(
sysUserMenuRs
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserOrgRsServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.SysUserOrgRsMapper
;
import
com.bsoft.api.model.SysUserOrgRs
;
import
com.bsoft.api.service.SysUserOrgRsService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
SysUserOrgRsServiceImpl
implements
SysUserOrgRsService
{
@Resource
private
SysUserOrgRsMapper
sysUserOrgRsMapper
;
@Override
public
int
add
(
SysUserOrgRs
sysUserOrgRs
)
{
return
sysUserOrgRsMapper
.
insert
(
sysUserOrgRs
);
}
@Override
public
List
<
SysUserOrgRs
>
findAll
()
{
return
sysUserOrgRsMapper
.
selectAll
();
}
@Override
public
SysUserOrgRs
find
(
int
id
)
{
return
sysUserOrgRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
sysUserOrgRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
SysUserOrgRs
sysUserRoleRs
)
{
return
sysUserOrgRsMapper
.
updateByPrimaryKey
(
sysUserRoleRs
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserRoleServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.SysUserRoleRsMapper
;
import
com.bsoft.api.model.SysMenu
;
import
com.bsoft.api.model.SysUserRoleRs
;
import
com.bsoft.api.service.SysUserRoleRsService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
SysUserRoleServiceImpl
implements
SysUserRoleRsService
{
@Resource
private
SysUserRoleRsMapper
sysUserRoleRsMapper
;
@Override
public
int
add
(
SysUserRoleRs
sysUserRoleRs
)
{
return
sysUserRoleRsMapper
.
insert
(
sysUserRoleRs
);
}
@Override
public
List
<
SysUserRoleRs
>
findAll
()
{
return
sysUserRoleRsMapper
.
selectAll
();
}
@Override
public
SysUserRoleRs
find
(
int
id
)
{
return
sysUserRoleRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
sysUserRoleRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
SysUserRoleRs
sysUserRoleRs
)
{
return
sysUserRoleRsMapper
.
updateByPrimaryKey
(
sysUserRoleRs
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/UserServiceImpl.java
View file @
10de1d88
...
@@ -15,6 +15,7 @@ public class UserServiceImpl implements UserService {
...
@@ -15,6 +15,7 @@ public class UserServiceImpl implements UserService {
@Override
@Override
public
SysUser
findByLoginName
(
String
loginName
)
{
public
SysUser
findByLoginName
(
String
loginName
)
{
return
sysUserMapper
.
selectByCode
(
loginName
);
// return sysUserMapper.selectByCode(loginName);
return
null
;
}
}
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/dicOrgServiceImpl.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.DicOrgMapper
;
import
com.bsoft.api.model.DicOrg
;
import
com.bsoft.api.service.DicOrgService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Service
public
class
dicOrgServiceImpl
implements
DicOrgService
{
@Resource
private
DicOrgMapper
dicOrgMapper
;
@Override
public
int
add
(
DicOrg
dicOrg
)
{
return
dicOrgMapper
.
insert
(
dicOrg
);
}
@Override
public
List
<
DicOrg
>
findAll
()
{
return
dicOrgMapper
.
selectAll
();
}
@Override
public
DicOrg
find
(
int
id
)
{
return
dicOrgMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
delete
(
int
id
)
{
return
dicOrgMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
));
}
@Override
public
int
logicDelete
(
int
id
)
{
return
0
;
}
@Override
public
int
update
(
DicOrg
dicOrg
)
{
return
dicOrgMapper
.
updateByPrimaryKey
(
dicOrg
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/ServiceBase.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
java.util.List
;
public
interface
ServiceBase
<
T
>
{
/**
* 新增
* @param t
* @return
*/
int
add
(
T
t
)
;
/**
* 查询所有
* @return
*/
List
<
T
>
findAll
();
/**
* 根据id查询
* @param id
* @return
*/
T
find
(
int
id
);
/**
* 物理删除
* @param id
* @return
*/
int
delete
(
int
id
);
/**
* 逻辑删除
* @param id
* @return
*/
int
logicDelete
(
int
id
);
/**
* 更新
* @param t
* @return
*/
int
update
(
T
t
);
}
bsoft-api/src/main/java/com/bsoft/api/service/SysMenuService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysMenu
;
public
interface
SysMenuService
extends
ServiceBase
<
SysMenu
>
{
}
bsoft-api/src/main/java/com/bsoft/api/service/SysRoleMenuRsService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysRoleMenuRs
;
public
interface
SysRoleMenuRsService
extends
ServiceBase
<
SysRoleMenuRs
>
{
}
bsoft-api/src/main/java/com/bsoft/api/service/SysRoleService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysRole
;
public
interface
SysRoleService
extends
ServiceBase
<
SysRole
>
{
}
bsoft-api/src/main/java/com/bsoft/api/service/SysUserMenuRsService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysUserMenuRs
;
public
interface
SysUserMenuRsService
extends
ServiceBase
<
SysUserMenuRs
>
{
}
bsoft-api/src/main/java/com/bsoft/api/service/SysUserOrgRsService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysUserOrgRs
;
public
interface
SysUserOrgRsService
extends
ServiceBase
<
SysUserOrgRs
>
{
}
bsoft-api/src/main/java/com/bsoft/api/service/SysUserRoleRsService.java
0 → 100644
View file @
10de1d88
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysUserRoleRs
;
public
interface
SysUserRoleRsService
extends
ServiceBase
<
SysUserRoleRs
>
{
}
bsoft-api/src/main/resources/mapper/SysUserMapper.xml
View file @
10de1d88
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 1
1:03:4
3 CST 2019.
This element was generated on Mon Oct 21 1
5:22:3
3 CST 2019.
-->
-->
<id
column=
"ID"
jdbcType=
"DECIMAL"
property=
"id"
/>
<id
column=
"ID"
jdbcType=
"DECIMAL"
property=
"id"
/>
<result
column=
"CREATE_DATE"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"CREATE_DATE"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 1
1:03:4
3 CST 2019.
This element was generated on Mon Oct 21 1
5:22:3
3 CST 2019.
-->
-->
delete from LL.SYS_USER
delete from LL.SYS_USER
where ID = #{id,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 1
1:03:4
3 CST 2019.
This element was generated on Mon Oct 21 1
5:22:3
3 CST 2019.
-->
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.math.BigDecimal"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.math.BigDecimal"
>
select SEQ_SYS_USER_ID.nextval from dual
select SEQ_SYS_USER_ID.nextval from dual
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 1
1:03:4
3 CST 2019.
This element was generated on Mon Oct 21 1
5:22:3
3 CST 2019.
-->
-->
update LL.SYS_USER
update LL.SYS_USER
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 1
1:03:4
3 CST 2019.
This element was generated on Mon Oct 21 1
5:22:3
3 CST 2019.
-->
-->
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE
SEX, MOBILE
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 1
1:03:4
3 CST 2019.
This element was generated on Mon Oct 21 1
5:22:3
3 CST 2019.
-->
-->
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE
SEX, MOBILE
...
...
bsoft-api/src/test/resources/generatorConfig.xml
View file @
10de1d88
...
@@ -41,6 +41,54 @@
...
@@ -41,6 +41,54 @@
<!-- 主键生成方式 -->
<!-- 主键生成方式 -->
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_USER_ID.nextval from dual"
identity=
"true"
/>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_USER_ID.nextval from dual"
identity=
"true"
/>
</table>
</table>
<table
tableName=
"DIC_DIM"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_DIC_DIM_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"DIC_IND"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_DIC_IND_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"DIC_ORG"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_DIC_ORG_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SER_ BLOCK_IND_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SER_ BLOCK_IND_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SER_BLOCK"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SER_BLOCK_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SER_PAGE"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SER_PAGE_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SER_PAGE_BLOCK_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SER_PAGE_BLOCK_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SER_PAGE_DIM_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SER_PAGE_DIM_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_MENU"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_MENU_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_ORG"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_ORG_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_PROJECT"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_PROJECT_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_ROLE"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_ROLE_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_ROLE_MENU_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_ROLE_MENU_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_USER_MENU_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_USER_MENU_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_USER_ORG_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_USER_ORG_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SYS_USER_ROLE_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SYS_USER_ROLE_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
</context>
</context>
<!--<context id="sqlserver" targetRuntime="MyBatis3Simple" defaultModelType="flat">-->
<!--<context id="sqlserver" targetRuntime="MyBatis3Simple" defaultModelType="flat">-->
<!--<property enName="beginningDelimiter" value="["/>-->
<!--<property enName="beginningDelimiter" value="["/>-->
...
...
Write
Preview
Markdown
is supported
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