|
|
@@ -156,16 +156,10 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
String cname=getAllCname(s);
|
|
|
map.put("id", s);
|
|
|
map.put("cname", cname);
|
|
|
- if (flag==1) {
|
|
|
- if (StringUtils.isBlank(cname)) {
|
|
|
- map.put("cname", "平台超级业务品类");
|
|
|
- }
|
|
|
- list.add(map);
|
|
|
- }else {
|
|
|
- if (StringUtils.isNotBlank(cname)) {
|
|
|
- list.add(map);
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+ list.add(map);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
System.out.println("this is service end -----------------------");
|
|
|
@@ -177,16 +171,19 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
* @return 路径
|
|
|
*/
|
|
|
private String getAllCname(String s) {
|
|
|
+ System.out.println("to get cid by id-----------------------"+s);
|
|
|
String cid=businessVarietiesMapper.getThisCid(s);
|
|
|
String cname=businessVarietiesMapper.getThisCname(cid);
|
|
|
BusinessVarieties bv=businessVarietiesMapper.selectByPrimaryKey(s);
|
|
|
String sid=bv.getSuperId();
|
|
|
if (cid.length()>4) {
|
|
|
String w=getAllCname(sid)+"-"+cname;
|
|
|
+ System.out.println("return result sid-----"+sid+"----------w----------"+w);
|
|
|
return w;
|
|
|
}else{
|
|
|
return cid.length()>3?cname:"";
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|