| | |
| | | package com.ruoyi.web.controller.zhang; |
| | | |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZfRelation; |
| | | import com.ruoyi.domain.dto.EmpowerDto; |
| | | |
| | | import com.ruoyi.domain.dto.Genealogy; |
| | | import com.ruoyi.domain.dto.GenealogyExportDto; |
| | | import com.ruoyi.domain.dto.RelationDto; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.websocket.server.PathParam; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.regex.Pattern; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 授权 |
| | | */ |
| | | @PostMapping("/empower") |
| | | public AjaxResult empower(@RequestBody EmpowerDto empowerDto){ |
| | | |
| | | return zInfoUserService.empower(empowerDto); |
| | | } |
| | | // /** |
| | | // * 授权 |
| | | // */ |
| | | // @PostMapping("/empower") |
| | | // public AjaxResult empower(@RequestBody EmpowerDto empowerDto){ |
| | | // |
| | | // return zInfoUserService.empower(empowerDto); |
| | | // } |
| | | |
| | | /** |
| | | * 家根网 |
| | |
| | | util.exportExcel(response,list,"家谱记录数据"); |
| | | } |
| | | |
| | | /** |
| | | * 家谱2.0 |
| | | */ |
| | | @GetMapping("/list/genealogy2") |
| | | public AjaxResult listGenealogy2(Genealogy genealogy){ |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | return zInfoUserService.listGenealogy2(genealogy,pageNum,pageSize); |
| | | } |
| | | |
| | | |
| | | |
| | | } |