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
31f21084
Commit
31f21084
authored
Jul 17, 2023
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核更新
parent
698d098d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
PowerStation.java
...eejoin/amos/boot/module/hygf/api/entity/PowerStation.java
+6
-0
PowerStationServiceImpl.java
...module/hygf/biz/service/impl/PowerStationServiceImpl.java
+8
-0
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+4
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PowerStation.java
View file @
31f21084
...
@@ -115,4 +115,10 @@ public class PowerStation extends BaseEntity {
...
@@ -115,4 +115,10 @@ public class PowerStation extends BaseEntity {
*/
*/
@TableField
(
"next_process_node"
)
@TableField
(
"next_process_node"
)
private
String
nextProcessNode
;
private
String
nextProcessNode
;
/**
* 当前流程节点
*/
@TableField
(
"flow_task_id"
)
private
String
flowTaskId
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PowerStationServiceImpl.java
View file @
31f21084
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.PowerStationNodeEnum
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.PowerStationNodeEnum
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.PowerStationProcessStateEnum
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.PowerStationProcessStateEnum
;
...
@@ -109,6 +110,13 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
...
@@ -109,6 +110,13 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
if
(
IDX_REQUEST_STATE
.
equals
(
String
.
valueOf
(
submit
.
getStatus
())))
{
if
(
IDX_REQUEST_STATE
.
equals
(
String
.
valueOf
(
submit
.
getStatus
())))
{
code
=
submit
.
getResult
();
code
=
submit
.
getResult
();
log
.
info
(
"流程执行成功:{}"
,
code
);
log
.
info
(
"流程执行成功:{}"
,
code
);
// 获取流程信息
FeignClientResult
<
JSONObject
>
record
=
idxFeginService
.
getRecord
(
code
);
if
(
IDX_REQUEST_STATE
.
equals
(
String
.
valueOf
(
record
.
getStatus
())))
{
JSONObject
resultObj
=
record
.
getResult
();
String
flowTaskId
=
String
.
valueOf
(
resultObj
.
get
(
"flowTaskId"
));
powerStation
.
setFlowTaskId
(
flowTaskId
);
}
powerStationService
.
savePowerStation
(
powerStation
);
powerStationService
.
savePowerStation
(
powerStation
);
}
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/SurveyInformationServiceImpl.java
View file @
31f21084
...
@@ -188,14 +188,13 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
...
@@ -188,14 +188,13 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
PowerStation
powerStation
=
powerStationService
.
getObjByNhId
(
String
.
valueOf
(
peasantHousehold
.
getSequenceNbr
()),
PowerStationProcessStateEnum
.
作废
.
getCode
());
PowerStation
powerStation
=
powerStationService
.
getObjByNhId
(
String
.
valueOf
(
peasantHousehold
.
getSequenceNbr
()),
PowerStationProcessStateEnum
.
作废
.
getCode
());
String
taskId
=
null
;
String
taskId
=
null
;
Map
<
String
,
Object
>
objectMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
objectMap
=
new
HashMap
<>(
1
);
objectMap
.
put
(
"describe"
,
"经销商已上传信息"
);
if
(
ObjectUtils
.
isNotEmpty
(
powerStation
))
{
if
(
ObjectUtils
.
isNotEmpty
(
powerStation
))
{
// 工作流执行一步
// 工作流执行一步
taskId
=
powerStation
.
getTaskId
();
taskId
=
powerStation
.
getTaskId
();
objectMap
.
put
(
"approveStatus"
,
"yes"
);
}
else
{
}
else
{
// 第一步启动工作流
// 第一步启动工作流
objectMap
.
put
(
"approveStatus"
,
"yes"
);
powerStation
=
new
PowerStation
();
powerStation
=
new
PowerStation
();
}
}
// 保存并审核
// 保存并审核
...
@@ -218,8 +217,10 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
...
@@ -218,8 +217,10 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
JSONObject
resultObj
=
record
.
getResult
();
JSONObject
resultObj
=
record
.
getResult
();
String
taskIdNew
=
String
.
valueOf
(
resultObj
.
get
(
"taskId"
));
String
taskIdNew
=
String
.
valueOf
(
resultObj
.
get
(
"taskId"
));
String
processInstanceId
=
String
.
valueOf
(
resultObj
.
get
(
"processInstanceId"
));
String
processInstanceId
=
String
.
valueOf
(
resultObj
.
get
(
"processInstanceId"
));
String
flowTaskId
=
String
.
valueOf
(
resultObj
.
get
(
"flowTaskId"
));
powerStation
.
setTaskId
(
taskIdNew
);
powerStation
.
setTaskId
(
taskIdNew
);
powerStation
.
setProcessInstanceId
(
processInstanceId
);
powerStation
.
setProcessInstanceId
(
processInstanceId
);
powerStation
.
setFlowTaskId
(
flowTaskId
);
}
}
powerStationService
.
savePowerStation
(
powerStation
);
powerStationService
.
savePowerStation
(
powerStation
);
}
}
...
...
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