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
90b112f1
Commit
90b112f1
authored
Oct 23, 2019
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加菜单接口
parent
3f65adff
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
405 additions
and
191 deletions
+405
-191
bsoft-api/src/main/java/com/bsoft/api/controller/DicDimController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/DicIndController.java
+63
-0
bsoft-api/src/main/java/com/bsoft/api/controller/DicOrgController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/SysMenuController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/SysRoleController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/SysRoleMenuRsController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserMenuRsController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserOrgController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/SysUserRoleRsController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/UserController.java
+33
-0
bsoft-api/src/main/java/com/bsoft/api/mapper/DicDimMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/DicIndMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/DicOrgMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SerBlockMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SerPageBlockRsMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SerPageDimRsMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SerPageMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysMenuMapper.java
+12
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysOrgMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysProjectMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysRoleMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysRoleMenuRsMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserMenuRsMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserOrgRsMapper.java
+8
-8
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserRoleRsMapper.java
+11
-8
bsoft-api/src/main/java/com/bsoft/api/model/SysUser.java
+0
-0
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/SysMenuList.java
+20
-0
bsoft-api/src/main/java/com/bsoft/api/service/DicIndService.java
+6
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/DicDimServiceImpl.java
+6
-6
bsoft-api/src/main/java/com/bsoft/api/service/Impl/DicIndServiceImpl.java
+45
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/DicOrgServiceImpl.java
+6
-6
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysMenuServiceImpl.java
+31
-5
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleMenuRsServiceImpl.java
+5
-5
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleServiceImpl.java
+5
-6
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserMenuRsServiceImpl.java
+5
-5
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserOrgRsServiceImpl.java
+5
-5
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserRoleServiceImpl.java
+13
-6
bsoft-api/src/main/java/com/bsoft/api/service/ServiceBase.java
+3
-3
bsoft-api/src/main/java/com/bsoft/api/service/SysMenuService.java
+4
-0
bsoft-api/src/main/java/com/bsoft/api/service/SysUserRoleRsService.java
+4
-0
No files found.
bsoft-api/src/main/java/com/bsoft/api/controller/DicDimController.java
View file @
90b112f1
...
...
@@ -37,7 +37,7 @@ public class DicDimController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
dicDimService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -55,7 +55,7 @@ public class DicDimController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
id
){
dicDimService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
bsoft-api/src/main/java/com/bsoft/api/controller/DicIndController.java
0 → 100644
View file @
90b112f1
package
com
.
bsoft
.
api
.
controller
;
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.DicInd
;
import
com.bsoft.api.model.respmodel.ListPage
;
import
com.bsoft.api.service.DicIndService
;
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
(
"ind"
)
@RestController
public
class
DicIndController
{
@Autowired
private
DicIndService
dicIndService
;
@GetMapping
(
"list"
)
public
Object
list
(){
List
<
DicInd
>
list
=
dicIndService
.
findAll
();
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
list
);
}
@GetMapping
(
"listpage"
)
public
Object
listpage
(
Integer
pageSize
,
Integer
pageIndex
){
List
<
DicInd
>
list
=
dicIndService
.
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
(
Long
id
){
dicIndService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"add"
)
public
Object
add
(
DicInd
dicInd
){
dicIndService
.
add
(
dicInd
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"update"
)
public
Object
update
(
DicInd
dicInd
){
dicIndService
.
update
(
dicInd
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Long
id
){
dicIndService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/DicOrgController.java
View file @
90b112f1
...
...
@@ -37,7 +37,7 @@ public class DicOrgController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
dicOrgService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -55,7 +55,7 @@ public class DicOrgController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
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
View file @
90b112f1
...
...
@@ -37,7 +37,7 @@ public class SysMenuController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
sysMenuService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -55,7 +55,7 @@ public class SysMenuController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
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
View file @
90b112f1
...
...
@@ -37,7 +37,7 @@ public class SysRoleController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
sysRoleService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -55,7 +55,7 @@ public class SysRoleController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
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
View file @
90b112f1
...
...
@@ -38,7 +38,7 @@ public class SysRoleMenuRsController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
sysRoleMenuRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -56,7 +56,7 @@ public class SysRoleMenuRsController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
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
View file @
90b112f1
...
...
@@ -38,7 +38,7 @@ public class SysUserMenuRsController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
sysUserMenuRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -56,7 +56,7 @@ public class SysUserMenuRsController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
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
View file @
90b112f1
...
...
@@ -37,7 +37,7 @@ public class SysUserOrgController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
sysUserOrgRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -55,7 +55,7 @@ public class SysUserOrgController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
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
View file @
90b112f1
...
...
@@ -37,7 +37,7 @@ public class SysUserRoleRsController {
}
@GetMapping
(
"info"
)
public
Object
info
(
Integer
id
){
public
Object
info
(
Long
id
){
sysUserRoleRsService
.
find
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
@@ -55,7 +55,7 @@ public class SysUserRoleRsController {
}
@PostMapping
(
"delete"
)
public
Object
delete
(
Integer
id
){
public
Object
delete
(
Long
id
){
sysUserRoleRsService
.
delete
(
id
);
return
new
RequestResult
(
RequestResultType
.
SUCCESS
.
getValue
(),
RequestResultType
.
SUCCESS
.
getDesc
(),
null
);
}
...
...
bsoft-api/src/main/java/com/bsoft/api/controller/UserController.java
View file @
90b112f1
...
...
@@ -2,10 +2,15 @@ package com.bsoft.api.controller;
import
com.bsoft.api.common.Result
;
import
com.bsoft.api.common.annotations.CurrentUser
;
import
com.bsoft.api.common.annotations.Token
;
import
com.bsoft.api.model.SysUser
;
import
com.bsoft.api.service.SysMenuService
;
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.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
springfox.documentation.annotations.ApiIgnore
;
...
...
@@ -14,9 +19,37 @@ import springfox.documentation.annotations.ApiIgnore;
@RequestMapping
(
"/user"
)
@RestController
public
class
UserController
{
@Autowired
private
SysUserRoleRsService
sysUserRoleRsService
;
@Autowired
private
SysMenuService
sysMenuService
;
@GetMapping
()
public
Object
user
(
@CurrentUser@ApiIgnore
SysUser
user
){
return
Result
.
success
(
user
);
}
/**
* 根据用户id查询用户角色
* @param userId 用户id
* @return
*/
@GetMapping
(
"getRole"
)
@Token
public
Object
getRoleListByUser
(
@ApiIgnore
Long
userId
)
throws
Exception
{
return
Result
.
success
(
sysUserRoleRsService
.
getRoleListByUser
(
userId
));
}
/**
* 根据用户id查询用户角色
* @param userId 用户id
* @return
*/
@GetMapping
(
"getMenu"
)
// @Token
public
Object
getMenuByUser
(
Long
userId
)
throws
Exception
{
return
Result
.
success
(
sysMenuService
.
getMenu
(
userId
));
}
}
bsoft-api/src/main/java/com/bsoft/api/mapper/DicDimMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.DicDim
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
DicDimMapper
{
...
...
@@ -9,15 +8,15 @@ public interface DicDimMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_DIM
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_DIM
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
DicDim
record
);
...
...
@@ -25,15 +24,15 @@ public interface DicDimMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_DIM
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
DicDim
selectByPrimaryKey
(
BigDecimal
id
);
DicDim
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_DIM
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
DicDim
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface DicDimMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_DIM
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
DicDim
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/DicIndMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.DicInd
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
DicIndMapper
{
...
...
@@ -9,15 +8,15 @@ public interface DicIndMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_IND
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_IND
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
DicInd
record
);
...
...
@@ -25,15 +24,15 @@ public interface DicIndMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_IND
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
DicInd
selectByPrimaryKey
(
BigDecimal
id
);
DicInd
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_IND
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
DicInd
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface DicIndMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_IND
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
DicInd
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/DicOrgMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.DicOrg
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
DicOrgMapper
{
...
...
@@ -9,15 +8,15 @@ public interface DicOrgMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
DicOrg
record
);
...
...
@@ -25,15 +24,15 @@ public interface DicOrgMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
DicOrg
selectByPrimaryKey
(
BigDecimal
id
);
DicOrg
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
DicOrg
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface DicOrgMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.DIC_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
DicOrg
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SerBlockMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SerBlock
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SerBlockMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SerBlockMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_BLOCK
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_BLOCK
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SerBlock
record
);
...
...
@@ -25,15 +24,15 @@ public interface SerBlockMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_BLOCK
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SerBlock
selectByPrimaryKey
(
BigDecimal
id
);
SerBlock
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_BLOCK
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SerBlock
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SerBlockMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_BLOCK
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SerBlock
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SerPageBlockRsMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SerPageBlockRs
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SerPageBlockRsMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SerPageBlockRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_BLOCK_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_BLOCK_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SerPageBlockRs
record
);
...
...
@@ -25,15 +24,15 @@ public interface SerPageBlockRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_BLOCK_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SerPageBlockRs
selectByPrimaryKey
(
BigDecimal
id
);
SerPageBlockRs
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_BLOCK_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SerPageBlockRs
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SerPageBlockRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_BLOCK_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SerPageBlockRs
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SerPageDimRsMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SerPageDimRs
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SerPageDimRsMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SerPageDimRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_DIM_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_DIM_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SerPageDimRs
record
);
...
...
@@ -25,15 +24,15 @@ public interface SerPageDimRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_DIM_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SerPageDimRs
selectByPrimaryKey
(
BigDecimal
id
);
SerPageDimRs
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_DIM_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SerPageDimRs
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SerPageDimRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE_DIM_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SerPageDimRs
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SerPageMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SerPage
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SerPageMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SerPageMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SerPage
record
);
...
...
@@ -25,15 +24,15 @@ public interface SerPageMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SerPage
selectByPrimaryKey
(
BigDecimal
id
);
SerPage
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SerPage
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SerPageMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SER_PAGE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SerPage
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysMenuMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysMenu
;
import
java.math.BigDecimal
;
import
com.bsoft.api.model.respmodel.SysMenuList
;
import
java.util.List
;
public
interface
SysMenuMapper
{
List
<
SysMenuList
>
selectMenuByUser
(
Long
userId
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_MENU
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_MENU
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysMenu
record
);
...
...
@@ -25,15 +28,15 @@ public interface SysMenuMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_MENU
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysMenu
selectByPrimaryKey
(
BigDecimal
id
);
SysMenu
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_MENU
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysMenu
>
selectAll
();
...
...
@@ -41,7 +44,7 @@ public interface SysMenuMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_MENU
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysMenu
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysOrgMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysOrg
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysOrgMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SysOrgMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 10:02:26
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 10:02:26
CST 2019
*/
int
insert
(
SysOrg
record
);
...
...
@@ -25,15 +24,15 @@ public interface SysOrgMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 10:02:26
CST 2019
*/
SysOrg
selectByPrimaryKey
(
BigDecimal
id
);
SysOrg
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 10:02:26
CST 2019
*/
List
<
SysOrg
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SysOrgMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ORG
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 10:02:26
CST 2019
*/
int
updateByPrimaryKey
(
SysOrg
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysProjectMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysProject
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysProjectMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SysProjectMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_PROJECT
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_PROJECT
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysProject
record
);
...
...
@@ -25,15 +24,15 @@ public interface SysProjectMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_PROJECT
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysProject
selectByPrimaryKey
(
BigDecimal
id
);
SysProject
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_PROJECT
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysProject
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SysProjectMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_PROJECT
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysProject
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysRoleMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysRole
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysRoleMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SysRoleMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysRole
record
);
...
...
@@ -25,15 +24,15 @@ public interface SysRoleMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysRole
selectByPrimaryKey
(
BigDecimal
id
);
SysRole
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysRole
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SysRoleMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysRole
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysRoleMenuRsMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysRoleMenuRs
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysRoleMenuRsMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SysRoleMenuRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysRoleMenuRs
record
);
...
...
@@ -25,15 +24,15 @@ public interface SysRoleMenuRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysRoleMenuRs
selectByPrimaryKey
(
BigDecimal
id
);
SysRoleMenuRs
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysRoleMenuRs
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SysRoleMenuRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_ROLE_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysRoleMenuRs
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysUser
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysUserMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysUser
record
);
...
...
@@ -25,15 +24,15 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysUser
selectByPrimaryKey
(
BigDecimal
id
);
SysUser
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysUser
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysUser
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserMenuRsMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysUserMenuRs
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysUserMenuRsMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SysUserMenuRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysUserMenuRs
record
);
...
...
@@ -25,15 +24,15 @@ public interface SysUserMenuRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysUserMenuRs
selectByPrimaryKey
(
BigDecimal
id
);
SysUserMenuRs
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysUserMenuRs
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SysUserMenuRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_MENU_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysUserMenuRs
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserOrgRsMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysUserOrgRs
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysUserOrgRsMapper
{
...
...
@@ -9,15 +8,15 @@ public interface SysUserOrgRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ORG_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ORG_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysUserOrgRs
record
);
...
...
@@ -25,15 +24,15 @@ public interface SysUserOrgRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ORG_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysUserOrgRs
selectByPrimaryKey
(
BigDecimal
id
);
SysUserOrgRs
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ORG_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysUserOrgRs
>
selectAll
();
...
...
@@ -41,7 +40,7 @@ public interface SysUserOrgRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ORG_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysUserOrgRs
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/mapper/SysUserRoleRsMapper.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SysRole
;
import
com.bsoft.api.model.SysUserRoleRs
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
interface
SysUserRoleRsMapper
{
List
<
SysRole
>
selectRoleByUser
(
Long
userId
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ROLE_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
deleteByPrimaryKey
(
BigDecimal
id
);
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ROLE_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
insert
(
SysUserRoleRs
record
);
...
...
@@ -25,15 +27,15 @@ public interface SysUserRoleRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ROLE_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
SysUserRoleRs
selectByPrimaryKey
(
BigDecimal
id
);
SysUserRoleRs
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ROLE_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
List
<
SysUserRoleRs
>
selectAll
();
...
...
@@ -41,7 +43,7 @@ public interface SysUserRoleRsMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER_ROLE_RS
*
* @mbggenerated
Mon Oct 21 18:59:44
CST 2019
* @mbggenerated
Tue Oct 22 14:44:12
CST 2019
*/
int
updateByPrimaryKey
(
SysUserRoleRs
record
);
}
\ No newline at end of file
bsoft-api/src/main/java/com/bsoft/api/model/SysUser.java
View file @
90b112f1
This diff is collapsed.
Click to expand it.
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/SysMenuList.java
0 → 100644
View file @
90b112f1
package
com
.
bsoft
.
api
.
model
.
respmodel
;
import
com.bsoft.api.model.SysMenu
;
import
java.util.List
;
public
class
SysMenuList
extends
SysMenu
{
private
List
<
SysMenuList
>
sysMenuList
;
public
void
setSysMenuList
(
List
<
SysMenuList
>
sysMenuList
)
{
this
.
sysMenuList
=
sysMenuList
;
}
public
List
<
SysMenuList
>
getSysMenuList
()
{
return
this
.
sysMenuList
;
}
}
bsoft-api/src/main/java/com/bsoft/api/service/DicIndService.java
0 → 100644
View file @
90b112f1
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.DicInd
;
public
interface
DicIndService
extends
ServiceBase
<
DicInd
>{
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/DicDimServiceImpl.java
View file @
90b112f1
...
...
@@ -3,7 +3,6 @@ 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
;
...
...
@@ -12,6 +11,7 @@ import java.util.List;
@Service
public
class
DicDimServiceImpl
implements
DicDimService
{
@Resource
private
DicDimMapper
dicDimMapper
;
...
...
@@ -26,17 +26,17 @@ public class DicDimServiceImpl implements DicDimService {
}
@Override
public
DicDim
find
(
int
id
)
{
return
dicDimMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
DicDim
find
(
Long
id
)
{
return
dicDimMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
dicDimMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
dicDimMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/Impl/DicIndServiceImpl.java
0 → 100644
View file @
90b112f1
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.DicIndMapper
;
import
com.bsoft.api.model.DicInd
;
import
com.bsoft.api.service.DicIndService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
@Service
public
class
DicIndServiceImpl
implements
DicIndService
{
@Resource
private
DicIndMapper
dicIndMapper
;
@Override
public
int
add
(
DicInd
dicInd
)
{
return
dicIndMapper
.
insert
(
dicInd
);
}
@Override
public
List
<
DicInd
>
findAll
()
{
return
dicIndMapper
.
selectAll
();
}
@Override
public
DicInd
find
(
Long
id
)
{
return
dicIndMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
Long
id
)
{
return
dicIndMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
@Override
public
int
update
(
DicInd
dicInd
)
{
return
dicIndMapper
.
updateByPrimaryKey
(
dicInd
);
}
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/
d
icOrgServiceImpl.java
→
bsoft-api/src/main/java/com/bsoft/api/service/Impl/
D
icOrgServiceImpl.java
View file @
90b112f1
...
...
@@ -9,7 +9,7 @@ import java.math.BigDecimal;
import
java.util.List
;
@Service
public
class
d
icOrgServiceImpl
implements
DicOrgService
{
public
class
D
icOrgServiceImpl
implements
DicOrgService
{
@Resource
private
DicOrgMapper
dicOrgMapper
;
...
...
@@ -24,17 +24,17 @@ public class dicOrgServiceImpl implements DicOrgService {
}
@Override
public
DicOrg
find
(
int
id
)
{
return
dicOrgMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
DicOrg
find
(
Long
id
)
{
return
dicOrgMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
dicOrgMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
dicOrgMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysMenuServiceImpl.java
View file @
90b112f1
...
...
@@ -2,19 +2,45 @@ package com.bsoft.api.service.Impl;
import
com.bsoft.api.mapper.SysMenuMapper
;
import
com.bsoft.api.model.SysMenu
;
import
com.bsoft.api.model.respmodel.SysMenuList
;
import
com.bsoft.api.service.SysMenuService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.awt.*
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
@Service
public
class
SysMenuServiceImpl
implements
SysMenuService
{
@Resource
private
SysMenuMapper
sysMenuMapper
;
@Override
public
List
<
SysMenuList
>
getMenu
(
Long
userId
)
throws
Exception
{
SysMenuList
sysMenuList
=
new
SysMenuList
();
SysMenu
sysMenu
=
new
SysMenu
();
List
<
SysMenuList
>
list
=
sysMenuMapper
.
selectMenuByUser
(
userId
);
List
<
SysMenuList
>
resultList
=
getLevelData
(
list
,
Long
.
valueOf
(
0
));
return
resultList
;
}
private
List
<
SysMenuList
>
getLevelData
(
List
<
SysMenuList
>
list
,
Long
parentcode
)
{
List
<
SysMenuList
>
resultList
=
new
ArrayList
<>();
for
(
SysMenuList
data
:
list
)
{
if
(
data
.
getParentId
()
==
parentcode
){
List
<
SysMenuList
>
childList
=
getLevelData
(
list
,
data
.
getId
());
data
.
setSysMenuList
(
childList
);
resultList
.
add
(
data
);
}
}
return
resultList
;
}
@Override
public
int
add
(
SysMenu
sysMenu
)
{
return
sysMenuMapper
.
insert
(
sysMenu
);
}
...
...
@@ -25,17 +51,17 @@ public class SysMenuServiceImpl implements SysMenuService {
}
@Override
public
SysMenu
find
(
int
id
)
{
return
sysMenuMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
SysMenu
find
(
Long
id
)
{
return
sysMenuMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
sysMenuMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
sysMenuMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleMenuRsServiceImpl.java
View file @
90b112f1
...
...
@@ -25,17 +25,17 @@ public class SysRoleMenuRsServiceImpl implements SysRoleMenuRsService {
}
@Override
public
SysRoleMenuRs
find
(
int
id
)
{
return
sysRoleMenuRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
SysRoleMenuRs
find
(
Long
id
)
{
return
sysRoleMenuRsMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
sysRoleMenuRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
sysRoleMenuRsMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysRoleServiceImpl.java
View file @
90b112f1
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
;
...
...
@@ -26,17 +25,17 @@ public class SysRoleServiceImpl implements SysRoleService {
}
@Override
public
SysRole
find
(
int
id
)
{
return
sysRoleMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
SysRole
find
(
Long
id
)
{
return
sysRoleMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
sysRoleMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
sysRoleMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserMenuRsServiceImpl.java
View file @
90b112f1
...
...
@@ -25,17 +25,17 @@ public class SysUserMenuRsServiceImpl implements SysUserMenuRsService {
}
@Override
public
SysUserMenuRs
find
(
int
id
)
{
return
sysUserMenuRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
SysUserMenuRs
find
(
Long
id
)
{
return
sysUserMenuRsMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
sysUserMenuRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
sysUserMenuRsMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserOrgRsServiceImpl.java
View file @
90b112f1
...
...
@@ -25,17 +25,17 @@ public class SysUserOrgRsServiceImpl implements SysUserOrgRsService {
}
@Override
public
SysUserOrgRs
find
(
int
id
)
{
return
sysUserOrgRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
SysUserOrgRs
find
(
Long
id
)
{
return
sysUserOrgRsMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
sysUserOrgRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
sysUserOrgRsMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SysUserRoleServiceImpl.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
service
.
Impl
;
import
com.bsoft.api.mapper.SysUserRoleRsMapper
;
import
com.bsoft.api.model.Sys
Menu
;
import
com.bsoft.api.model.Sys
Role
;
import
com.bsoft.api.model.SysUserRoleRs
;
import
com.bsoft.api.service.SysUserRoleRsService
;
import
org.springframework.stereotype.Service
;
...
...
@@ -12,9 +12,16 @@ import java.util.List;
@Service
public
class
SysUserRoleServiceImpl
implements
SysUserRoleRsService
{
@Resource
private
SysUserRoleRsMapper
sysUserRoleRsMapper
;
@Override
public
List
<
SysRole
>
getRoleListByUser
(
Long
userId
)
throws
Exception
{
return
sysUserRoleRsMapper
.
selectRoleByUser
(
userId
);
}
@Override
public
int
add
(
SysUserRoleRs
sysUserRoleRs
)
{
return
sysUserRoleRsMapper
.
insert
(
sysUserRoleRs
);
...
...
@@ -26,17 +33,17 @@ public class SysUserRoleServiceImpl implements SysUserRoleRsService {
}
@Override
public
SysUserRoleRs
find
(
int
id
)
{
return
sysUserRoleRsMapper
.
selectByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
SysUserRoleRs
find
(
Long
id
)
{
return
sysUserRoleRsMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
delete
(
int
id
)
{
return
sysUserRoleRsMapper
.
deleteByPrimaryKey
(
BigDecimal
.
valueOf
(
id
)
);
public
int
delete
(
Long
id
)
{
return
sysUserRoleRsMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
logicDelete
(
int
id
)
{
public
int
logicDelete
(
Long
id
)
{
return
0
;
}
...
...
bsoft-api/src/main/java/com/bsoft/api/service/ServiceBase.java
View file @
90b112f1
...
...
@@ -21,21 +21,21 @@ public interface ServiceBase<T> {
* @param id
* @return
*/
T
find
(
int
id
);
T
find
(
Long
id
);
/**
* 物理删除
* @param id
* @return
*/
int
delete
(
int
id
);
int
delete
(
Long
id
);
/**
* 逻辑删除
* @param id
* @return
*/
int
logicDelete
(
int
id
);
int
logicDelete
(
Long
id
);
/**
* 更新
...
...
bsoft-api/src/main/java/com/bsoft/api/service/SysMenuService.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysMenu
;
import
com.bsoft.api.model.respmodel.SysMenuList
;
import
java.util.List
;
public
interface
SysMenuService
extends
ServiceBase
<
SysMenu
>
{
List
<
SysMenuList
>
getMenu
(
Long
userId
)
throws
Exception
;
}
bsoft-api/src/main/java/com/bsoft/api/service/SysUserRoleRsService.java
View file @
90b112f1
package
com
.
bsoft
.
api
.
service
;
import
com.bsoft.api.model.SysRole
;
import
com.bsoft.api.model.SysUserRoleRs
;
import
java.util.List
;
public
interface
SysUserRoleRsService
extends
ServiceBase
<
SysUserRoleRs
>
{
List
<
SysRole
>
getRoleListByUser
(
Long
userId
)
throws
Exception
;
}
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