master
周文涛 2 years ago
parent 78a192e5f0
commit afc00d8f73

@ -70,8 +70,8 @@ public class ${entityName}Controller extends BaseController {
*/ */
@ApiOperation("全部") @ApiOperation("全部")
@GetMapping("/listAll") @GetMapping("/listAll")
public AjaxResult listAll() { public AjaxResult listAll(Query${entityName}VO query${entityName}VO) {
return ${entityName?uncap_first}Service.listAll(); return ${entityName?uncap_first}Service.listAll(query${entityName}VO);
} }
/** /**

@ -25,10 +25,10 @@ public interface I${entityName}Service extends IService<${entityName}> {
/** /**
* 全部 * 全部
*/ */
AjaxResult listAll(); AjaxResult listAll(Query${entityName}VO query${entityName}VO);
/** /**
* 获取详情信息 * 详情
*/ */
AjaxResult get${entityName}Detail(String id); AjaxResult get${entityName}Detail(String id);

@ -78,7 +78,7 @@ public class ${entityName}ServiceImpl extends ServiceImpl<${entityName}Mapper, $
* 全部 * 全部
* return * return
*/ */
public AjaxResult listAll(){ public AjaxResult listAll(Query${entityName}VO query${entityName}VO){
List<${entityName}DTO> list=new ArrayList(); List<${entityName}DTO> list=new ArrayList();
QueryWrapper<${entityName}> queryWrapper=new QueryWrapper(); QueryWrapper<${entityName}> queryWrapper=new QueryWrapper();
List<${entityName}> dbEntityList = this.list(queryWrapper); List<${entityName}> dbEntityList = this.list(queryWrapper);
@ -93,7 +93,7 @@ public class ${entityName}ServiceImpl extends ServiceImpl<${entityName}Mapper, $
} }
/** /**
* 获取详情信息 * 详情
* return * return
*/ */
public AjaxResult get${entityName}Detail(String id){ public AjaxResult get${entityName}Detail(String id){

Loading…
Cancel
Save