|
|
@@ -15,7 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import com.goafanti.app.bo.AdvertisingBo;
|
|
|
+
|
|
|
import com.goafanti.app.bo.consultantListBo;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.bo.fieldGlossoryBo;
|
|
|
@@ -40,10 +40,10 @@ import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.portal.bo.UserSubscriberListBo;
|
|
|
+import com.goafanti.user.bo.Advertisings;
|
|
|
import com.goafanti.user.bo.AuditorUserIdentityDetailBo;
|
|
|
import com.goafanti.user.bo.UserIdentityBo;
|
|
|
import com.goafanti.user.bo.UserIdentityDetailAdminBo;
|
|
|
-
|
|
|
import com.goafanti.user.service.UserIdentityService;
|
|
|
|
|
|
@Service
|
|
|
@@ -404,32 +404,31 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<AdvertisingBo> advertising() {
|
|
|
- List<AdvertisingBo> advertising=new ArrayList<>();
|
|
|
- AdvertisingBo one=new AdvertisingBo();
|
|
|
- one.setId("065de736-9b40-4678-93bc-e95f5e8c529b");
|
|
|
- one.setPicture("/customer_sys_file/1/GGN1.jpg");
|
|
|
- one.setType("成果");
|
|
|
- one.setSlogan("快速响应您的需求 只为助您成就一流企业");
|
|
|
- advertising.add(one);
|
|
|
-
|
|
|
- AdvertisingBo two=new AdvertisingBo();
|
|
|
- two.setId("739aed36-6ee6-406f-b03e-97d719b484b9");
|
|
|
- two.setPicture("/customer_sys_file/1/GG2.jpg");
|
|
|
- two.setType("需求");
|
|
|
- two.setSlogan("快速响应您的需求 只为助您成就一流企业");
|
|
|
- advertising.add(two);
|
|
|
+ public List<Advertisings> advertising() {
|
|
|
+ List<String> a=new ArrayList<>();
|
|
|
+ a.add("关于开展2018年度高新技术企业认定专项审计机构申报工作的通知");
|
|
|
+ a.add("转发四川省经济和信息化委员会关于开展2017年上市补助申报通知的通知");
|
|
|
+ a.add("关于组织企业参加第十三届中国重庆高新技术成果交易会暨第九届中国国际军民两用技术博览会的通知");
|
|
|
+ a.add("关于组织参加第十三届中国重庆高新技术交易会暨第九届中国国际军民两用技术博览会的通知");
|
|
|
+ List<Advertisings> ads=new ArrayList<>();
|
|
|
+ int i=0;
|
|
|
+ List<String> l=new ArrayList<>();
|
|
|
+ for (String s : a) {
|
|
|
+ i++;
|
|
|
+ l.add(s);
|
|
|
+ if (i%2==0) {
|
|
|
+ ads.add(new Advertisings(l));
|
|
|
+ l=new ArrayList<>();
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- AdvertisingBo three=new AdvertisingBo();
|
|
|
- three.setId("af430be8-7752-43ac-ad82-27f02be317e6");
|
|
|
- three.setPicture("/customer_sys_file/1/GG3.jpg");
|
|
|
- three.setType("专家");
|
|
|
- three.setSlogan("快速响应您的需求 只为助您成就一流企业");
|
|
|
- advertising.add(three);
|
|
|
-
|
|
|
- return advertising;
|
|
|
+ return ads;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@Override
|
|
|
public Pagination<consultantListBo> portalConsultantList(Integer pNo, Integer pSize) {
|