| | |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.Meeting; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZfClan; |
| | | import com.ruoyi.domain.ZfClean; |
| | | import com.ruoyi.domain.*; |
| | | import com.ruoyi.service.ZInfoUserService; |
| | | import com.ruoyi.service.ZfClanService; |
| | | import com.ruoyi.system.mapper.SysUserRoleMapper; |
| | |
| | | */ |
| | | @Log(title = "家族记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, @RequestBody ZfClan zfClean) |
| | | public void export(HttpServletResponse response, ZfClan zfClean) |
| | | { |
| | | List<ZfClan> list = zfClanService.selectByCondition(zfClean); |
| | | // log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfClan> util = new ExcelUtil<>(ZfClan.class); |
| | | util.exportExcel(response, list, "家族号"); |
| | | } |
| | | |
| | | /** |
| | | * 导出家庭资产记录列表 |
| | | */ |
| | | @Log(title = "家庭大事件记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export1(HttpServletResponse response, @PathVariable Long[] ids) { |
| | | for (Long id :ids) System.out.println("//////"+id); |
| | | List<ZfClan> list = zfClanService.selectByIds(ids); |
| | | ExcelUtil<ZfClan> util = new ExcelUtil<ZfClan>(ZfClan.class); |
| | | util.exportExcel(response, list, "家庭资产记录数据"); |
| | | } |
| | | } |