This commit is contained in:
wyd 2024-04-25 09:45:07 +08:00
parent 6db4b036b0
commit c2a8013dde
4 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,8 @@ package ${packageName}.controller;
import java.util.List; import java.util.List;
import javax.annotation.Resource; import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletResponse;
import com.jg.framework.aspectj.lang.enums.BusinessType;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import com.jg.common.utils.poi.ExcelUtil; import com.jg.common.utils.poi.ExcelUtil;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@ -105,6 +107,7 @@ public class ${ClassName}Controller extends BaseController{
* 导出${functionName}列表 * 导出${functionName}列表
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
@ApiOperation(value = "${functionName}导出信息", notes = "${functionName}导出信息")
@Log(title = "${functionName}", businessType = BusinessType.EXPORT) @Log(title = "${functionName}", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, ${ClassName} ${className}) public void export(HttpServletResponse response, ${ClassName} ${className})

View File

@ -8,6 +8,7 @@ import com.jg.framework.aspectj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;

View File

@ -703,7 +703,7 @@
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() handleExport()
{ {
this.download('${moduleName}/${businessName}/export', { this.download('${moduleName}/export', {
...this.queryParams ...this.queryParams
}, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`) }, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`)
} }

View File

@ -582,7 +582,7 @@ function handle${subClassName}SelectionChange(selection) {
#end #end
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download('${moduleName}/${businessName}/export', { proxy.download('${moduleName}/export', {
...queryParams.value ...queryParams.value
}, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`) }, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`)
} }