Kaynağa Gözat

增加查询条件

gaodd 1 yıl önce
ebeveyn
işleme
ac26f7794f

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

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