This commit is contained in:
wyd 2024-04-25 10:52:21 +08:00
parent c2a8013dde
commit 885c1a0f81
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -4,9 +4,11 @@ import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jg.framework.aspectj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;