|
|
@@ -6,7 +6,9 @@ import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
import java.io.OutputStream;
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -21,6 +23,7 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import com.goafanti.achievement.service.AchievementService;
|
|
|
import com.goafanti.business.bo.JtBusinessProjectResult;
|
|
|
@@ -32,6 +35,7 @@ import com.goafanti.comment.service.CommentService;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.constant.ErrorConstants;
|
|
|
import com.goafanti.common.enums.UserType;
|
|
|
+import com.goafanti.common.model.JtBusinessProject;
|
|
|
import com.goafanti.common.model.JtVoucherDetail;
|
|
|
import com.goafanti.common.model.User;
|
|
|
import com.goafanti.common.service.DistrictGlossoryService;
|
|
|
@@ -814,4 +818,79 @@ public class PublicController extends BaseController {
|
|
|
res.data(voucherDetailService.saveUserGetVoucher(uid,vid));
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 服务商列表
|
|
|
+ * @param user
|
|
|
+ * @param pageNo
|
|
|
+ * @param pageSize
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value="/organizationList", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Result organizationList(User user, Integer pageNo, Integer pageSize){
|
|
|
+ Result res = new Result();
|
|
|
+ res.setData(userService.selectOrganizationList(user, pageNo, pageSize));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ @RequestMapping(value="/invRegister",method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Result portalActivityDetails(){
|
|
|
+ Result res = new Result();
|
|
|
+ Map<String, Object> map =new HashMap<>();
|
|
|
+ //获得项目抵用券
|
|
|
+ List<JtVoucherListBo> vlist=voucherService.selectActivityVoucher();
|
|
|
+ for (JtVoucherListBo j : vlist) {
|
|
|
+ if (j!=null&&j.getName().length()>12) {
|
|
|
+ j.setName(j.getName().substring(0, 11)+"…");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("vouchers",vlist);
|
|
|
+ //高企服务
|
|
|
+ List<JtBusinessProject> glist=jtBusinessService.getKJListByIds(2, 0, 2);
|
|
|
+ for (JtBusinessProject j : glist) {
|
|
|
+ if (j.getName().length()>5) {
|
|
|
+ j.setName(j.getName().substring(0, 4)+"…");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put( "gqfw",glist);
|
|
|
+ //随机热门项目
|
|
|
+ Pagination<JtBusinessProjectResult> p=jtBusinessService.getProjects(null,null,null,null, 3,1,null,2,null,1,null,null,null);
|
|
|
+ List<JtBusinessProjectResult> plist=(List<JtBusinessProjectResult>) p.getList();
|
|
|
+ for (JtBusinessProjectResult j : plist) {
|
|
|
+ if (j.getName().length()>8) {
|
|
|
+ j.setName(j.getName().substring(0, 7)+"…");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("hotProject",plist);
|
|
|
+ //军民融合
|
|
|
+ List<JtBusinessProject> jlist=jtBusinessService.getKJListByIds(3, 0, 3);
|
|
|
+ for (JtBusinessProject j : jlist) {
|
|
|
+ if (j.getName().length()>12) {
|
|
|
+ j.setName(j.getName().substring(0, 11)+"…");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put( "jmrh",jlist);
|
|
|
+ //知识产权
|
|
|
+ List<JtBusinessProject> zlist=jtBusinessService.getKJListByIds(1, 0, 3);
|
|
|
+ for (JtBusinessProject j : zlist) {
|
|
|
+ if (j.getName().length()>8) {
|
|
|
+ j.setName(j.getName().substring(0, 7)+"…");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put( "zscq",zlist);
|
|
|
+ //政府扶持
|
|
|
+ List<JtBusinessProject> zfList=jtBusinessService.getProjectByTag("政府扶持", 4);
|
|
|
+ for (JtBusinessProject j : zlist) {
|
|
|
+ if (j.getName().length()>11) {
|
|
|
+ j.setName(j.getName().substring(0, 10)+"…");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put( "zffc",zfList);
|
|
|
+
|
|
|
+
|
|
|
+ return res.data(map);
|
|
|
+ }
|
|
|
}
|