Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
4d4d7d7a
Commit
4d4d7d7a
authored
Jan 27, 2024
by
wanghang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务流转
parent
cab5b685
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
46 deletions
+49
-46
nonProdApplyNext.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
+11
-0
BsnMessageApplication.java
...sun/base/bsnMessage/appliction/BsnMessageApplication.java
+12
-5
BsnMessageApplicationImpl.java
...bsnMessage/appliction/impl/BsnMessageApplicationImpl.java
+19
-7
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+7
-34
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
View file @
4d4d7d7a
...
...
@@ -238,6 +238,17 @@ function rejectForm() {
}
function
checkThrough
(){
$
(
'#exPass'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/rejectNonProdApplyDept.ajax'
,
param
:
{
meId
:
getMeId
()},
success
:
function
(
data
)
{
Public
.
successTip
(
"检查通过!"
);
_self
.
close
();
}
});
}
/**
* 根据选择的驳回的部门生成输入框
...
...
topsun/src/main/java/com/huigou/topsun/base/bsnMessage/appliction/BsnMessageApplication.java
View file @
4d4d7d7a
...
...
@@ -26,16 +26,23 @@ public interface BsnMessageApplication {
void
publishTasks
(
String
bId
);
/**
* 保存
任务并发布
* 保存
并发布任务
*/
void
keepAndPublishTasks
(
BsnMessageSponsor
bsnMessageSponsor
);
/**
* 发布人驳回任务
* @param exMap put("驳回部门","驳回信息")
* @param
bi
d 表单id
* @param
mI
d 表单id
*/
void
rejectTasks
(
Map
<
String
,
Object
>
exMap
,
String
bid
);
void
rejectTasksByMeId
(
Map
<
String
,
Object
>
exMap
,
String
meId
);
/**
* 发布人驳回任务
* @param exMap put("驳回部门","驳回信息")
* @param bId 表单id
*/
void
rejectTasksByBId
(
Map
<
String
,
Object
>
exMap
,
String
bId
);
/**
* 发布人批准任务
...
...
@@ -45,9 +52,9 @@ public interface BsnMessageApplication {
/**
* 执行人提交任务
* @param mId
* @param m
e
Id
*/
void
submitTask
(
String
mId
);
void
submitTask
(
String
m
e
Id
);
/**
...
...
topsun/src/main/java/com/huigou/topsun/base/bsnMessage/appliction/impl/BsnMessageApplicationImpl.java
View file @
4d4d7d7a
...
...
@@ -83,9 +83,7 @@ public class BsnMessageApplicationImpl extends BaseApplication implements BsnMes
this
.
saveBsnMessageSponsor
(
sponsor
);
}
@Override
public
void
rejectTasks
(
Map
<
String
,
Object
>
exMap
,
String
bId
)
{
BsnMessageSponsor
sponsor
=
this
.
getSponsorByBId
(
bId
);
public
void
rejectTasks
(
Map
<
String
,
Object
>
exMap
,
BsnMessageSponsor
sponsor
)
{
if
(
sponsor
!=
null
)
{
List
<
BsnMessageExecute
>
brotherExecuteAll
=
sponsor
.
getExecutes
();
Map
<
String
,
BsnMessageExecute
>
executeMap
=
new
HashMap
<>();
...
...
@@ -120,10 +118,24 @@ public class BsnMessageApplicationImpl extends BaseApplication implements BsnMes
}
@Override
public
void
rejectTasksByMeId
(
Map
<
String
,
Object
>
exMap
,
String
mId
)
{
BsnMessageExecute
execute
=
messageExecuteRepository
.
findOne
(
mId
);
List
<
BsnMessageExecute
>
executes
=
this
.
getExecutesByMsId
(
execute
.
getMessageSponsorId
());
BsnMessageSponsor
sponsor
=
messageSponsorRepository
.
findOne
(
execute
.
getMessageSponsorId
());
sponsor
.
setExecutes
(
executes
);
this
.
rejectTasks
(
exMap
,
sponsor
);
}
@Override
public
void
submitTask
(
String
mId
)
{
BsnMessageExecute
execute
=
this
.
getExecuteByMeId
(
mId
);
public
void
rejectTasksByBId
(
Map
<
String
,
Object
>
exMap
,
String
bId
)
{
BsnMessageSponsor
sponsor
=
this
.
getSponsorByBId
(
bId
);
this
.
rejectTasks
(
exMap
,
sponsor
);
}
@Override
public
void
submitTask
(
String
meId
)
{
BsnMessageExecute
execute
=
this
.
getExecuteByMeId
(
meId
);
execute
.
setActive
(
ActiveStatus
.
FINISHED
.
getValue
());
this
.
saveBsnMessageExecute
(
execute
);
}
...
...
@@ -225,8 +237,8 @@ public class BsnMessageApplicationImpl extends BaseApplication implements BsnMes
}
public
BsnMessageExecute
getExecuteByMeId
(
String
i
d
)
{
return
messageExecuteRepository
.
findOne
(
i
d
);
public
BsnMessageExecute
getExecuteByMeId
(
String
mI
d
)
{
return
messageExecuteRepository
.
findOne
(
mI
d
);
}
//获取审批任务
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
4d4d7d7a
...
...
@@ -17,7 +17,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
public
class
NonProdApplyDeptApplicationImpl
extends
BaseApplication
implements
NonProdApplyDeptApplication
{
...
...
@@ -92,38 +91,12 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
@Override
public
void
rejectNonProdApplyDept
(
SDO
sdo
)
{
String
meId
=
sdo
.
getString
(
"meId"
);
// //需要被驳回的部门
// List<BsnMessageExecute> brotherExecuteAll = bsnMessageApplication.getBrotherExecuteByMeId(meId);
// Map<String, BsnMessageExecute> executeMap = new HashMap<>();
// for (BsnMessageExecute execute : brotherExecuteAll) {
// executeMap.put(execute.getTaskExecute(), execute);
// }
// // 遍历 SDO 对象中的 key
// for (String key : sdo.getProperties().keySet()) {
// // 如果存在对应的 BsnMessageExecute,进行操作
// BsnMessageExecute execute = executeMap.get(key);
// if (execute != null) {
// //更改驳回状态
// execute.setActive(ActiveStatus.REJECTED.getValue());
// //更新时间
// execute.setUpdateDate(new Date());
// //封装驳回详细
// BsnMessageReject reject = new BsnMessageReject();
// reject.setRejectMsg(sdo.getString(key));
// reject.setRejectDate(new Date());
// reject.setBsnExecuteId(execute.getId());
// execute.addReject(reject);
// bsnMessageApplication.saveBsnMessageExecute(execute);
// }
// }
// //当前审核任务回退
// BsnMessageExecute systemExecute = bsnMessageApplication.getExecuteByMeId(meId);
// systemExecute.setActive(ActiveStatus.SAVED.getValue());
// bsnMessageApplication.saveBsnMessageExecute(systemExecute);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
String
auditDept
=
sdo
.
getString
(
"auditDept"
);
List
<
String
>
deptList
=
Arrays
.
asList
(
auditDept
.
split
(
","
));
for
(
String
key
:
deptList
)
{
map
.
put
(
key
,
sdo
.
getString
(
key
));
}
bsnMessageApplication
.
rejectTasksByMeId
(
map
,
meId
);
}
}
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