Commit 78a8b4c4 authored by sgjj's avatar sgjj

修复栏目路径问题

parent ae182545
...@@ -249,10 +249,10 @@ public class CategoryAction extends BaseAction{ ...@@ -249,10 +249,10 @@ public class CategoryAction extends BaseAction{
CategoryEntity categoryEntity=new CategoryEntity(); CategoryEntity categoryEntity=new CategoryEntity();
categoryEntity.setCategoryPinyin(pingYin); categoryEntity.setCategoryPinyin(pingYin);
categoryEntity.setAppId(BasicUtil.getAppId()); categoryEntity.setAppId(BasicUtil.getAppId());
Object categoryBizEntity = categoryBiz.getEntity(categoryEntity); CategoryEntity categoryBizEntity = (CategoryEntity)categoryBiz.getEntity(categoryEntity);
category.setCategoryPinyin(pingYin); category.setCategoryPinyin(pingYin);
//如果存在此拼音栏目则拼接上id //如果存在此拼音栏目则拼接上id
if(categoryBizEntity!=null){ if(categoryBizEntity!=null&&!categoryBizEntity.getId().equals(category.getId())){
category.setCategoryPinyin(pingYin+category.getId()); category.setCategoryPinyin(pingYin+category.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