|
@@ -449,14 +449,13 @@ public class UseMoneyEvent extends BaseController {
|
|
|
String flowInstanceId = flowInstance.get("id").toString();
|
|
|
UseMoneyDO entity = useMoneyService.findByInstanceId(flowInstanceId);
|
|
|
Project project = projectService.selectById(entity.getProjectId());
|
|
|
- String xmjlId = project.getXmjlId();
|
|
|
String userId = entity.getUserId();
|
|
|
List<PostRespDTO> postList = postApi.getPostByUser(userId).getCheckedData();
|
|
|
Set<String> postCodes = convertSet(postList, PostRespDTO::getCode);
|
|
|
List<DeptRespDTO> deptChildList = deptApi.getChildDeptList(entity.getDeptId()).getCheckedData();
|
|
|
Set<String> depts = convertSet(deptChildList, DeptRespDTO::getId);
|
|
|
depts.add(entity.getDeptId());
|
|
|
- if (entity != null && CollectionUtil.contains(postCodes, "fgslz") && userId.equals(xmjlId) && CollectionUtil.contains(depts, project.getZrbmId()) && userId.equals(xmjlId)) {
|
|
|
+ if (entity != null && CollectionUtil.contains(postCodes, "fgslz") && CollectionUtil.contains(depts, project.getZrbmId())) {
|
|
|
return "true";
|
|
|
}
|
|
|
return "false";
|
|
@@ -849,14 +848,13 @@ public class UseMoneyEvent extends BaseController {
|
|
|
String flowInstanceId = flowInstance.get("id").toString();
|
|
|
UseMoneyDO entity = useMoneyService.findByInstanceId(flowInstanceId);
|
|
|
Project project = projectService.selectById(entity.getProjectId());
|
|
|
- String xmjlId = project.getXmjlId();
|
|
|
String userId = entity.getUserId();
|
|
|
List<PostRespDTO> postList = postApi.getPostByUser(userId).getCheckedData();
|
|
|
Set<String> postCodes = convertSet(postList, PostRespDTO::getCode);
|
|
|
List<DeptRespDTO> deptChildList = deptApi.getChildDeptList(entity.getDeptId()).getCheckedData();
|
|
|
Set<String> depts = convertSet(deptChildList, DeptRespDTO::getId);
|
|
|
depts.add(entity.getDeptId());
|
|
|
- if (entity != null && CollectionUtil.contains(postCodes, "fgslz") && userId.equals(xmjlId) && !CollectionUtil.contains(depts, project.getZrbmId())) {
|
|
|
+ if (entity != null && CollectionUtil.contains(postCodes, "fgslz") && !CollectionUtil.contains(depts, project.getZrbmId())) {
|
|
|
return "true";
|
|
|
}
|
|
|
return "false";
|