|
@@ -30,7 +30,15 @@ public class TagService {
|
|
}
|
|
}
|
|
|
|
|
|
public List<Tag> getCode(String code) {
|
|
public List<Tag> getCode(String code) {
|
|
- return tagDao.getCode(code);
|
|
|
|
|
|
+ List<Tag> list = tagDao.getCode(code);
|
|
|
|
+ if (list.size() > 0) {
|
|
|
|
+ for (int i = 0; i < list.size(); i++) {
|
|
|
|
+ if (list.get(i).getCode() != code & list.get(i).getCode() != null) {
|
|
|
|
+ list.remove(i);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return list;
|
|
}
|
|
}
|
|
|
|
|
|
public List<Tag> getOrganizationId(long organizationId, int type) {
|
|
public List<Tag> getOrganizationId(long organizationId, int type) {
|