Browse Source

收藏列表-事件来源

hanfucheng 2 months ago
parent
commit
4380a97003

+ 6 - 1
src/main/java/com/sooka/sponest/event/centereventteventcollect/service/impl/CentereventTEventCollectServiceImpl.java

@@ -6,6 +6,7 @@ import com.alibaba.nacos.common.utils.UuidUtils;
 import com.ruoyi.common.core.text.UUID;
 import com.ruoyi.common.core.text.UUID;
 import com.ruoyi.common.core.utils.StringUtils;
 import com.ruoyi.common.core.utils.StringUtils;
 import com.ruoyi.common.core.utils.uuid.IdUtils;
 import com.ruoyi.common.core.utils.uuid.IdUtils;
+import com.ruoyi.common.security.utils.DictUtils;
 import com.ruoyi.common.security.utils.SecurityUtils;
 import com.ruoyi.common.security.utils.SecurityUtils;
 import com.sooka.sponest.event.centereventteventcollect.domain.CentereventTEventCollect;
 import com.sooka.sponest.event.centereventteventcollect.domain.CentereventTEventCollect;
 import com.sooka.sponest.event.centereventteventcollect.mapper.CentereventTEventCollectMapper;
 import com.sooka.sponest.event.centereventteventcollect.mapper.CentereventTEventCollectMapper;
@@ -46,7 +47,11 @@ public class CentereventTEventCollectServiceImpl implements ICentereventTEventCo
         if(StringUtils.isBlank(centereventTEventCollect.getUserId())){
         if(StringUtils.isBlank(centereventTEventCollect.getUserId())){
             centereventTEventCollect.setUserId(SecurityUtils.getUserId().toString());
             centereventTEventCollect.setUserId(SecurityUtils.getUserId().toString());
         }
         }
-        return centereventTEventCollectMapper.selectCentereventTEventCollectList(centereventTEventCollect);
+        List<CentereventTEventCollect> centereventTEventCollects = centereventTEventCollectMapper.selectCentereventTEventCollectList(centereventTEventCollect);
+        for (CentereventTEventCollect collect : centereventTEventCollects) {
+            collect.setReportor(DictUtils.getDictDataByValue("reporting_source",collect.getReportSource()));
+        }
+        return centereventTEventCollects;
     }
     }
 
 
     /**
     /**