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
217929e8
Commit
217929e8
authored
Oct 14, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 接受告知接口
parent
4678325d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
15 deletions
+38
-15
NoticeStatusEnum.java
...ejoin/amos/boot/module/ugp/api/Enum/NoticeStatusEnum.java
+17
-0
noticeStatusEnum.java
...ejoin/amos/boot/module/ugp/api/Enum/noticeStatusEnum.java
+0
-15
InstallNoticeController.java
...ot/module/ugp/biz/controller/InstallNoticeController.java
+21
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/Enum/NoticeStatusEnum.java
0 → 100644
View file @
217929e8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
Enum
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
@Getter
@AllArgsConstructor
public
enum
NoticeStatusEnum
{
已提交
(
"已提交"
,
"0"
),
已接收
(
"已接收"
,
"1"
),
已退回
(
"已退回"
,
"2"
),
已通过
(
"已通过"
,
"3"
);
String
name
;
String
statusId
;
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/Enum/noticeStatusEnum.java
deleted
100644 → 0
View file @
4678325d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
Enum
;
public
enum
noticeStatusEnum
{
已提交
(
"已提交"
,
"0"
),
已接收
(
"已接收"
,
"1"
),
已退回
(
"已退回"
,
"2"
);
String
name
;
String
statusId
;
noticeStatusEnum
(
String
name
,
String
statusId
)
{
this
.
name
=
name
;
this
.
statusId
=
statusId
;
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/InstallNoticeController.java
View file @
217929e8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.NoticeStatusEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.InstallNotice
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectInitiationServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectServiceImpl
;
import
org.apache.poi.ss.formula.functions.T
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -38,6 +42,12 @@ public class InstallNoticeController extends BaseController {
@Autowired
InstallNoticeServiceImpl
installNoticeServiceImpl
;
@Autowired
ProjectInitiationServiceImpl
projectInitiationServiceImpl
;
@Autowired
ProjectServiceImpl
projectServiceImpl
;
/**
* 新增安装告知表
*
...
...
@@ -196,4 +206,15 @@ public class InstallNoticeController extends BaseController {
model
=
installNoticeServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/acceptNotification"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"接受告知"
,
notes
=
"接受告知"
)
public
ResponseModel
<
Boolean
>
acceptNotification
(
Long
sequenceNbr
){
InstallNotice
installNotice
=
installNoticeServiceImpl
.
getById
(
sequenceNbr
);
installNotice
.
setNoticeStatus
(
NoticeStatusEnum
.
已接收
.
getName
());
Project
project
=
projectServiceImpl
.
getById
(
installNotice
.
getProjectId
());
projectInitiationServiceImpl
.
execute
(
project
.
getInstanceId
(),
installNotice
,
NoticeStatusEnum
.
已接收
.
getStatusId
());
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
updateById
(
installNotice
));
}
}
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