| | |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.information.excel.InforExcel; |
| | | import org.springblade.modules.information.excel.InforImporter; |
| | | import org.springblade.modules.member.excel.memberExcel; |
| | | import org.springblade.modules.shareholder.entity.Shareholder; |
| | | import org.springblade.modules.shareholder.excel.shareExcel; |
| | | import org.springblade.modules.shareholder.excel.shareImporter; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 控制器 |
| | |
| | | return R.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出模板 |
| | | */ |
| | | @GetMapping("export-template") |
| | | @ApiOperation(value = "导出模板") |
| | | public void exportMember(HttpServletResponse response) { |
| | | List<shareExcel> list = new ArrayList<>(); |
| | | shareExcel share = new shareExcel(); |
| | | share.setCreditcode("xx12351214112"); |
| | | share.setShareholder("张三"); |
| | | share.setShareholdingratio("10"); |
| | | share.setCardid("360***********0001"); |
| | | share.setCell("131********"); |
| | | share.setCapital("50"); |
| | | share.setCapitaltime("2020/01/01"); |
| | | list.add(share); |
| | | ExcelUtil.export(response, "出资人数据导入模板", "出资人导入数据表", list, shareExcel.class); |
| | | } |
| | | |
| | | } |