|
|
|
@ -153,8 +153,8 @@ public class MenuController extends Controller {
|
|
|
|
|
@EmptyInterface({"menu_name", "url", "memo", "identity_ids"})
|
|
|
|
|
@IsNumericInterface({"parent_id", "sort_id", "for_school", "for_bureau"})
|
|
|
|
|
@LengthInterface({"menu_name,1,32", "memo,1,255"})
|
|
|
|
|
public void AddMenu(int parent_id, int sort_id, String identity_ids, String menu_name, String url, String memo, int for_school, int for_bureau) {
|
|
|
|
|
int menu_id = model.AddMenu(parent_id, sort_id, menu_name, url, memo, identity_ids, for_school, for_bureau);
|
|
|
|
|
public void AddMenu(int parent_id, int sort_id, String identity_ids, String menu_name, String url, String memo, int for_school, int for_bureau,String icon,int isFull) {
|
|
|
|
|
int menu_id = model.AddMenu(parent_id, sort_id, menu_name, url, memo, identity_ids, for_school, for_bureau,icon,isFull);
|
|
|
|
|
JSONObject map = new JSONObject();
|
|
|
|
|
map.put("menu_id", menu_id);
|
|
|
|
|
if (menu_id > 0) {
|
|
|
|
@ -190,8 +190,8 @@ public class MenuController extends Controller {
|
|
|
|
|
@EmptyInterface({"menu_name", "url", "memo", "identity_ids"})
|
|
|
|
|
@IsNumericInterface({"menu_id", "sort_id", "for_school", "for_bureau"})
|
|
|
|
|
@LengthInterface({"menu_name,1,32", "memo,1,255"})
|
|
|
|
|
public void UpdateMenu(int menu_id, int sort_id, String menu_name, String identity_ids, String url, String memo, int for_school, int for_bureau) {
|
|
|
|
|
model.UpdateMenu(menu_id, menu_name, sort_id, url, memo, identity_ids, for_school, for_bureau);
|
|
|
|
|
public void UpdateMenu(int menu_id, int sort_id, String menu_name, String identity_ids, String url, String memo, int for_school, int for_bureau,String icon,int isFull) {
|
|
|
|
|
model.UpdateMenu(menu_id, menu_name, sort_id, url, memo, identity_ids, for_school, for_bureau,icon,isFull);
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(true, "修改成功!"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -207,11 +207,11 @@ public class MenuController extends Controller {
|
|
|
|
|
public void selectMenuByDutyInCharge(String id) {
|
|
|
|
|
BaseModel bm = new BaseModel();
|
|
|
|
|
List<Record> list = bm.getOrgTypePrincipalshipById(id);
|
|
|
|
|
if (list == null || list.size() == 0) {
|
|
|
|
|
if (list == null || list.isEmpty()) {
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(false, "无法获取指定ID的信息!"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
Record record = list.get(0);
|
|
|
|
|
Record record = list.getFirst();
|
|
|
|
|
int duties_id, in_charge_id;
|
|
|
|
|
int level_id = record.getInt("level");
|
|
|
|
|
if (level_id == 4) {
|
|
|
|
|