Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
0512d538
Commit
0512d538
authored
Jan 31, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作流升级
parent
8b0b71c6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
+22
-3
ProcessDto.java
...com/yeejoin/amos/boot/module/hygf/api/dto/ProcessDto.java
+1
-1
WorkflowFeignClient.java
.../amos/boot/module/hygf/biz/feign/WorkflowFeignClient.java
+6
-1
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+1
-0
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+1
-1
WorkflowImpl.java
.../amos/boot/module/hygf/biz/service/impl/WorkflowImpl.java
+13
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/ProcessDto.java
View file @
0512d538
...
...
@@ -10,6 +10,6 @@ import lombok.Data;
@Data
public
class
ProcessDto
{
private
String
businessKey
;
//业务id
private
String
processDefinitionKey
=
"hygf_bwys"
;
//工作流key
private
String
processDefinitionKey
;
//工作流key
private
boolean
completeFirstTask
=
true
;
//是否执行第一个节点 false true
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/feign/WorkflowFeignClient.java
View file @
0512d538
...
...
@@ -74,7 +74,12 @@ public interface WorkflowFeignClient {
@RequestMapping
(
value
=
"/v2/task/start/batch"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
List
<
ProcessTaskDTO
>>
startProcess
(
@RequestBody
StartProcessDto
startProcessDto
);
@RequestMapping
(
value
=
"/v2/task/start/batch"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
List
<
ProcessTaskDTO
>>
startProcessnew
(
@RequestHeader
(
name
=
"appKey"
,
required
=
true
)
String
appKey
,
@RequestHeader
(
name
=
"product"
,
required
=
true
)
String
product
,
@RequestHeader
(
name
=
"token"
,
required
=
true
)
String
token
,
@RequestBody
StartProcessDto
startProcessDto
);
/**
* 执行流程
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
View file @
0512d538
...
...
@@ -96,6 +96,7 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta
}
else
{
// 调用工作流执行第一个节点
ProcessDto
processDto
=
new
ProcessDto
();
processDto
.
setProcessDefinitionKey
(
"hygf_bwys"
);
processDto
.
setBusinessKey
(
String
.
valueOf
(
basicGridAcceptance
.
getSequenceNbr
()));
StartProcessDto
startProcessDto
=
new
StartProcessDto
();
List
<
ProcessDto
>
process
=
new
ArrayList
<>();
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
0512d538
...
...
@@ -491,7 +491,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
process
.
add
(
processDto
);
startProcessDto
.
setProcess
(
process
);
BasicGridAcceptance
basicGridAcceptance
=
new
BasicGridAcceptance
();
workflow
.
startProcess
(
basicGridAcceptance
,
startProcessDto
,
requestContext
.
getUserId
());
workflow
.
startProcess
new
(
AMOS_STUDIO
,
AMOS_STUDIO_WEB
,
requestContext
.
getToken
(),
basicGridAcceptance
,
startProcessDto
,
requestContext
.
getUserId
());
// 插入记录表
dealerReview
.
setPlanInstanceId
(
planId
);
dealerReview
.
setUnitInfoId
(
regUnitInfo
.
getSequenceNbr
());
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/WorkflowImpl.java
View file @
0512d538
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
java.util.List
;
...
...
@@ -36,6 +37,18 @@ public class WorkflowImpl {
basicGridAcceptance
=
this
.
getBasicGridAcceptance
(
basicGridAcceptance
,
json
,
userid
);
return
basicGridAcceptance
;
}
public
BasicGridAcceptance
startProcessnew
(
String
appKey
,
String
product
,
String
token
,
BasicGridAcceptance
basicGridAcceptance
,
StartProcessDto
startProcessDto
,
String
userid
){
FeignClientResult
<
List
<
ProcessTaskDTO
>>
json
=
workflowFeignClient
.
startProcessnew
(
appKey
,
product
,
token
,
startProcessDto
);
basicGridAcceptance
=
this
.
getBasicGridAcceptance
(
basicGridAcceptance
,
json
,
userid
);
return
basicGridAcceptance
;
}
/**
*
...
...
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