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
5256d30a
Commit
5256d30a
authored
Nov 18, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化资料提交时的提示语
parent
cc44d19b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+10
-1
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+5
-1
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 @
5256d30a
...
...
@@ -7,6 +7,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.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.OrgEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.constants.XJConstant
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.EquipmentDto
;
...
...
@@ -356,7 +357,15 @@ public class ProjectController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"添加附件"
,
notes
=
"添加附件"
)
@PostMapping
(
value
=
"/saveOrUpdateFile"
)
public
ResponseModel
<
String
>
saveOrUpdateFile
(
@RequestBody
JSONObject
jsonObject
){
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
saveOrUpdateFile
(
jsonObject
));
String
type
=
projectServiceImpl
.
saveOrUpdateFile
(
jsonObject
);
if
(
"over"
.
equals
(
type
))
{
CommonResponseUtil
.
success
(
type
,
"提交成功!"
);
}
else
if
(
"fail"
.
equals
(
type
))
{
CommonResponseUtil
.
failure
(
"资料尚未添加完成,不能提交!"
);
}
else
{
return
CommonResponseUtil
.
success
(
type
,
"保存成功!"
);
}
return
ResponseHelper
.
buildResponse
(
type
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
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 @
5256d30a
...
...
@@ -249,10 +249,14 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
}
}
//若为null则为保存 不执行流程
String
type
=
jsonObject
.
getString
(
"type"
);
if
(
type
!=
null
)
{
if
(
!
ValidationUtil
.
isEmpty
(
type
)
)
{
if
(
design
&&
install
)
{
projectInitiationService
.
execute
(
project
.
getInstanceId
(),
projectDto
,
"1"
);
return
"over"
;
}
else
{
return
"fail"
;
}
}
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