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
a512b1d9
Commit
a512b1d9
authored
Nov 06, 2022
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ProjectResourceController加了一个根据当前登录人获取登录人参与的项目列表
parent
e6e2a615
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
ProjectResourceController.java
.../module/ugp/biz/controller/ProjectResourceController.java
+12
-0
ProjectResourceServiceImpl.java
...dule/ugp/biz/service/impl/ProjectResourceServiceImpl.java
+1
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectResourceController.java
View file @
a512b1d9
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectMaterialDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.WelderEquipmentDto
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.ProjectResource
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.ProjectResourceMapper
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.MaterialServiceImpl
;
...
...
@@ -269,4 +270,15 @@ public class ProjectResourceController extends BaseController {
page
.
setCurrent
(
current
);
return
ResponseHelper
.
buildResponse
(
projectResourceServiceImpl
.
getResourceInfo
(
type
,
page
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectByUserId"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"根据当前登录人获取登录人参与的项目列表"
,
notes
=
"根据当前登录人获取登录人参与的项目列表"
)
public
ResponseModel
<
List
<
Project
>>
selectByUserId
(){
return
ResponseHelper
.
buildResponse
(
projectResourceServiceImpl
.
getProjectList
());
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectResourceServiceImpl.java
View file @
a512b1d9
...
...
@@ -214,7 +214,7 @@ public class ProjectResourceServiceImpl extends BaseService<ProjectResourceDto,P
* @return
*/
@BusinessIdentify
List
<
Project
>
getProjectList
(){
public
List
<
Project
>
getProjectList
(){
ReginParams
reginParams
=
orgService
.
getReginParams
();
ReginParams
.
BusinessInfo
businessInfo
=
reginParams
.
getBusinessInfo
();
String
companyId
=
String
.
valueOf
(
businessInfo
.
getCompanySequenceNbr
());
...
...
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