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
b028a163
Commit
b028a163
authored
Oct 11, 2022
by
wujiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
aa9d7eb9
1fe5c304
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
ProjectDto.java
.../com/yeejoin/amos/boot/module/ugp/api/dto/ProjectDto.java
+7
-0
Project.java
.../com/yeejoin/amos/boot/module/ugp/api/entity/Project.java
+12
-0
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+9
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/ProjectDto.java
View file @
b028a163
...
@@ -75,7 +75,14 @@ public class ProjectDto extends BaseDto {
...
@@ -75,7 +75,14 @@ public class ProjectDto extends BaseDto {
@ApiModelProperty
(
value
=
"项目提交日期"
)
@ApiModelProperty
(
value
=
"项目提交日期"
)
private
Date
submitDate
;
private
Date
submitDate
;
@ApiModelProperty
(
value
=
"流程id"
)
private
String
instanceId
;
@ApiModelProperty
(
value
=
"流程状态"
)
private
String
status
;
@ApiModelProperty
(
value
=
"备注"
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
private
String
remark
;
}
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/entity/Project.java
View file @
b028a163
...
@@ -131,6 +131,18 @@ public class Project extends BaseEntity {
...
@@ -131,6 +131,18 @@ public class Project extends BaseEntity {
private
Date
submitDate
;
private
Date
submitDate
;
/**
/**
* 流程id
*/
@TableField
(
"instance_id"
)
private
String
instanceId
;
/**
* 流程状态
*/
@TableField
(
"status"
)
private
String
status
;
/**
* 备注
* 备注
*/
*/
@TableField
(
"remark"
)
@TableField
(
"remark"
)
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
b028a163
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectInitiationServiceImpl
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
@@ -30,6 +33,8 @@ public class ProjectController extends BaseController {
...
@@ -30,6 +33,8 @@ public class ProjectController extends BaseController {
@Autowired
@Autowired
ProjectServiceImpl
projectServiceImpl
;
ProjectServiceImpl
projectServiceImpl
;
@Autowired
ProjectInitiationServiceImpl
projectInitiationService
;
/**
/**
* 新增项目信息表
* 新增项目信息表
...
@@ -40,6 +45,8 @@ public class ProjectController extends BaseController {
...
@@ -40,6 +45,8 @@ public class ProjectController extends BaseController {
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增项目信息表"
,
notes
=
"新增项目信息表"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增项目信息表"
,
notes
=
"新增项目信息表"
)
public
ResponseModel
<
ProjectDto
>
save
(
@RequestBody
ProjectDto
model
)
{
public
ResponseModel
<
ProjectDto
>
save
(
@RequestBody
ProjectDto
model
)
{
model
.
setStartDate
(
new
Date
());
model
.
setSubmitDate
(
new
Date
());
model
=
projectServiceImpl
.
createWithModel
(
model
);
model
=
projectServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
...
@@ -54,7 +61,8 @@ public class ProjectController extends BaseController {
...
@@ -54,7 +61,8 @@ public class ProjectController extends BaseController {
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新项目信息表"
,
notes
=
"根据sequenceNbr更新项目信息表"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新项目信息表"
,
notes
=
"根据sequenceNbr更新项目信息表"
)
public
ResponseModel
<
ProjectDto
>
updateBySequenceNbrProject
(
@RequestBody
ProjectDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
ProjectDto
>
updateBySequenceNbrProject
(
@RequestBody
ProjectDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setRecDate
(
new
Date
());
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
updateWithModel
(
model
));
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
updateWithModel
(
model
));
}
}
...
...
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