Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
5717cf8e
提交
5717cf8e
authored
4月 27, 2026
作者:
whydesc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--会签功能完善
上级
385fe3aa
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
211 行增加
和
153 行删除
+211
-153
TodoIndex.vue
...-39/src/views/flowable/task/todo/components/TodoIndex.vue
+6
-1
FlowTaskServiceImpl.java
...cg/modules/flowable/service/impl/FlowTaskServiceImpl.java
+203
-150
application-dev.yml
...jeecg-system-start/src/main/resources/application-dev.yml
+2
-2
没有找到文件。
zrch-risk-client-39/src/views/flowable/task/todo/components/TodoIndex.vue
浏览文件 @
5717cf8e
...
@@ -590,7 +590,7 @@
...
@@ -590,7 +590,7 @@
//alert("dd"+isFixed.value);
//alert("dd"+isFixed.value);
// if (!isFixed.value) {
// if (!isFixed.value) {
//alert("dd"+userType.value);
if
(
userType
.
value
===
'user'
)
{
if
(
userType
.
value
===
'user'
)
{
submitData
.
values
[
'approval'
]
=
formData
.
checkSendUser
;
submitData
.
values
[
'approval'
]
=
formData
.
checkSendUser
;
submitData
.
values
[
'copyUser'
]
=
formData
.
copyUser
;
submitData
.
values
[
'copyUser'
]
=
formData
.
copyUser
;
...
@@ -604,7 +604,12 @@
...
@@ -604,7 +604,12 @@
}
else
if
(
formData
.
checkSendRole
)
{
}
else
if
(
formData
.
checkSendRole
)
{
submitData
.
values
[
'approval'
]
=
formData
.
checkSendRole
;
submitData
.
values
[
'approval'
]
=
formData
.
checkSendRole
;
submitData
.
values
[
'approvalType'
]
=
'role'
;
submitData
.
values
[
'approvalType'
]
=
'role'
;
}
else
{
submitData
.
values
[
'approval'
]
=
formData
.
checkSendUser
;
submitData
.
values
[
'copyUser'
]
=
formData
.
copyUser
;
submitData
.
values
[
'approvalType'
]
=
'user'
;
}
}
console
.
log
(
"ssss why ----"
,
submitData
);
const
result
=
await
complete
(
submitData
);
const
result
=
await
complete
(
submitData
);
message
.
success
(
'任务发送成功'
);
message
.
success
(
'任务发送成功'
);
...
...
zrch-risk-server-39/jeecg-module-system/jeecg-module-flowable/src/main/java/org/jeecg/modules/flowable/service/impl/FlowTaskServiceImpl.java
浏览文件 @
5717cf8e
...
@@ -160,6 +160,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -160,6 +160,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
}
}
if
(
DelegationState
.
PENDING
.
equals
(
task
.
getDelegationState
()))
{
if
(
DelegationState
.
PENDING
.
equals
(
task
.
getDelegationState
()))
{
taskService
.
addComment
(
taskVo
.
getTaskId
(),
taskVo
.
getInstanceId
(),
FlowComment
.
DELEGATE
.
getType
(),
taskVo
.
getComment
());
taskService
.
addComment
(
taskVo
.
getTaskId
(),
taskVo
.
getInstanceId
(),
FlowComment
.
DELEGATE
.
getType
(),
taskVo
.
getComment
());
taskService
.
resolveTask
(
taskVo
.
getTaskId
(),
taskVo
.
getValues
());
taskService
.
resolveTask
(
taskVo
.
getTaskId
(),
taskVo
.
getValues
());
...
@@ -167,12 +168,12 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -167,12 +168,12 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
}
else
{
}
else
{
// 获取流程变量
// 获取流程变量
Map
<
String
,
Object
>
formValues
=
getProcessVariables
(
taskVo
.
getTaskId
());
Map
<
String
,
Object
>
formValues
=
getProcessVariables
(
taskVo
.
getTaskId
());
String
zdmc
=
""
;
String
zdmc
=
""
;
String
zdval
=
""
;
String
zdval
=
""
;
String
tasktitle
=
""
;
String
tasktitle
=
""
;
if
(
formValues
.
get
(
"dataName"
)==
null
)
{
if
(
formValues
.
get
(
"dataName"
)
==
null
)
{
if
(
formValues
.
get
(
"_value"
)!=
null
)
{
if
(
formValues
.
get
(
"_value"
)
!=
null
)
{
Map
zdv
=
(
Map
)
formValues
.
get
(
"_value"
);
Map
zdv
=
(
Map
)
formValues
.
get
(
"_value"
);
zdmc
=
(
String
)
zdv
.
get
(
"dataName"
);
zdmc
=
(
String
)
zdv
.
get
(
"dataName"
);
...
@@ -180,10 +181,29 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -180,10 +181,29 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
tasktitle
=
(
String
)
zdv
.
get
(
"tasktitle"
);
tasktitle
=
(
String
)
zdv
.
get
(
"tasktitle"
);
}
}
}
else
{
}
else
{
zdmc
=(
String
)
formValues
.
get
(
"dataName"
);
zdmc
=
(
String
)
formValues
.
get
(
"dataName"
);
zdval
=
formValues
.
get
(
"dataId"
).
toString
();
zdval
=
formValues
.
get
(
"dataId"
).
toString
();
tasktitle
=(
String
)
formValues
.
get
(
"tasktitle"
);
tasktitle
=
(
String
)
formValues
.
get
(
"tasktitle"
);
}
//处理多用户 多实例
String
approval
=
""
;
//发送人
Object
approvalUserObject
=
taskVo
.
getValues
().
get
(
"approval"
);
if
(
approvalUserObject
!=
null
)
{
approval
=
approvalUserObject
.
toString
();
}
// 2. 设置流程变量
Map
<
String
,
Object
>
variables
=
new
HashMap
<>();
List
<
String
>
approverIds
=
null
;
if
(!
approval
.
equals
(
""
)
&&
approval
.
indexOf
(
","
)
>
0
)
{
// 1. 接收前端数据
approverIds
=
Arrays
.
asList
(
approval
.
split
(
","
));
// 2. 设置流程变量
variables
.
put
(
"assigneeList"
,
approverIds
);
// 对应BPMN里的collection
}
}
...
@@ -191,90 +211,116 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -191,90 +211,116 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
//Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
//Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
SysUser
loginUser
=
iFlowThirdService
.
getLoginUser
();
SysUser
loginUser
=
iFlowThirdService
.
getLoginUser
();
taskService
.
complete
(
taskVo
.
getTaskId
(),
taskVo
.
getValues
());
if
(!
approval
.
equals
(
""
)
&&
approval
.
indexOf
(
","
)
>
0
)
{
taskService
.
complete
(
taskVo
.
getTaskId
(),
variables
);
List
<
Task
>
nextTask2List
=
taskService
.
createTaskQuery
()
.
processInstanceId
(
taskVo
.
getInstanceId
())
.
active
().
list
();
for
(
int
k
=
0
;
k
<
nextTask2List
.
size
();
k
++){
Task
ntaxk
=
nextTask2List
.
get
(
k
);
taskService
.
setAssignee
(
ntaxk
.
getId
(),
approverIds
.
get
(
k
));
}
}
else
{
taskService
.
complete
(
taskVo
.
getTaskId
(),
taskVo
.
getValues
());
//处理抄送
//处理抄送
String
copyUser
=
""
;
//抄送人
String
copyUser
=
""
;
//抄送人
Object
copyUserObject
=
taskVo
.
getValues
().
get
(
"copyUser"
);
Object
copyUserObject
=
taskVo
.
getValues
().
get
(
"copyUser"
);
if
(
copyUserObject
!=
null
)
{
if
(
copyUserObject
!=
null
)
{
copyUser
=
copyUserObject
.
toString
();
copyUser
=
copyUserObject
.
toString
();
}
}
String
userType
=
""
;
String
userType
=
""
;
String
approvalId
=
""
;
String
approvalId
=
""
;
Object
userTypeObject
=
taskVo
.
getValues
().
get
(
"approvalType"
);
Object
userTypeObject
=
taskVo
.
getValues
().
get
(
"approvalType"
);
if
(
userTypeObject
!=
null
)
{
if
(
userTypeObject
!=
null
)
{
userType
=
userTypeObject
.
toString
();
userType
=
userTypeObject
.
toString
();
}
}
Object
approvalObject
=
taskVo
.
getValues
().
get
(
"approval"
);
Object
approvalObject
=
taskVo
.
getValues
().
get
(
"approval"
);
if
(
approvalObject
!=
null
)
{
if
(
approvalObject
!=
null
)
{
approvalId
=
approvalObject
.
toString
();
approvalId
=
approvalObject
.
toString
();
}
}
this
.
saveMyTaskFlowHis
(
task
,
userType
,
approvalId
,
cdate
,
loginUser
.
getId
(),
ProcessConstants
.
TASK_TYPE_HAND
,
OptionType
,
copyUser
,
ProcessConstants
.
OPTION_TYPE_CC
);
this
.
saveMyTaskFlowHis
(
task
,
userType
,
approvalId
,
cdate
,
loginUser
.
getId
(),
ProcessConstants
.
TASK_TYPE_HAND
,
OptionType
,
copyUser
,
ProcessConstants
.
OPTION_TYPE_CC
);
FlowForm
flowForm
=
sysDeployFormService
.
selectSysDeployFormByDeployId
(
deploymentId
);
FlowForm
flowForm
=
sysDeployFormService
.
selectSysDeployFormByDeployId
(
deploymentId
);
List
<
Task
>
task2List
=
taskService
.
createTaskQuery
().
processInstanceId
(
taskVo
.
getInstanceId
()).
active
().
list
();
Task
nextTask
=
null
;
/**taskService.createTaskQuery()
.processInstanceId(taskVo.getInstanceId())
.singleResult();*/
if
(
CollUtil
.
isNotEmpty
(
task2List
)){
nextTask
=
task2List
.
get
(
0
);
}
if
(
nextTask
!=
null
)
{
Task
nextTask
=
taskService
.
createTaskQuery
()
.
processInstanceId
(
taskVo
.
getInstanceId
())
.
singleResult
();
if
(
nextTask
!=
null
){
if
(
task
.
getTaskDefinitionKey
().
equals
(
nextTask
.
getTaskDefinitionKey
())){
//* 当前节点是会签节点,没有走完
if
(
userType
.
equals
(
"user"
))
{
}
else
{
if
(
userType
.
equals
(
"user"
))
{
taskService
.
setAssignee
(
nextTask
.
getId
(),
approvalId
);
taskService
.
setAssignee
(
nextTask
.
getId
(),
approvalId
);
}
else
{
}
else
{
taskService
.
addCandidateGroup
(
nextTask
.
getId
(),
approvalId
);
taskService
.
addCandidateGroup
(
nextTask
.
getId
(),
approvalId
);
}
}
}
this
.
saveMyTaskFlow
(
task
.
getId
(),
nextTask
,
userType
,
approvalId
,
"待"
+
OptionType
,
null
);
this
.
saveMyTaskFlow
(
task
.
getId
(),
nextTask
,
userType
,
approvalId
,
"待"
+
OptionType
,
null
);
if
(
flowForm
!=
null
)
{
if
(
flowForm
!=
null
)
{
String
tabname
=
flowForm
.
getFormTableName
();
String
tabname
=
flowForm
.
getFormTableName
();
if
(
tabname
!=
null
&&!
tabname
.
equals
(
""
)&&
zdmc
!=
null
&&!
zdmc
.
equals
(
""
)&&
zdval
!=
null
&&!
zdval
.
equals
(
""
))
{
if
(
tabname
!=
null
&&
!
tabname
.
equals
(
""
)
&&
zdmc
!=
null
&&
!
zdmc
.
equals
(
""
)
&&
zdval
!=
null
&&
!
zdval
.
equals
(
""
))
{
String
formContent
=
zdmc
+
"="
+
zdval
;
String
formContent
=
zdmc
+
"="
+
zdval
;
FlowForm
flowFormben
=
new
FlowForm
();
FlowForm
flowFormben
=
new
FlowForm
();
flowFormben
.
setFormTableName
(
tabname
);
flowFormben
.
setFormTableName
(
tabname
);
flowFormben
.
setFormContent
(
formContent
);
flowFormben
.
setFormContent
(
formContent
);
flowFormben
.
setFormTp
(
"2"
);
flowFormben
.
setFormTp
(
"2"
);
flowFormben
.
setFormUrl
(
deploymentId
);
flowFormben
.
setFormUrl
(
deploymentId
);
if
(
tabname
!=
null
&&
tabname
.
equals
(
"st_plan_man"
))
{
if
(
tabname
!=
null
&&
tabname
.
equals
(
"st_plan_man"
))
{
flowFormben
.
setFormRules
(
nextTask
.
getName
());
flowFormben
.
setFormRules
(
nextTask
.
getName
());
}
else
{
}
else
{
flowFormben
.
setFormRules
(
null
);
flowFormben
.
setFormRules
(
null
);
}
}
//formRules 传递节点名
//formRules 传递节点名
sysDeployFormService
.
updateBisTabBpmStatus
(
flowFormben
);
sysDeployFormService
.
updateBisTabBpmStatus
(
flowFormben
);
}
}
}
}
}
else
{
}
else
{
//是最后一个 id 判断是最后一个节点
//是最后一个 id 判断是最后一个节点
if
(
flowForm
!=
null
)
{
if
(
flowForm
!=
null
)
{
String
tabname
=
flowForm
.
getFormTableName
();
String
tabname
=
flowForm
.
getFormTableName
();
if
(
tabname
!=
null
&&!
tabname
.
equals
(
""
)&&
zdmc
!=
null
&&!
zdmc
.
equals
(
""
)&&
zdval
!=
null
&&!
zdval
.
equals
(
""
)){
if
(
tabname
!=
null
&&
!
tabname
.
equals
(
""
)
&&
zdmc
!=
null
&&
!
zdmc
.
equals
(
""
)
&&
zdval
!=
null
&&
!
zdval
.
equals
(
""
))
{
String
formContent
=
zdmc
+
"="
+
zdval
;
String
formContent
=
zdmc
+
"="
+
zdval
;
FlowForm
flowFormben
=
new
FlowForm
();
FlowForm
flowFormben
=
new
FlowForm
();
flowFormben
.
setFormTableName
(
tabname
);
flowFormben
.
setFormTableName
(
tabname
);
flowFormben
.
setFormContent
(
formContent
);
flowFormben
.
setFormContent
(
formContent
);
flowFormben
.
setFormTp
(
"3"
);
flowFormben
.
setFormTp
(
"3"
);
flowFormben
.
setFormUrl
(
deploymentId
);
flowFormben
.
setFormUrl
(
deploymentId
);
flowFormben
.
setFormRules
(
""
);
flowFormben
.
setFormRules
(
""
);
sysDeployFormService
.
updateBisTabBpmStatus
(
flowFormben
);
sysDeployFormService
.
updateBisTabBpmStatus
(
flowFormben
);
}
}
}
}
}
}
}
}
}
...
@@ -1679,17 +1725,18 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -1679,17 +1725,18 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
if
(
Objects
.
nonNull
(
multiInstance
))
{
if
(
Objects
.
nonNull
(
multiInstance
))
{
// 会签 多实例
// 会签 多实例
String
collectionString
=
multiInstance
.
getInputDataItem
();
String
collectionString
=
multiInstance
.
getInputDataItem
();
if
(
values
!=
null
){
Object
colObj
=
values
.
get
(
collectionString
);
Object
colObj
=
values
.
get
(
collectionString
);
List
<
String
>
userNameList
=
null
;
List
<
String
>
userNameList
=
null
;
if
(
colObj
!=
null
)
{
if
(
colObj
!=
null
)
{
userNameList
=
(
List
)
colObj
;
userNameList
=
(
List
)
colObj
;
}
}
if
(
CollUtil
.
isNotEmpty
(
userNameList
)){
if
(
CollUtil
.
isNotEmpty
(
userNameList
))
{
// 待办人员从变量中获取 否则就是节点中配置的用户 sysUserFromTask
// 待办人员从变量中获取 否则就是节点中配置的用户 sysUserFromTask
List
<
SysUser
>
userList
=
Lists
.
newArrayList
();
List
<
SysUser
>
userList
=
Lists
.
newArrayList
();
for
(
String
username
:
userNameList
)
{
for
(
String
username
:
userNameList
)
{
SysUser
userByUsername
=
iFlowThirdService
.
getUserByUsername
(
username
);
SysUser
userByUsername
=
iFlowThirdService
.
getUserByUsername
(
username
);
if
(
userByUsername
==
null
)
{
if
(
userByUsername
==
null
)
{
throw
new
CustomException
(
username
+
" 用户名未找到"
);
throw
new
CustomException
(
username
+
" 用户名未找到"
);
}
else
{
}
else
{
userList
.
add
(
userByUsername
);
userList
.
add
(
userByUsername
);
...
@@ -1699,8 +1746,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -1699,8 +1746,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
}
else
{
}
else
{
// 变量中没有传入,写入节点中配置的用户
// 变量中没有传入,写入节点中配置的用户
List
<
String
>
collect_username
=
sysUserFromTask
.
stream
().
map
(
SysUser:
:
getUsername
).
collect
(
Collectors
.
toList
());
List
<
String
>
collect_username
=
sysUserFromTask
.
stream
().
map
(
SysUser:
:
getUsername
).
collect
(
Collectors
.
toList
());
values
.
put
(
collectionString
,
collect_username
);
values
.
put
(
collectionString
,
collect_username
);
}
}
}
}
else
{
}
else
{
// todo 读取自定义节点属性做些啥?
// todo 读取自定义节点属性做些啥?
//String dataType = userTask.getAttributeValue(ProcessConstants.NAMASPASE, ProcessConstants.PROCESS_CUSTOM_DATA_TYPE);
//String dataType = userTask.getAttributeValue(ProcessConstants.NAMASPASE, ProcessConstants.PROCESS_CUSTOM_DATA_TYPE);
...
@@ -2794,103 +2842,103 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -2794,103 +2842,103 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
zdval
=
formValues
.
get
(
"dataId"
).
toString
();
zdval
=
formValues
.
get
(
"dataId"
).
toString
();
tasktitle
=(
String
)
formValues
.
get
(
"tasktitle"
);
tasktitle
=(
String
)
formValues
.
get
(
"tasktitle"
);
}
}
Long
formId
=
Long
.
parseLong
(
nextTask
.
getFormKey
());
if
(
nextTask
.
getFormKey
()!=
null
)
{
FlowForm
sysForm
=
flowFormService
.
getById
(
formId
);
// 假设有这个方法
Long
formId
=
Long
.
parseLong
(
nextTask
.
getFormKey
());
FlowForm
sysForm
=
flowFormService
.
getById
(
formId
);
// 假设有这个方法
MyTask
myTask
=
new
MyTask
();
MyTask
myTask
=
new
MyTask
();
if
(
userType
.
equals
(
"user"
))
{
if
(
userType
.
equals
(
"user"
))
{
myTask
.
setUid
(
approvalId
);
myTask
.
setUid
(
approvalId
);
}
else
{
}
else
{
myTask
.
setRoleid
(
approvalId
);
myTask
.
setRoleid
(
approvalId
);
}
myTask
.
setTp
(
5
);
myTask
.
setTarget
(
nextTask
.
getName
());
if
(
zdval
!=
null
&&!
zdval
.
equals
(
""
)){
myTask
.
setTargetId
(
zdval
);
//zdval
}
myTask
.
setStTime
(
new
Date
());
myTask
.
setTaskName
(
messageTaskName
);
myTask
.
setName
(
nextTask
.
getName
());
myTask
.
setSta
(
0
);
myTask
.
setPriority
(
"M"
);
myTask
.
setDes
(
""
);
//myTask.setLinkAddr("/project/plan/StPlanManList?"+zdmc+"="+zdval);
if
(
sysForm
!=
null
){
if
(
sysForm
.
getFormTp
().
equals
(
"2"
)){
myTask
.
setLinkAddr
(
sysForm
.
getFormListurl
());
}
else
{
myTask
.
setLinkAddr
(
"/flowable/task/todo/index"
);
}
}
}
myTask
.
setTp
(
5
);
myTask
.
setTarget
(
nextTask
.
getName
());
if
(
zdval
!=
null
&&
!
zdval
.
equals
(
""
))
{
myTask
.
setTargetId
(
zdval
);
//zdval
}
myTaskService
.
save
(
myTask
);
myTask
.
setStTime
(
new
Date
());
myTask
.
setTaskName
(
messageTaskName
);
myTask
.
setName
(
nextTask
.
getName
());
myTask
.
setSta
(
0
);
myTask
.
setPriority
(
"M"
);
myTask
.
setDes
(
""
);
//myTask.setLinkAddr("/project/plan/StPlanManList?"+zdmc+"="+zdval);
if
(
sysForm
!=
null
)
{
if
(
sysForm
.
getFormTp
().
equals
(
"2"
))
{
myTask
.
setLinkAddr
(
sysForm
.
getFormListurl
());
}
else
{
myTask
.
setLinkAddr
(
"/flowable/task/todo/index"
);
}
}
myTaskService
.
save
(
myTask
);
//有了以上信息,可以向相关表写入 相关信息了
MyTaskFlow
taskFlow
=
new
MyTaskFlow
();
taskFlow
.
setTaskId
(
nextTask
.
getId
());
taskFlow
.
setProcDefId
(
nextTask
.
getProcessDefinitionId
());
taskFlow
.
setProcInsId
(
nextTask
.
getProcessInstanceId
());
taskFlow
.
setExecutionId
(
nextTask
.
getExecutionId
());
if
(
zdval
!=
null
&&
!
zdval
.
equals
(
""
))
{
taskFlow
.
setTargetId
(
zdval
);
}
//有了以上信息,可以向相关表写入 相关信息了
taskFlow
.
setDeployId
(
deploymentId
);
MyTaskFlow
taskFlow
=
new
MyTaskFlow
();
taskFlow
.
setFormTableName
(
sysForm
.
getFormTableName
());
taskFlow
.
setTaskId
(
nextTask
.
getId
());
if
(
userType
.
equals
(
"user"
))
{
taskFlow
.
setProcDefId
(
nextTask
.
getProcessDefinitionId
());
taskFlow
.
setUid
(
approvalId
);
taskFlow
.
setProcInsId
(
nextTask
.
getProcessInstanceId
());
}
else
{
taskFlow
.
setExecutionId
(
nextTask
.
getExecutionId
());
taskFlow
.
setRoleid
(
approvalId
);
if
(
zdval
!=
null
&&!
zdval
.
equals
(
""
)){
}
taskFlow
.
setTargetId
(
zdval
);
}
taskFlow
.
setDeployId
(
deploymentId
);
taskFlow
.
setTaskDefinitionKey
(
nextTask
.
getTaskDefinitionKey
());
taskFlow
.
setFormTableName
(
sysForm
.
getFormTableName
());
if
(
userType
.
equals
(
"user"
))
{
taskFlow
.
setUid
(
approvalId
);
}
else
{
taskFlow
.
setRoleid
(
approvalId
);
}
taskFlow
.
setTaskDefinitionKey
(
nextTask
.
getTaskDefinitionKey
()
);
myTaskFlowService
.
save
(
taskFlow
);
myTaskFlowService
.
save
(
taskFlow
);
//写抄送信息
if
(
copyUser
!=
null
&&
!
copyUser
.
equals
(
""
))
{
MyTaskFlowCc
myTaskFlowCc
=
new
MyTaskFlowCc
();
myTaskFlowCc
.
setCcid
(
copyUser
);
myTaskFlowCc
.
setTaskId
(
nextTask
.
getId
());
myTaskFlowCc
.
setProcDefId
(
nextTask
.
getProcessDefinitionId
());
myTaskFlowCc
.
setProcInsId
(
nextTask
.
getProcessInstanceId
());
myTaskFlowCc
.
setExecutionId
(
nextTask
.
getExecutionId
());
if
(
zdval
!=
null
&&
!
zdval
.
equals
(
""
))
{
myTaskFlowCc
.
setTargetId
(
zdval
);
}
//写抄送信息
myTaskFlowCc
.
setDeployId
(
deploymentId
);
if
(
copyUser
!=
null
&&!
copyUser
.
equals
(
""
)){
myTaskFlowCc
.
setFormTableName
(
sysForm
.
getFormTableName
());
MyTaskFlowCc
myTaskFlowCc
=
new
MyTaskFlowCc
();
if
(
userType
.
equals
(
"user"
))
{
myTaskFlowCc
.
setCcid
(
copyUser
);
myTaskFlowCc
.
setUid
(
approvalId
);
myTaskFlowCc
.
setTaskId
(
nextTask
.
getId
());
}
else
{
myTaskFlowCc
.
setProcDefId
(
nextTask
.
getProcessDefinitionId
());
myTaskFlowCc
.
setRoleid
(
approvalId
);
myTaskFlowCc
.
setProcInsId
(
nextTask
.
getProcessInstanceId
());
}
myTaskFlowCc
.
setExecutionId
(
nextTask
.
getExecutionId
());
if
(
zdval
!=
null
&&!
zdval
.
equals
(
""
)){
myTaskFlowCc
.
setTargetId
(
zdval
);
}
myTaskFlowCc
.
setDeployId
(
deploymentId
);
myTaskFlowCc
.
setTaskDefinitionKey
(
nextTask
.
getTaskDefinitionKey
());
myTaskFlowCc
.
setFormTableName
(
sysForm
.
getFormTableName
());
if
(
userType
.
equals
(
"user"
))
{
myTaskFlowCc
.
setUid
(
approvalId
);
}
else
{
myTaskFlowCc
.
setRoleid
(
approvalId
);
}
myTaskFlowCc
.
setTaskDefinitionKey
(
nextTask
.
getTaskDefinitionKey
());
myTaskFlowCcService
.
save
(
myTaskFlowCc
);
myTaskFlowCcService
.
save
(
myTaskFlowCc
);
}
}
String
tabname
=
sysForm
.
getFormTableName
();
if
(
tabname
!=
null
&&
!
tabname
.
equals
(
""
)
&&
zdmc
!=
null
&&
!
zdmc
.
equals
(
""
)
&&
zdval
!=
null
&&
!
zdval
.
equals
(
""
))
{
String
formContent
=
zdmc
+
"="
+
zdval
;
FlowForm
flowFormben
=
new
FlowForm
();
flowFormben
.
setFormTableName
(
tabname
);
flowFormben
.
setFormContent
(
formContent
);
flowFormben
.
setFormTp
(
approvalId
);
String
tabname
=
sysForm
.
getFormTableName
();
sysDeployFormService
.
updateBisTabUid
(
flowFormben
);
if
(
tabname
!=
null
&&!
tabname
.
equals
(
""
)&&
zdmc
!=
null
&&!
zdmc
.
equals
(
""
)&&
zdval
!=
null
&&!
zdval
.
equals
(
""
)){
}
String
formContent
=
zdmc
+
"="
+
zdval
;
FlowForm
flowFormben
=
new
FlowForm
();
flowFormben
.
setFormTableName
(
tabname
);
flowFormben
.
setFormContent
(
formContent
);
flowFormben
.
setFormTp
(
approvalId
);
sysDeployFormService
.
updateBisTabUid
(
flowFormben
);
}
}
...
@@ -2948,12 +2996,15 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -2948,12 +2996,15 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
}
}
taskFlowHis
.
setDeployId
(
DeployId
);
taskFlowHis
.
setDeployId
(
DeployId
);
FlowForm
tsysForm
=
null
;
if
(
task
.
getFormKey
()!=
null
)
{
Long
tformId
=
Long
.
parseLong
(
task
.
getFormKey
());
tsysForm
=
flowFormService
.
getById
(
tformId
);
// 假设有这个方法
if
(
tsysForm
!=
null
&&
tsysForm
.
getFormTableName
()
!=
null
)
{
taskFlowHis
.
setFormTableName
(
tsysForm
.
getFormTableName
());
}
Long
tformId
=
Long
.
parseLong
(
task
.
getFormKey
());
FlowForm
tsysForm
=
flowFormService
.
getById
(
tformId
);
// 假设有这个方法
if
(
tsysForm
!=
null
&&
tsysForm
.
getFormTableName
()!=
null
){
taskFlowHis
.
setFormTableName
(
tsysForm
.
getFormTableName
());
}
if
(
userType
.
equals
(
"user"
))
{
if
(
userType
.
equals
(
"user"
))
{
taskFlowHis
.
setUid
(
approvalId
);
taskFlowHis
.
setUid
(
approvalId
);
...
@@ -2977,24 +3028,24 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -2977,24 +3028,24 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
//写抄送信息
//写抄送信息
if
(
copyUser
!=
null
&&!
copyUser
.
equals
(
""
)){
if
(
copyUser
!=
null
&&!
copyUser
.
equals
(
""
))
{
MyTaskFlowCc
myTaskFlowCc
=
new
MyTaskFlowCc
();
MyTaskFlowCc
myTaskFlowCc
=
new
MyTaskFlowCc
();
myTaskFlowCc
.
setCcid
(
copyUser
);
myTaskFlowCc
.
setCcid
(
copyUser
);
myTaskFlowCc
.
setTaskId
(
task
.
getId
());
myTaskFlowCc
.
setTaskId
(
task
.
getId
());
myTaskFlowCc
.
setProcDefId
(
task
.
getProcessDefinitionId
());
myTaskFlowCc
.
setProcDefId
(
task
.
getProcessDefinitionId
());
myTaskFlowCc
.
setProcInsId
(
task
.
getProcessInstanceId
());
myTaskFlowCc
.
setProcInsId
(
task
.
getProcessInstanceId
());
myTaskFlowCc
.
setExecutionId
(
task
.
getExecutionId
());
myTaskFlowCc
.
setExecutionId
(
task
.
getExecutionId
());
if
(
zdval
!=
null
&&!
zdval
.
equals
(
""
))
{
if
(
zdval
!=
null
&&
!
zdval
.
equals
(
""
))
{
myTaskFlowCc
.
setTargetId
(
zdval
);
myTaskFlowCc
.
setTargetId
(
zdval
);
}
}
myTaskFlowCc
.
setDeployId
(
DeployId
);
myTaskFlowCc
.
setDeployId
(
DeployId
);
if
(
tsysForm
!=
null
&&
tsysForm
.
getFormTableName
()!=
null
)
{
if
(
tsysForm
!=
null
&&
tsysForm
.
getFormTableName
()
!=
null
)
{
myTaskFlowCc
.
setFormTableName
(
tsysForm
.
getFormTableName
());
myTaskFlowCc
.
setFormTableName
(
tsysForm
.
getFormTableName
());
}
}
if
(
userType
.
equals
(
"user"
))
{
if
(
userType
.
equals
(
"user"
))
{
myTaskFlowCc
.
setUid
(
approvalId
);
myTaskFlowCc
.
setUid
(
approvalId
);
}
else
{
}
else
{
myTaskFlowCc
.
setRoleid
(
approvalId
);
myTaskFlowCc
.
setRoleid
(
approvalId
);
...
@@ -3012,6 +3063,8 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
...
@@ -3012,6 +3063,8 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
}
}
}
}
}
...
...
zrch-risk-server-39/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml
浏览文件 @
5717cf8e
...
@@ -170,9 +170,9 @@ spring:
...
@@ -170,9 +170,9 @@ spring:
# username: root
# username: root
# password: ZhongRunChangHong/123
# password: ZhongRunChangHong/123
url
:
jdbc:mysql://
localhost:3306/zrch_stm_db_3.9_new
?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://
47.98.203.68:3306/zrch_stm_db_3.9
?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
123456
password
:
ZhongRunChangHong/123
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
# # shardingjdbc数据源
# # shardingjdbc数据源
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论