Skip to content

Commit

Permalink
fix: excel import 关键字
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx authored Aug 8, 2024
1 parent fddf728 commit acda748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions multiple/主子Contoller.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public R removeChild(@RequestBody ${pk.attrType}[] ids) {
#else
@PreAuthorize("@pms.hasPermission('${moduleName}_${functionName}_export')" )
#end
public List<${ClassName}Entity> export(${ClassName}Entity ${className},${pk.attrType}[] ids) {
public List<${ClassName}Entity> exportExcel(${ClassName}Entity ${className},${pk.attrType}[] ids) {
return ${className}Service.list(Wrappers.lambdaQuery(${className}).in(ArrayUtil.isNotEmpty(ids), ${ClassName}Entity::$str.getProperty($pk.attrName), ids));
}

Expand All @@ -212,7 +212,7 @@ public R removeChild(@RequestBody ${pk.attrType}[] ids) {
#else
@PreAuthorize("@pms.hasPermission('${moduleName}_${functionName}_export')" )
#end
public R import(@RequestExcel List<${ClassName}Entity> ${className}List, BindingResult bindingResult) {
public R importExcel(@RequestExcel List<${ClassName}Entity> ${className}List, BindingResult bindingResult) {
return R.ok(${className}Service.saveBatch(${className}List));
}
}
4 changes: 2 additions & 2 deletions single/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public R removeById(@RequestBody ${pk.attrType}[] ids) {
#else
@PreAuthorize("@pms.hasPermission('${moduleName}_${functionName}_export')" )
#end
public List<${ClassName}Entity> export(${ClassName}Entity ${className},${pk.attrType}[] ids) {
public List<${ClassName}Entity> exportExcel(${ClassName}Entity ${className},${pk.attrType}[] ids) {
return ${className}Service.list(Wrappers.lambdaQuery(${className}).in(ArrayUtil.isNotEmpty(ids), ${ClassName}Entity::$str.getProperty($pk.attrName), ids));
}

Expand All @@ -197,7 +197,7 @@ public R removeById(@RequestBody ${pk.attrType}[] ids) {
#else
@PreAuthorize("@pms.hasPermission('${moduleName}_${functionName}_export')" )
#end
public R import(@RequestExcel List<${ClassName}Entity> ${className}List, BindingResult bindingResult) {
public R importExcel(@RequestExcel List<${ClassName}Entity> ${className}List, BindingResult bindingResult) {
return R.ok(${className}Service.saveBatch(${className}List));
}
}

0 comments on commit acda748

Please sign in to comment.