Browse Source

BUG修改: 督察任务中排除已撤回任务的批示留言展示

在TaskByTypeController中,现在督办人员仅在任务类型不为"LevMsgTaskWithDraw"时才显示区长书记、
区领导批示留言的公开范围。这避免了已撤回任务的批示留言错误地展示给督办人员。
wanyuan 8 months ago
parent
commit
bbc13b07ab

+ 8 - 7
tip-front/src/main/java/com/minto/app/task/controller/TaskByTypeController.java

@@ -8076,13 +8076,14 @@ public class TaskByTypeController extends BaseController{
 
                     //督办人员可以设置区长书记、区领导批示留言公开范围
                     model.put("isSupervise", TaskKaizhouUtil.isSupervise(taskMemberBeans, pid));
-                    Object[] objectArray = TaskKaizhouUtil.findShowKaiZhouLeaderPiShiBehSummarys(taskId,
-                            taskMemberBeans, currentMemberBeans, pid);
-                    List<BehSummaryBean> showList = (List<BehSummaryBean>)objectArray[0];
-                    List<BehSummaryBean> notShowList = (List<BehSummaryBean>)objectArray[1];
-                    AppContext.putThreadContext("showInstructionsTaskLimitScope", true);
-                    AppContext.putThreadContext("instructionsTaskLimitScopeShowIds",showList.stream().map(BehSummaryBean::getId).toList());
-
+                    if(!"LevMsgTaskWithDraw".equals(pType)){
+                        Object[] objectArray = TaskKaizhouUtil.findShowKaiZhouLeaderPiShiBehSummarys(taskId,
+                                taskMemberBeans, currentMemberBeans, pid);
+                        List<BehSummaryBean> showList = (List<BehSummaryBean>)objectArray[0];
+                        List<BehSummaryBean> notShowList = (List<BehSummaryBean>)objectArray[1];
+                        AppContext.putThreadContext("showInstructionsTaskLimitScope", true);
+                        AppContext.putThreadContext("instructionsTaskLimitScopeShowIds",showList.stream().map(BehSummaryBean::getId).toList());
+                    }
                     // 查询动态
                     ListObject result = null;
                     ListObject managerResult = null;