Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
c93ef261
Commit
c93ef261
authored
Dec 21, 2021
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改根据登录人及类型获取公司部门树
parent
d8c20f15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+1
-1
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+3
-2
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+0
-1
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+2
-2
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+0
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
c93ef261
...
@@ -98,7 +98,7 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
...
@@ -98,7 +98,7 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
OrgUsr
queryByUserId
(
@Param
(
"userId"
)
Long
userId
);
OrgUsr
queryByUserId
(
@Param
(
"userId"
)
Long
userId
);
List
<
OrgUsr
>
companyTreeByUserAndType
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"type"
)
String
type
);
List
<
OrgUsr
>
companyTreeByUserAndType
(
Map
<
String
,
Object
>
param
);
OrgUsr
queryBySequenceNbr
(
@Param
(
"parentId"
)
String
parentId
);
OrgUsr
queryBySequenceNbr
(
@Param
(
"parentId"
)
String
parentId
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IOrgUsrService.java
View file @
c93ef261
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.common.api.service;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.common.api.service;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
...
@@ -204,11 +205,11 @@ public interface IOrgUsrService {
...
@@ -204,11 +205,11 @@ public interface IOrgUsrService {
/**
/**
* 根据登录人及类型获取公司部门树
* 根据登录人及类型获取公司部门树
* @param
user
* @param
reginParams 公司及部门信息
* @param type 默认查询公司及部门,公司:COMPANY,部门:DEPARTMENT
* @param type 默认查询公司及部门,公司:COMPANY,部门:DEPARTMENT
* @return
* @return
*/
*/
List
<
OrgMenuDto
>
companyTreeByUserAndType
(
AgencyUserModel
user
,
String
type
);
List
<
OrgMenuDto
>
companyTreeByUserAndType
(
ReginParams
reginParams
,
String
type
);
/**
/**
* 根据登陆人获取公司列表(关联重点部位)
* 根据登陆人获取公司列表(关联重点部位)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
c93ef261
...
@@ -758,7 +758,6 @@ LEFT JOIN (
...
@@ -758,7 +758,6 @@ LEFT JOIN (
FROM
FROM
cb_org_usr usr
cb_org_usr usr
<where>
<where>
usr.biz_org_code LIKE CONCAT( ( SELECT SUBSTRING( biz_org_code, 1, LENGTH( biz_org_code ) - 6 ) FROM cb_org_usr WHERE amos_org_id = #{userId} ), '%' )
<choose>
<choose>
<when
test=
"type != null and type != ''"
>
<when
test=
"type != null and type != ''"
>
AND usr.biz_org_type = #{type}
AND usr.biz_org_type = #{type}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
c93ef261
...
@@ -380,8 +380,8 @@ public class OrgUsrController extends BaseController {
...
@@ -380,8 +380,8 @@ public class OrgUsrController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据登录人及类型获取公司部门树"
,
notes
=
"根据登录人及类型获取公司部门树"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据登录人及类型获取公司部门树"
,
notes
=
"根据登录人及类型获取公司部门树"
)
public
ResponseModel
<
List
<
OrgMenuDto
>>
companyTreeByUserAndType
(
@RequestParam
(
required
=
false
)
String
type
)
throws
Exception
{
public
ResponseModel
<
List
<
OrgMenuDto
>>
companyTreeByUserAndType
(
@RequestParam
(
required
=
false
)
String
type
)
throws
Exception
{
// 获取登陆人角色
// 获取登陆人角色
AgencyUserModel
user
=
getUser
Info
();
ReginParams
reginParams
=
getSelectedOrg
Info
();
List
<
OrgMenuDto
>
menus
=
iOrgUsrService
.
companyTreeByUserAndType
(
user
,
type
);
List
<
OrgMenuDto
>
menus
=
iOrgUsrService
.
companyTreeByUserAndType
(
reginParams
,
type
);
return
ResponseHelper
.
buildResponse
(
menus
);
return
ResponseHelper
.
buildResponse
(
menus
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
c93ef261
This diff is collapsed.
Click to expand it.
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