dcs 11 ماه پیش
والد
کامیت
de8c990e7e
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      virgo.api/src/main/java/com/bosshand/virgo/api/service/TagService.java

+ 9 - 1
virgo.api/src/main/java/com/bosshand/virgo/api/service/TagService.java

@@ -30,7 +30,15 @@ public class TagService {
     }
 
     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) {