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
3ca36d0f
Commit
3ca36d0f
authored
Nov 08, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资料上传接口修改
parent
e04a7388
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+22
-9
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
View file @
3ca36d0f
...
@@ -76,22 +76,34 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
...
@@ -76,22 +76,34 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
}
}
private
void
getProjectState
(
ProjectDto
project
)
{
private
void
getProjectState
(
ProjectDto
project
)
{
String
state
=
"
待审核
"
,
insDep
=
""
,
insPerson
=
""
;
String
state
=
""
,
insDep
=
""
,
insPerson
=
""
;
LambdaQueryWrapper
<
ProjectInitiation
>
lambdaQueryWrap
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
ProjectInitiation
>
lambdaQueryWrap
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrap
.
eq
(
ProjectInitiation:
:
getInstanceId
,
project
.
getInstanceId
())
lambdaQueryWrap
.
eq
(
ProjectInitiation:
:
getInstanceId
,
project
.
getInstanceId
())
.
eq
(
ProjectInitiation
::
getTaskName
,
ProjectInitiationEnum
.
平台审核
.
getName
())
//
.eq(ProjectInitiation ::getTaskName, ProjectInitiationEnum.平台审核.getName())
.
orderByDesc
(
ProjectInitiation:
:
getSequenceNbr
);
.
orderByDesc
(
ProjectInitiation:
:
getSequenceNbr
);
List
<
ProjectInitiation
>
projectInitiationList
=
projectInitiationService
.
list
(
lambdaQueryWrap
);
List
<
ProjectInitiation
>
projectInitiationList
=
projectInitiationService
.
list
(
lambdaQueryWrap
);
if
(!
ValidationUtil
.
isEmpty
(
projectInitiationList
)){
if
(!
ValidationUtil
.
isEmpty
(
projectInitiationList
)){
ProjectInitiation
projectInitiation
=
projectInitiationList
.
iterator
().
next
();
ProjectInitiation
projectInitiation
=
projectInitiationList
.
iterator
().
next
();
JSONObject
jsonObject
=
JSON
.
parseObject
(
projectInitiation
.
getContext
());
JSONObject
jsonObject
=
JSON
.
parseObject
(
projectInitiation
.
getContext
());
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
)){
if
(
ProjectInitiationEnum
.
平台审核
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
审批人审批
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
审核人审核
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
监检科室分配
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
project
.
getStatus
())){
state
=
jsonObject
.
getString
(
XJConstant
.
PROCESS_PROJECT_STATE
);
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
)){
insDep
=
jsonObject
.
getString
(
XJConstant
.
INS_DEP
);
state
=
jsonObject
.
getString
(
XJConstant
.
PROCESS_PROJECT_STATE
);
insPerson
=
jsonObject
.
getString
(
XJConstant
.
INS_PRESON
);
insDep
=
jsonObject
.
getString
(
XJConstant
.
INS_DEP
);
insPerson
=
jsonObject
.
getString
(
XJConstant
.
INS_PRESON
);
}
}
}
}
}
if
(
ProjectInitiationEnum
.
平台审核
.
getName
().
equals
(
project
.
getStatus
())){
if
(
ValidationUtil
.
isEmpty
(
state
)){
state
=
"待审核"
;
}
}
else
{
if
(
ValidationUtil
.
isEmpty
(
state
)){
state
=
"待上传资料"
;
}
}
project
.
setExamineProjectState
(
state
);
project
.
setExamineProjectState
(
state
);
project
.
setInsDep
(
insDep
);
project
.
setInsDep
(
insDep
);
project
.
setInsPerson
(
insPerson
);
project
.
setInsPerson
(
insPerson
);
...
@@ -166,13 +178,15 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
...
@@ -166,13 +178,15 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
attachment
.
setInfo
(
JSON
.
toJSONString
(
subForm
));
attachment
.
setInfo
(
JSON
.
toJSONString
(
subForm
));
attachmentService
.
updateById
(
attachment
);
attachmentService
.
updateById
(
attachment
);
}
}
if
(
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
XJConstant
.
PROCESS_PROJECT_STATE
))){
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"资料已上传"
);
}
Project
project
=
this
.
getById
(
sequenceNbr
);
Project
project
=
this
.
getById
(
sequenceNbr
);
ProjectDto
projectDto
=
new
ProjectDto
();
ProjectDto
projectDto
=
new
ProjectDto
();
BeanUtils
.
copyProperties
(
project
,
projectDto
);
BeanUtils
.
copyProperties
(
project
,
projectDto
);
projectDto
.
setInsDep
(
jsonObject
.
getString
(
"insDep"
));
projectDto
.
setInsDep
(
jsonObject
.
getString
(
"insDep"
));
projectDto
.
setInsDep
(
jsonObject
.
getString
(
"insPerson"
));
projectDto
.
setInsDep
(
jsonObject
.
getString
(
"insPerson"
));
projectDto
.
setProcessProjectState
(
jsonObject
.
getString
(
"processProjectState"
));
projectDto
.
setProcessProjectState
(
jsonObject
.
getString
(
XJConstant
.
PROCESS_PROJECT_STATE
));
boolean
design
=
false
,
install
=
false
;
boolean
design
=
false
,
install
=
false
;
for
(
Object
object:
subForm
){
for
(
Object
object:
subForm
){
JSONObject
jo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
object
));
JSONObject
jo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
object
));
...
@@ -188,7 +202,6 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
...
@@ -188,7 +202,6 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
if
(
design
&&
install
){
if
(
design
&&
install
){
projectInitiationService
.
execute
(
project
.
getInstanceId
(),
projectDto
,
"1"
);
projectInitiationService
.
execute
(
project
.
getInstanceId
(),
projectDto
,
"1"
);
}
}
this
.
updateById
(
project
);
return
"ok"
;
return
"ok"
;
}
}
...
...
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