|  |  | 
 |  |  | package com.zy.asrs.common.utils; | 
 |  |  |  | 
 |  |  | import com.zy.asrs.common.wms.entity.ManTag; | 
 |  |  | import com.zy.asrs.common.wms.service.ManTagService; | 
 |  |  | import com.zy.asrs.common.wms.entity.Tag; | 
 |  |  | import com.zy.asrs.common.wms.service.TagService; | 
 |  |  | import com.zy.asrs.framework.common.SpringUtils; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  | 
 |  |  |  | 
 |  |  |     public StringBuilder pathName = new StringBuilder(); | 
 |  |  |  | 
 |  |  |     public void executePath(ManTag tag) { | 
 |  |  |         ManTagService bean = SpringUtils.getBean(ManTagService.class); | 
 |  |  |         ManTag parent = bean.getById(tag.getParentId()); | 
 |  |  |     public void executePath(Tag tag) { | 
 |  |  |         TagService bean = SpringUtils.getBean(TagService.class); | 
 |  |  |         Tag parent = bean.getById(tag.getParentId()); | 
 |  |  |         if (null != parent) { | 
 |  |  |             path.insert(0, parent.getId()).insert(0,","); | 
 |  |  |             pathName.insert(0, parent.getName()).insert(0,","); | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public void executePath(Long parentId) { | 
 |  |  |         ManTagService bean = SpringUtils.getBean(ManTagService.class); | 
 |  |  |         ManTag parent = bean.getById(parentId); | 
 |  |  |         TagService bean = SpringUtils.getBean(TagService.class); | 
 |  |  |         Tag parent = bean.getById(parentId); | 
 |  |  |         if (null != parent) { | 
 |  |  |             path.insert(0, parent.getId()).insert(0,","); | 
 |  |  |             pathName.insert(0, parent.getName()).insert(0,","); |