Commit 6c77f63e authored by 张龙发's avatar 张龙发

菜单加星修复

parent 7983983a
......@@ -20,6 +20,7 @@ import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.kit.Kv;
import com.jfinal.kit.Ret;
import com.jfinal.kit.StrKit;
import com.jfinal.plugin.activerecord.Db;
/**
......@@ -160,7 +161,7 @@ public class MenuController extends Controller {
*/
private Integer exist(Integer menuId, List<MenuStar> stars) {
for (MenuStar star : stars) {
if (menuId.intValue() == star.getMenuId().intValue()) {
if (StrKit.equals(menuId.toString(), star.getMenuId().toString())) {
return star.getId();
}
}
......
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