Browse Source

2023-12-6 代码生成器生成的文件名称修改

develop
zhousq 11 months ago
parent
commit
fcc42f6a61
  1. 10
      lzbi-generator/src/main/resources/vm/java/controller.java.vm

10
lzbi-generator/src/main/resources/vm/java/controller.java.vm

@ -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;
@ -71,10 +73,10 @@ public class ${ClassName}Controller extends BaseController
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
@Log(title = "${functionName}", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ${ClassName} ${ClassName})
public void export(HttpServletResponse response,${ClassName} ${ClassName})
{
List< ${ClassName}> list = ${className}Service.select ${ClassName}List(${ClassName});
ExcelUtil< ${ClassName}> util = new ExcelUtil<(${ClassName}>(${ClassName}.class);
List<${ClassName}> list = ${className}Service.select${ClassName}List(${ClassName});
ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class);
util.exportExcel(response, list, "${functionName}数据");
}

Loading…
Cancel
Save