| | |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.service.business.CompanyService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:company:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<Company> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(Company.class).exportData(companyService.findPage(pageWrap).getRecords(), "组织信息表", response); |
| | | ExcelExporter.build(Company.class).export(companyService.findPage(pageWrap).getRecords(), "组织信息表", response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |