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