|  | @@ -316,7 +316,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public WebPanelResult selectWebIndexData(PanelListDto req) {
 | 
	
		
			
				|  |  |          Long confirmButton = 2353L;
 | 
	
		
			
				|  |  | -        LambdaQueryWrapper<Question> wrapper = generateCurUserTaskWrapper(req, confirmButton, null, null);
 | 
	
		
			
				|  |  | +        LambdaQueryWrapper<Question> wrapper = generateCurUserTaskWrapper(req, confirmButton, null, null, SecurityUtils.getUserId());
 | 
	
		
			
				|  |  |          int waitConfirm = 0;
 | 
	
		
			
				|  |  |          if (!wrapper.isEmptyOfWhere()) {
 | 
	
		
			
				|  |  |              waitConfirm = baseMapper.selectCount(wrapper).intValue();
 | 
	
	
		
			
				|  | @@ -339,7 +339,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public WebPanelResult selectWebIndexData2(PanelListDto req) {
 | 
	
		
			
				|  |  | -        LambdaQueryWrapper<Question> wrapper = generateCurUserTaskWrapper(req, null, null, 2355L);
 | 
	
		
			
				|  |  | +        LambdaQueryWrapper<Question> wrapper = generateCurUserTaskWrapper(req, null, null, 2355L, SecurityUtils.getUserId());
 | 
	
		
			
				|  |  |          int waitRectification = 0;
 | 
	
		
			
				|  |  |          if (!wrapper.isEmptyOfWhere()) {
 | 
	
		
			
				|  |  |              waitRectification = baseMapper.selectCount(wrapper).intValue();
 | 
	
	
		
			
				|  | @@ -361,14 +361,14 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
 | 
	
		
			
				|  |  |       * @return
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public List<PanelListVo> selectCurUserTaskList(PanelListDto panelListDto) {
 | 
	
		
			
				|  |  | +    public List<PanelListVo> selectCurUserTaskList(PanelListDto panelListDto, Long userId) {
 | 
	
		
			
				|  |  |          Long confirmButton = 2353L;
 | 
	
		
			
				|  |  |          Long dissentButton = 2354L;
 | 
	
		
			
				|  |  |          Long reformButton = 2355L;
 | 
	
		
			
				|  |  | -        return selectCurUserTaskList(panelListDto, confirmButton, dissentButton, reformButton);
 | 
	
		
			
				|  |  | +        return selectCurUserTaskList(panelListDto, confirmButton, dissentButton, reformButton, userId);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private LambdaQueryWrapper<Question> generateCurUserTaskWrapper(PanelListDto panelListDto, Long confirmButton, Long dissentButton, Long reformButton) {
 | 
	
		
			
				|  |  | +    private LambdaQueryWrapper<Question> generateCurUserTaskWrapper(PanelListDto panelListDto, Long confirmButton, Long dissentButton, Long reformButton, Long userId) {
 | 
	
		
			
				|  |  |          LambdaQueryWrapper<Question> wrapper = new LambdaQueryWrapper<>();
 | 
	
		
			
				|  |  |          List<Long> btns = new ArrayList<>();
 | 
	
		
			
				|  |  |          if (ObjectUtil.isNotNull(confirmButton)) {
 | 
	
	
		
			
				|  | @@ -385,7 +385,11 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
 | 
	
		
			
				|  |  |              throw new ServiceException("至少需要一个按钮权限");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        List<Long> ownPermission = remoteUserService.checkUserPermission(btns, SecurityUtils.getUserId(), SecurityConstants.INNER);
 | 
	
		
			
				|  |  | +        if (!ObjectUtil.equal(userId, SecurityUtils.getUserId())) {
 | 
	
		
			
				|  |  | +            log.error("用户id不一致:" + userId + "-" + SecurityUtils.getUserId());
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        List<Long> ownPermission = remoteUserService.checkUserPermission(btns, userId, SecurityConstants.INNER);
 | 
	
		
			
				|  |  |          if (ownPermission.contains(reformButton)) {
 | 
	
		
			
				|  |  |              wrapper.or(w -> w.eq(Question::getOrgId, panelListDto.getOrgId()).eq(Question::getReformStatus, QuestionReformEnum.Unreform.getValue()));
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -395,15 +399,15 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          if (ownPermission.contains(dissentButton)) {
 | 
	
		
			
				|  |  | -            wrapper.or(w -> w.eq(Question::getSubmitorId, SecurityUtils.getUserId())
 | 
	
		
			
				|  |  | +            wrapper.or(w -> w.eq(Question::getSubmitorId, userId)
 | 
	
		
			
				|  |  |                      .eq(Question::getConfirmStatus, QuestionConfirmEnum.Dissent.getValue()));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +       
 | 
	
		
			
				|  |  |          return wrapper;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private List<PanelListVo> selectCurUserTaskList(PanelListDto panelListDto, Long confirmButton, Long dissentButton, Long reformButton) {
 | 
	
		
			
				|  |  | -        LambdaQueryWrapper<Question> wrapper = generateCurUserTaskWrapper(panelListDto, confirmButton, dissentButton, reformButton);
 | 
	
		
			
				|  |  | +    private List<PanelListVo> selectCurUserTaskList(PanelListDto panelListDto, Long confirmButton, Long dissentButton, Long reformButton, Long userId) {
 | 
	
		
			
				|  |  | +        LambdaQueryWrapper<Question> wrapper = generateCurUserTaskWrapper(panelListDto, confirmButton, dissentButton, reformButton, userId);
 | 
	
		
			
				|  |  |          wrapper.orderByAsc(Question::getConfirmStatus);
 | 
	
		
			
				|  |  |          if (wrapper.isEmptyOfWhere()) {
 | 
	
		
			
				|  |  |              return new ArrayList<>();
 |