| | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.sangeshenbian.SystemUserVo; |
| | | import com.panzhihua.common.redis.RedisUtils; |
| | | import com.panzhihua.sangeshenbian.config.AutoColumnWidthStrategy; |
| | | import com.panzhihua.sangeshenbian.dao.ComplaintMapper; |
| | | import com.panzhihua.sangeshenbian.enums.AuditStatusEnum; |
| | | import com.panzhihua.sangeshenbian.enums.ComplaintExportEnum; |
| | |
| | | //审核状态为通过,则权限给到上报审核的这一层 |
| | | if (systemUserByPhone.isPresent()) { |
| | | SystemUser systemUser = systemUserByPhone.get(); |
| | | Integer accountLevel = systemUser.getAccountLevel(); |
| | | Integer isAdmin = systemUser.getIsAdmin(); |
| | | //非党员用户,必须是管理员有权限 |
| | | if (accountLevel.compareTo(one.getReportType()) == 0 && accountLevel != 5 && 1 == isAdmin) { |
| | | if (identity.compareTo(one.getReportType()) == 0 && identity != 5 && 1 == isAdmin) { |
| | | vo.setListControlsButtonStatus(0); |
| | | } |
| | | } |
| | |
| | | response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); |
| | | EasyExcel.write(response.getOutputStream(), ComplaintExcel.class) |
| | | .sheet("诉求数据") |
| | | .registerWriteHandler(new AutoColumnWidthStrategy()) |
| | | .doWrite(complaintExcels); |
| | | } |
| | | |