Explorar el Código

修改单表代码生成模板

RuoYi hace 5 años
padre
commit
83460dfcb6

+ 2 - 2
ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/controller.java.vm

@@ -63,12 +63,12 @@ public class ${ClassName}Controller extends BaseController
63 63
      */
64 64
     @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
65 65
     @Log(title = "${functionName}", businessType = BusinessType.EXPORT)
66
-    @GetMapping("/export")
66
+    @PostMapping("/export")
67 67
     public void export(HttpServletResponse response, ${ClassName} ${className}) throws IOException
68 68
     {
69 69
         List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
70 70
         ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class);
71
-        return util.exportExcel(response, list, "${businessName}");
71
+        util.exportExcel(response, list, "${businessName}");
72 72
     }
73 73
 
74 74
     /**

+ 2 - 2
ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/domain.java.vm

@@ -5,9 +5,9 @@ import ${import};
5 5
 #end
6 6
 import org.apache.commons.lang3.builder.ToStringBuilder;
7 7
 import org.apache.commons.lang3.builder.ToStringStyle;
8
-import com.ruoyi.framework.aspectj.lang.annotation.Excel;
8
+import com.ruoyi.common.core.annotation.Excel;
9 9
 #if($table.crud)
10
-import com.ruoyi.framework.web.domain.BaseEntity;
10
+import com.ruoyi.common.core.web.domain.BaseEntity;
11 11
 #elseif($table.tree)
12 12
 import com.ruoyi.framework.web.domain.TreeEntity;
13 13
 #end