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
28af09ec
Commit
28af09ec
authored
Nov 16, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取当前登录人所在单位下的项目列表
parent
c3af2df5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+3
-3
ProjectResourceController.java
.../module/ugp/biz/controller/ProjectResourceController.java
+5
-5
ProjectResourceServiceImpl.java
...dule/ugp/biz/service/impl/ProjectResourceServiceImpl.java
+6
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
28af09ec
...
...
@@ -340,13 +340,13 @@ public class ProjectController extends BaseController {
String
option
=
json
.
getString
(
XJConstant
.
PROCESS_PROJECT_STATE
);
Project
project
=
projectServiceImpl
.
getById
(
sequenceNbr
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
project
));
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"
符合
"
);
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"
立项成功
"
);
if
(
"0"
.
equals
(
option
)){
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"
不符合且不需要整改
"
);
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"
项目退回
"
);
projectInitiationService
.
execute
(
project
.
getInstanceId
(),
jsonObject
,
option
);
projectInitiationService
.
execute
(
project
.
getInstanceId
(),
jsonObject
,
option
);
}
else
if
(
"2"
.
equals
(
option
)){
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"
不符合且需要
重新提交资料"
);
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"
项目需
重新提交资料"
);
}
projectInitiationService
.
execute
(
project
.
getInstanceId
(),
jsonObject
,
option
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectResourceController.java
View file @
28af09ec
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectInitiationEnum
;
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
;
...
...
@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectResourceServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -286,14 +288,12 @@ public class ProjectResourceController extends BaseController {
return
ResponseHelper
.
buildResponse
(
projectResourceServiceImpl
.
getResourceInfo
(
type
,
page
,
projectResourceinfo
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectByUserId"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"根据当前登录人获取登录人参与的项目列表"
,
notes
=
"根据当前登录人获取登录人参与的项目列表"
)
public
ResponseModel
<
List
<
Project
>>
selectByUserId
(){
return
ResponseHelper
.
buildResponse
(
projectResourceServiceImpl
.
getProjectList
());
List
<
Project
>
projectList
=
projectResourceServiceImpl
.
getProjectList
();
projectList
=
projectList
.
stream
().
filter
(
r
->
r
.
getStatus
().
equals
(
ProjectInitiationEnum
.
流程结束
.
getName
())).
collect
(
Collectors
.
toList
());
return
ResponseHelper
.
buildResponse
(
projectList
);
}
}
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 @
28af09ec
...
...
@@ -242,6 +242,12 @@ public class ProjectResourceServiceImpl extends BaseService<ProjectResourceDto,P
ReginParams
.
BusinessInfo
businessInfo
=
reginParams
.
getBusinessInfo
();
String
companyId
=
String
.
valueOf
(
businessInfo
.
getCompanySequenceNbr
());
String
roleName
=
reginParams
.
getRole
().
getRoleName
();
//判断普通人员在哪个单位
if
(
OrgEnum
.
普通人员
.
getName
().
equals
(
roleName
)){
if
(
OrgEnum
.
安装单位
.
getKey
().
equals
(
orgService
.
getOrgUsrById
(
companyId
).
getOrgExpandAttr1
())){
roleName
=
OrgEnum
.
安装单位
.
getName
();
}
}
LambdaQueryWrapper
<
SuperviseRule
>
wrapper
=
new
LambdaQueryWrapper
<>();
List
<
Project
>
projectList
=
new
ArrayList
<>();
Set
<
String
>
codes
=
new
HashSet
<>();
...
...
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