Pārlūkot izejas kodu

增加查询条件

gaodd 1 gadu atpakaļ
vecāks
revīzija
ac26f7794f

+ 4 - 1
src/main/java/com/chinaitop/depot/system/controller/FuncInfoController.java

@@ -78,9 +78,12 @@ public class FuncInfoController {
78
 	 */
78
 	 */
79
 	@RequestMapping(value="/getFuncList", method = RequestMethod.GET)
79
 	@RequestMapping(value="/getFuncList", method = RequestMethod.GET)
80
 	@ApiOperation(value="功能列表", notes = "查询功能列表")
80
 	@ApiOperation(value="功能列表", notes = "查询功能列表")
81
-	public List<FuncInfo> getFuncInfo() {
81
+	public List<FuncInfo> getFuncInfo(String funcName) {
82
 		FuncInfoExample example = new FuncInfoExample();
82
 		FuncInfoExample example = new FuncInfoExample();
83
 		Criteria criteria = example.createCriteria();
83
 		Criteria criteria = example.createCriteria();
84
+		if (StringUtils.isNotBlank(funcName)) {
85
+			criteria.andFuncNameLike("%" + funcName + "%");
86
+		}
84
 		return funcInfoService.queryByExample(example);	
87
 		return funcInfoService.queryByExample(example);	
85
 	}
88
 	}
86
 	
89