Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
9d0e236c
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
9d0e236c
编写于
12月 12, 2021
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
资产采购申请提交工作流选择审批人修改
上级
88284bc2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
61 deletion
+15
-61
skyeye-admin-assistant/src/main/java/com/skyeye/eve/controller/AssetApplyPurchaseController.java
...m/skyeye/eve/controller/AssetApplyPurchaseController.java
+0
-16
skyeye-admin-assistant/src/main/java/com/skyeye/eve/service/AssetApplyPurchaseService.java
...ava/com/skyeye/eve/service/AssetApplyPurchaseService.java
+0
-2
skyeye-admin-assistant/src/main/java/com/skyeye/eve/service/impl/AssetApplyPurchaseServiceImpl.java
...kyeye/eve/service/impl/AssetApplyPurchaseServiceImpl.java
+12
-37
skyeye-admin-assistant/src/main/resources/reqmapping/mapping/assistant.xml
...stant/src/main/resources/reqmapping/mapping/assistant.xml
+3
-6
未找到文件。
skyeye-admin-assistant/src/main/java/com/skyeye/eve/controller/AssetApplyPurchaseController.java
浏览文件 @
9d0e236c
...
...
@@ -138,22 +138,6 @@ public class AssetApplyPurchaseController {
assetApplyPurchaseService
.
updateAssetListToPurchaseById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: updateAssetListToPurchaseByIdInProcess
* @Description: 在工作流中编辑资产采购申请
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/AssetApplyPurchaseController/updateAssetListToPurchaseByIdInProcess"
)
@ResponseBody
public
void
updateAssetListToPurchaseByIdInProcess
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
assetApplyPurchaseService
.
updateAssetListToPurchaseByIdInProcess
(
inputObject
,
outputObject
);
}
/**
*
* @Title: editAssetPurchaseToRevoke
...
...
skyeye-admin-assistant/src/main/java/com/skyeye/eve/service/AssetApplyPurchaseService.java
浏览文件 @
9d0e236c
...
...
@@ -31,8 +31,6 @@ public interface AssetApplyPurchaseService {
public
void
updateAssetListToPurchaseById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
updateAssetListToPurchaseByIdInProcess
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
editAssetPurchaseToRevoke
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-admin-assistant/src/main/java/com/skyeye/eve/service/impl/AssetApplyPurchaseServiceImpl.java
浏览文件 @
9d0e236c
...
...
@@ -6,6 +6,7 @@ package com.skyeye.eve.service.impl;
import
cn.hutool.json.JSONUtil
;
import
com.skyeye.activiti.factory.ActivitiRunFactory
;
import
com.skyeye.activiti.service.ActivitiUserService
;
import
com.skyeye.common.constans.ActivitiConstants
;
import
com.skyeye.common.constans.AdminAssistantConstants
;
import
com.skyeye.common.object.InputObject
;
...
...
@@ -45,6 +46,9 @@ public class AssetApplyPurchaseServiceImpl implements AssetApplyPurchaseService
@Autowired
private
SysEnclosureDao
sysEnclosureDao
;
@Autowired
private
ActivitiUserService
activitiUserService
;
/**
* 资产采购关联的工作流的key
*/
...
...
@@ -91,11 +95,9 @@ public class AssetApplyPurchaseServiceImpl implements AssetApplyPurchaseService
map
.
put
(
"createTime"
,
DateUtil
.
getTimeAndToString
());
assetApplyPurchaseDao
.
insertAssetPurchaseMation
(
map
);
assetApplyPurchaseDao
.
insertAssetPurchaseGoodsMation
(
entitys
);
// 判断是否提交审批
if
(
"2"
.
equals
(
subType
)){
// 提交审批
ActivitiRunFactory
.
run
(
inputObject
,
outputObject
,
ACTIVITI_ASSET_PURCHAES_PAGE_KEY
).
submitToActivi
(
purchaseId
,
ActivitiConstants
.
APPROVAL_ID
);
}
// 操作工作流数据
activitiUserService
.
addOrEditToSubmit
(
inputObject
,
outputObject
,
Integer
.
parseInt
(
map
.
get
(
"subType"
).
toString
()),
ACTIVITI_ASSET_PURCHAES_PAGE_KEY
,
purchaseId
,
map
.
get
(
"approvalId"
).
toString
());
}
private
List
<
Map
<
String
,
Object
>>
getAssetMationList
(
OutputObject
outputObject
,
String
assetArticlesStr
,
String
purchaseId
,
String
state
)
throws
Exception
{
...
...
@@ -136,7 +138,8 @@ public class AssetApplyPurchaseServiceImpl implements AssetApplyPurchaseService
||
ActivitiConstants
.
ActivitiState
.
NO_PASS
.
getState
()
==
state
||
ActivitiConstants
.
ActivitiState
.
REVOKE
.
getState
()
==
state
){
// 草稿、审核不通过或者撤销状态下可以提交审批
ActivitiRunFactory
.
run
(
inputObject
,
outputObject
,
ACTIVITI_ASSET_PURCHAES_PAGE_KEY
).
submitToActivi
(
purchaseId
,
ActivitiConstants
.
APPROVAL_ID
);
activitiUserService
.
addOrEditToSubmit
(
inputObject
,
outputObject
,
2
,
ACTIVITI_ASSET_PURCHAES_PAGE_KEY
,
purchaseId
,
map
.
get
(
"approvalId"
).
toString
());
}
else
{
outputObject
.
setreturnMessage
(
"该数据状态已改变,请刷新页面!"
);
}
...
...
@@ -234,37 +237,9 @@ public class AssetApplyPurchaseServiceImpl implements AssetApplyPurchaseService
assetApplyPurchaseDao
.
updateAssetPurchaseMation
(
map
);
assetApplyPurchaseDao
.
deleteAssetPurchaseGoodsMationById
(
map
);
assetApplyPurchaseDao
.
insertAssetPurchaseGoodsMation
(
entitys
);
// 判断是否提交审批
if
(
"2"
.
equals
(
subType
)){
// 提交审批
ActivitiRunFactory
.
run
(
inputObject
,
outputObject
,
ACTIVITI_ASSET_PURCHAES_PAGE_KEY
).
submitToActivi
(
purchaseId
,
ActivitiConstants
.
APPROVAL_ID
);
}
}
/**
* 在工作流中编辑资产采购申请
*
* @param inputObject
* @param outputObject
* @throws Exception
*/
@Override
@Transactional
(
value
=
"transactionManager"
)
public
void
updateAssetListToPurchaseByIdInProcess
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
String
purchaseId
=
map
.
get
(
"id"
).
toString
();
//采购单主表id
// 处理数据
List
<
Map
<
String
,
Object
>>
entitys
=
getAssetMationList
(
outputObject
,
map
.
get
(
"assetListStr"
).
toString
(),
purchaseId
,
"1"
);
if
(
entitys
==
null
)
return
;
if
(
entitys
.
size
()
==
0
){
outputObject
.
setreturnMessage
(
"请选择资产"
);
return
;
}
assetApplyPurchaseDao
.
updateAssetPurchaseMation
(
map
);
assetApplyPurchaseDao
.
deleteAssetPurchaseGoodsMationById
(
map
);
assetApplyPurchaseDao
.
insertAssetPurchaseGoodsMation
(
entitys
);
// 编辑流程表参数
ActivitiRunFactory
.
run
(
inputObject
,
outputObject
,
ACTIVITI_ASSET_PURCHAES_PAGE_KEY
).
editApplyMationInActiviti
(
purchaseId
);
// 操作工作流数据
activitiUserService
.
addOrEditToSubmit
(
inputObject
,
outputObject
,
Integer
.
parseInt
(
map
.
get
(
"subType"
).
toString
()),
ACTIVITI_ASSET_PURCHAES_PAGE_KEY
,
purchaseId
,
map
.
get
(
"approvalId"
).
toString
());
}
/**
...
...
skyeye-admin-assistant/src/main/resources/reqmapping/mapping/assistant.xml
浏览文件 @
9d0e236c
...
...
@@ -1030,9 +1030,11 @@
<property
id=
"assetListStr"
name=
"assetListStr"
ref=
"required,json"
var=
"采购资产json串"
/>
<property
id=
"enclosureInfo"
name=
"enclosureInfo"
ref=
""
var=
"附件"
/>
<property
id=
"subType"
name=
"subType"
ref=
"required,num"
var=
"表单提交类型"
/>
<property
id=
"approvalId"
name=
"approvalId"
ref=
""
var=
"[提交审批]操作必填审批人"
/>
</url>
<url
id=
"asset020"
path=
"/post/AssetApplyPurchaseController/editAssetPurchaseToSubApproval"
val=
"资产采购申请提交审批"
allUse=
"1"
groupName=
"资产采购申请"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"资产采购主表单id"
/>
<property
id=
"approvalId"
name=
"approvalId"
ref=
""
var=
"[提交审批]操作必填审批人"
/>
</url>
<url
id=
"asset021"
path=
"/post/AssetApplyPurchaseController/queryAssetListPurchaseDetailsById"
val=
"资产采购申请详情"
allUse=
"2"
groupName=
"资产采购申请"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"资产采购主表单id"
/>
...
...
@@ -1049,12 +1051,7 @@
<property
id=
"enclosureInfo"
name=
"enclosureInfo"
ref=
""
var=
"附件"
/>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"资产领用主表单id"
/>
<property
id=
"subType"
name=
"subType"
ref=
"required,num"
var=
"表单提交类型"
/>
</url>
<url
id=
"asset034"
path=
"/post/AssetApplyPurchaseController/updateAssetListToPurchaseByIdInProcess"
val=
"在工作流中编辑资产采购申请"
allUse=
"2"
groupName=
"资产采购申请"
>
<property
id=
"remark"
name=
"remark"
ref=
""
var=
"描述"
/>
<property
id=
"assetListStr"
name=
"assetListStr"
ref=
"required,json"
var=
"采购资产json串"
/>
<property
id=
"enclosureInfo"
name=
"enclosureInfo"
ref=
""
var=
"附件"
/>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"资产采购主表单id"
/>
<property
id=
"approvalId"
name=
"approvalId"
ref=
""
var=
"[提交审批]操作必填审批人"
/>
</url>
<url
id=
"asset037"
path=
"/post/AssetApplyPurchaseController/editAssetPurchaseToRevoke"
val=
"撤销资产采购申请"
allUse=
"1"
groupName=
"资产采购申请"
>
<property
id=
"processInstanceId"
name=
"processInstanceId"
ref=
"required"
var=
"流程id"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录