| | |
| | | package com.ruoyi.web.controller.zhang; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZCertificate; |
| | | import com.ruoyi.domain.ZfEvent; |
| | | import com.ruoyi.domain.ZfFamily; |
| | | import com.ruoyi.domain.dto.UserInfoDto; |
| | |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | |
| | | Integer clanId=null; |
| | | System.out.println("5050"+userId); |
| | | ZInfoUser infoBysysId = zInfoUserService.getInfoBysysId(userId); |
| | | if(infoBysysId !=null) clanId=infoBysysId.getClanId(); |
| | | List<ZfFamily> list = new ArrayList<>(); |
| | | if(clanId != null) { |
| | | list.addAll(zfFamilyService.getByClanId(clanId.longValue())); |
| | | } |
| | | Integer clanId = user.getClanId(); |
| | | LambdaQueryWrapper<ZfFamily> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(ZfFamily::getClanId,clanId); |
| | | List<ZfFamily> list = zfFamilyService.list(lqw); |
| | | //.list(); |
| | | |
| | | |
| | | System.out.println("------------------"); |
| | | ExcelUtil<ZfFamily> util = new ExcelUtil<>(ZfFamily.class); |
| | | util.exportExcel(response, list, "家庭大事件记录数据"); |
| | | util.exportExcel(response, list, "家庭号数据"); |
| | | |
| | | } |
| | | |