diff --git a/src/main/java/net/mingsoft/cms/action/CategoryAction.java b/src/main/java/net/mingsoft/cms/action/CategoryAction.java index 647e2c9e..43e5addd 100644 --- a/src/main/java/net/mingsoft/cms/action/CategoryAction.java +++ b/src/main/java/net/mingsoft/cms/action/CategoryAction.java @@ -85,7 +85,6 @@ public class CategoryAction extends BaseAction { @RequestMapping("/list") @ResponseBody public ResultData list(@ModelAttribute @ApiIgnore CategoryEntity category, HttpServletResponse response, HttpServletRequest request, @ApiIgnore ModelMap model, BindingResult result) { - category.setAppId(BasicUtil.getAppId()); BasicUtil.startPage(); List categoryList = categoryBiz.query(category); return ResultData.build().success(new EUListBean(categoryList,(int) BasicUtil.endPage(categoryList).getTotal())); @@ -112,7 +111,6 @@ public class CategoryAction extends BaseAction { if(category.getId()==null) { return ResultData.build().error(); } - category.setAppId(BasicUtil.getAppId()); CategoryEntity _category = (CategoryEntity)categoryBiz.getById(category.getId()); return ResultData.build().success(_category); } @@ -170,7 +168,6 @@ public class CategoryAction extends BaseAction { } //获取拼音 - category.setAppId(BasicUtil.getAppId()); categoryBiz.saveEntity(category); return ResultData.build().success(category); } @@ -244,7 +241,6 @@ public class CategoryAction extends BaseAction { String pingYin = PinYinUtil.getPingYin(category.getCategoryTitle()); CategoryEntity categoryEntity=new CategoryEntity(); categoryEntity.setCategoryPinyin(pingYin); - categoryEntity.setAppId(BasicUtil.getAppId()); CategoryEntity categoryBizEntity = (CategoryEntity)categoryBiz.getEntity(categoryEntity); category.setCategoryPinyin(pingYin); //如果存在此拼音栏目则拼接上id @@ -254,14 +250,12 @@ public class CategoryAction extends BaseAction { //判断是否选择子级为所属栏目 CategoryEntity _category = new CategoryEntity(); _category.setCategoryParentId(category.getId()); - _category.setAppId(BasicUtil.getAppId()); List categoryList = categoryBiz.queryChilds(_category); for(CategoryEntity item:categoryList){ if(item.getId().equals(category.getCategoryId())){ return ResultData.build().error(getResString("cannot.select.child")); } } - category.setAppId(BasicUtil.getAppId()); categoryBiz.updateEntity(category); return ResultData.build().success(category); } diff --git a/src/main/java/net/mingsoft/cms/action/ContentAction.java b/src/main/java/net/mingsoft/cms/action/ContentAction.java index 588a8f4f..b542ed96 100644 --- a/src/main/java/net/mingsoft/cms/action/ContentAction.java +++ b/src/main/java/net/mingsoft/cms/action/ContentAction.java @@ -87,7 +87,6 @@ public class ContentAction extends BaseAction { @RequestMapping("/list") @ResponseBody public ResultData list(@ModelAttribute @ApiIgnore ContentEntity content, HttpServletResponse response, HttpServletRequest request, @ApiIgnore ModelMap model, BindingResult result) { - content.setAppId(BasicUtil.getAppId()); BasicUtil.startPage(); List contentList = contentBiz.query(content); return ResultData.build().success(new EUListBean(contentList,(int) BasicUtil.endPage(contentList).getTotal())); @@ -114,7 +113,6 @@ public class ContentAction extends BaseAction { if(content.getId()==null) { return ResultData.build().error(); } - content.setAppId(BasicUtil.getAppId()); ContentEntity _content = contentBiz.getById(content.getId()); return ResultData.build().success(_content); } @@ -172,7 +170,6 @@ public class ContentAction extends BaseAction { if(!StringUtil.checkLength(content.getContentUrl()+"", 0, 200)){ return ResultData.build().error(getResString("err.length", this.getResString("content.url"), "0", "200")); } - content.setAppId(BasicUtil.getAppId()); contentBiz.save(content); return ResultData.build().success(content); } @@ -247,7 +244,6 @@ public class ContentAction extends BaseAction { if(!StringUtil.checkLength(content.getContentUrl()+"", 0, 200)){ return ResultData.build().error(getResString("err.length", this.getResString("content.url"), "0", "200")); } - content.setAppId(BasicUtil.getAppId()); contentBiz.updateEntity(content); return ResultData.build().success(content); } diff --git a/src/main/java/net/mingsoft/cms/action/GeneraterAction.java b/src/main/java/net/mingsoft/cms/action/GeneraterAction.java index b01c1090..609e2b89 100644 --- a/src/main/java/net/mingsoft/cms/action/GeneraterAction.java +++ b/src/main/java/net/mingsoft/cms/action/GeneraterAction.java @@ -161,12 +161,10 @@ public class GeneraterAction extends BaseAction { if (CategoryId>0) { CategoryEntity categoryEntity = new CategoryEntity(); categoryEntity.setId(CategoryId+""); - categoryEntity.setAppId(app.getAppId()); columns = categoryBiz.queryChilds(categoryEntity); } else { // 获取所有的内容管理栏目 CategoryEntity categoryEntity=new CategoryEntity(); - categoryEntity.setAppId(app.getAppId()); columns = categoryBiz.query(categoryEntity); } List articleIdList = null; diff --git a/src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java b/src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java index f9812beb..9f0d8852 100644 --- a/src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java +++ b/src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java @@ -74,7 +74,6 @@ public class CategoryBizImpl extends BaseBizImpl i String pingYin = PinYinUtil.getPingYin(categoryEntity.getCategoryTitle()); CategoryEntity category=new CategoryEntity(); category.setCategoryPinyin(pingYin); - category.setAppId(BasicUtil.getAppId()); Object categoryBizEntity = getEntity(category); setParentId(categoryEntity); categoryEntity.setCategoryPinyin(pingYin); @@ -147,7 +146,6 @@ public class CategoryBizImpl extends BaseBizImpl i String pingYin = PinYinUtil.getPingYin(entity.getCategoryTitle()); CategoryEntity category=new CategoryEntity(); category.setCategoryPinyin(pingYin); - category.setAppId(BasicUtil.getAppId()); CategoryEntity categoryBizEntity = (CategoryEntity)getEntity(category); //拼音存在则拼接id if(categoryBizEntity!=null&&!categoryBizEntity.getId().equals(entity.getId())){ diff --git a/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java b/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java index 966b921b..ff043074 100644 --- a/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java +++ b/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java @@ -58,7 +58,6 @@ public class ContentBizImpl extends BaseBizImpl impl @Override public List queryIdsByCategoryIdForParser(ContentBean contentBean) { - contentBean.setAppId(BasicUtil.getAppId()); return this.contentDao.queryIdsByCategoryIdForParser(contentBean); } diff --git a/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml b/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml index 78d5f930..9fdd331d 100644 --- a/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml +++ b/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml @@ -49,7 +49,6 @@ mdiy_model_id, category_datetime, category_manager_id, - app_id, dict_id, category_flag, category_path, @@ -75,7 +74,6 @@ #{mdiyModelId}, #{categoryDatetime}, #{categoryManagerId}, - #{appId}, #{dictId}, #{categoryFlag}, #{categoryPath}, @@ -107,7 +105,6 @@ mdiy_model_id=#{mdiyModelId}, category_datetime=#{categoryDatetime}, category_manager_id=#{categoryManagerId}, - app_id=#{appId}, dict_id=#{dictId}, category_flag=#{categoryFlag}, category_path=#{categoryPath}, @@ -143,7 +140,6 @@ and mdiy_model_id=#{mdiyModelId} and category_datetime=#{categoryDatetime} and category_manager_id=#{categoryManagerId} - and app_id=#{appId} and dict_id=#{dictId} and category_flag=#{categoryFlag} and category_path=#{categoryPath} @@ -170,9 +166,7 @@