|
|
@ -1,5 +1,7 @@ |
|
|
|
package ${packageName}.controller; |
|
|
|
|
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import java.util.List; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
@ -74,7 +76,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
public void export(HttpServletResponse response,${ClassName} ${ClassName}) |
|
|
|
{ |
|
|
|
List<${ClassName}> list = ${className}Service.select${ClassName}List(${ClassName}); |
|
|
|
ExcelUtil< ${ClassName}> util = new ExcelUtil<(${ClassName}>(${ClassName}.class); |
|
|
|
ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class); |
|
|
|
util.exportExcel(response, list, "${functionName}数据"); |
|
|
|
} |
|
|
|
|
|
|
|