Commit 3073be76 authored by fangxinjiang's avatar fangxinjiang

代码生成器调整

parent f6048d96
...@@ -68,7 +68,7 @@ public class ${className}Controller { ...@@ -68,7 +68,7 @@ public class ${className}Controller {
*/ */
@ApiOperation(value = "简单分页查询") @ApiOperation(value = "简单分页查询")
@GetMapping("/page") @GetMapping("/page")
public R<IPage<${className}>> get${className}Page(Page<${className}> page, ${className} ${classname}) { public R<IPage<${className}>> get${className}Page(Page<${className}> page, ${className}SearchVo ${classname}) {
return new R<>(${classname}Service.get${className}Page(page,${classname})); return new R<>(${classname}Service.get${className}Page(page,${classname}));
} }
/** /**
...@@ -79,7 +79,7 @@ public class ${className}Controller { ...@@ -79,7 +79,7 @@ public class ${className}Controller {
@Operation(summary = "不分页查询", description = "不分页查询") @Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage" ) @PostMapping("/noPage" )
//@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_get')" ) //@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_get')" )
public R<List<${className}>> get${className}NoPage(@RequestBody ${className} ${classname}) { public R<List<${className}>> get${className}NoPage(@RequestBody ${className}SearchVo ${classname}) {
return R.ok(${classname}Service.list(Wrappers.query(${classname}))); return R.ok(${classname}Service.list(Wrappers.query(${classname})));
} }
......
...@@ -32,7 +32,7 @@ public interface ${className}Service extends IService<${className}> { ...@@ -32,7 +32,7 @@ public interface ${className}Service extends IService<${className}> {
* @param ${classname} ${comments} * @param ${classname} ${comments}
* @return * @return
*/ */
IPage<${className}> get${className}Page(Page<${className}> page, ${className} ${classname}); IPage<${className}> get${className}Page(Page<${className}> page, ${className}SearchVo ${classname});
R<List<ErrorMessage>> importDiy(InputStream inputStream); R<List<ErrorMessage>> importDiy(InputStream inputStream);
......
...@@ -36,7 +36,7 @@ public class ${className}ServiceImpl extends ServiceImpl<${className}Mapper, ${c ...@@ -36,7 +36,7 @@ public class ${className}ServiceImpl extends ServiceImpl<${className}Mapper, ${c
* @return * @return
*/ */
@Override @Override
public IPage<${className}> get${className}Page(Page<${className}> page, ${className} ${classname}){ public IPage<${className}> get${className}Page(Page<${className}> page, ${className}SearchVo ${classname}){
return baseMapper.get${className}Page(page,${classname}); return baseMapper.get${className}Page(page,${classname});
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment