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
d939b7fc
Commit
d939b7fc
authored
Oct 10, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善基本流程
parent
d27ab565
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
109 additions
and
8 deletions
+109
-8
ProjectInitiationDto.java
...in/amos/boot/module/ugp/api/dto/ProjectInitiationDto.java
+30
-0
ProjectInitiation.java
...in/amos/boot/module/ugp/api/entity/ProjectInitiation.java
+30
-0
ProjectInitiationMapper.java
...s/boot/module/ugp/api/mapper/ProjectInitiationMapper.java
+8
-0
IProjectInitiationService.java
...oot/module/ugp/api/service/IProjectInitiationService.java
+19
-0
ProjectInitiationController.java
...odule/ugp/biz/controller/ProjectInitiationController.java
+15
-6
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+0
-0
application.properties
...-module-ugp-biz/src/main/resources/application.properties
+2
-2
pom.xml
amos-boot-system-ugp/pom.xml
+5
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/ProjectInitiationDto.java
0 → 100644
View file @
d939b7fc
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
@Data
@ApiModel
(
value
=
"ProjectInitiationDto"
,
description
=
"项目立项流程日志表"
)
public
class
ProjectInitiationDto
extends
BaseDto
{
@TableField
(
"instance_id"
)
private
String
instanceId
;
@TableField
(
"task_id"
)
private
String
taskId
;
@TableField
(
"task_name"
)
private
String
taskName
;
@TableField
(
"executor"
)
private
String
executor
;
@TableField
(
"context"
)
private
String
context
;
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/entity/ProjectInitiation.java
0 → 100644
View file @
d939b7fc
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tz_ugp_project_initiation_log"
)
public
class
ProjectInitiation
extends
BaseEntity
{
@TableField
(
"instance_id"
)
private
String
instanceId
;
@TableField
(
"task_id"
)
private
String
taskId
;
@TableField
(
"task_name"
)
private
String
taskName
;
@TableField
(
"executor"
)
private
String
executor
;
@TableField
(
"context"
)
private
String
context
;
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/ProjectInitiationMapper.java
0 → 100644
View file @
d939b7fc
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.ProjectInitiation
;
public
interface
ProjectInitiationMapper
extends
BaseMapper
<
ProjectInitiation
>
{
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/service/IProjectInitiationService.java
0 → 100644
View file @
d939b7fc
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
public
interface
IProjectInitiationService
{
/**
* 流程启动
* @return 返回instanceId ,加入项目信息表中
* @throws Exception
*/
String
start
();
/**
* 执行流程节点,并记录日志
*/
void
execute
(
String
instanceId
,
Object
object
,
String
option
);
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectInitiationController.java
View file @
d939b7fc
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectInitiationServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectInitiationServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ResponseHeader
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
@RestController
@RestController
@Api
(
tags
=
"流程相关"
)
@Api
(
tags
=
"流程相关"
)
...
@@ -22,7 +23,15 @@ public class ProjectInitiationController {
...
@@ -22,7 +23,15 @@ public class ProjectInitiationController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/start"
)
@GetMapping
(
value
=
"/start"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"流程启动"
,
notes
=
"流程启动"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"流程启动"
,
notes
=
"流程启动"
)
public
void
start
()
throws
Exception
{
public
ResponseModel
<
String
>
start
()
throws
Exception
{
projectInitiationServiceImpl
.
start
();
return
ResponseHelper
.
buildResponse
(
projectInitiationServiceImpl
.
start
());
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/execute/{instanceId}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"流程启动"
,
notes
=
"流程启动"
)
public
ResponseModel
<
String
>
execute
(
@PathVariable
(
"instanceId"
)
String
instanceId
,
Object
object
,
String
option
)
throws
Exception
{
projectInitiationServiceImpl
.
execute
(
instanceId
,
object
,
option
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
}
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
View file @
d939b7fc
This diff is collapsed.
Click to expand it.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/resources/application.properties
View file @
d939b7fc
...
@@ -29,4 +29,4 @@ emqx.password=123456
...
@@ -29,4 +29,4 @@ emqx.password=123456
fire-rescue
=
123
fire-rescue
=
123
params.work.flow.processDefinitionKey
=
ceshi
params.work.flow.processDefinitionKey
=
xiangmulixiangliucheng
\ No newline at end of file
\ No newline at end of file
amos-boot-system-ugp/pom.xml
View file @
d939b7fc
...
@@ -19,6 +19,11 @@
...
@@ -19,6 +19,11 @@
<artifactId>
amos-boot-biz-common
</artifactId>
<artifactId>
amos-boot-biz-common
</artifactId>
<version>
${amos-biz-boot.version}
</version>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-feign-workflow
</artifactId>
<version>
1.7.9-SNAPSHOT
</version>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
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