Explorar el Código

Merge branch 'master' of https://git.coding.net/aft/AFT.git

albertshaw hace 8 años
padre
commit
86a79a1f8c

+ 3 - 2
schema/201707012-lecture.sql

@@ -2,14 +2,15 @@ CREATE TABLE `lecture` (
   `id` VARCHAR(36) CHARACTER SET 'utf8mb4' NOT NULL,
   `uid` VARCHAR(36) CHARACTER SET 'utf8mb4' NOT NULL COMMENT '开展讲座人ID',
   `lecture_time` VARCHAR(45) NOT NULL COMMENT '讲座开展时间',
-  `create_time` TIMESTAMP NULL COMMENT '记录创建时间',
-  `last_update_time` TIMESTAMP NULL COMMENT '记录最后更新时间',
+  `create_time` DATETIME NULL COMMENT '记录创建时间',
+  `last_update_time` DATETIME NULL COMMENT '记录最后更新时间',
   `name` VARCHAR(45) CHARACTER SET 'utf8mb4' NOT NULL COMMENT '名称',
   `summary` VARCHAR(128) CHARACTER SET 'utf8mb4' NULL COMMENT '简介',
   `deleted_sign` INT(1) NOT NULL DEFAULT 0 COMMENT '删除标记',
   `lecture_url` VARCHAR(255) NULL COMMENT '展示图',
   `hot` INT(1) NOT NULL DEFAULT 0 COMMENT '是否在大咖说页面展示(0--不展示,1--展示)',
   `dynamic` INT(1) NOT NULL DEFAULT 0 COMMENT '是否在科技明星页面展示活动动态(0--不展示,1--展示)',
+  `end_time` DATETIME NOT NULL COMMENT '讲堂结束时间',
   PRIMARY KEY (`id`))
 ENGINE = InnoDB DEFAULT CHARSET=utf8mb4
 COMMENT = '科技讲堂';

+ 17 - 9
src/main/java/com/goafanti/admin/controller/AdminLectureApiController.java

@@ -50,12 +50,12 @@ public class AdminLectureApiController extends BaseApiController {
 		res.setData(lectureService.listHot());
 		return res;
 	}
-	
+
 	/**
 	 * 科技明星页面展示列表
 	 */
 	@RequestMapping(value = "/dynamic", method = RequestMethod.GET)
-	public Result dynamic(){
+	public Result dynamic() {
 		Result res = new Result();
 		res.setData(lectureService.listDynamic());
 		return res;
@@ -86,7 +86,8 @@ public class AdminLectureApiController extends BaseApiController {
 	 * 新增
 	 */
 	@RequestMapping(value = "/add", method = RequestMethod.POST)
-	public Result add(@Valid InputLecture il, BindingResult bindingResult, String lectureTimeFormattedDate) {
+	public Result add(@Valid InputLecture il, BindingResult bindingResult, String lectureTimeFormattedDate,
+			String endTimeFormattedDate) {
 		Result res = new Result();
 		if (bindingResult.hasErrors()) {
 			res.getError().add(buildErrorByMsg(bindingResult.getFieldError().getDefaultMessage(),
@@ -94,13 +95,13 @@ public class AdminLectureApiController extends BaseApiController {
 			return res;
 		}
 
-		if (!disposeLecture(res, il, lectureTimeFormattedDate).getError().isEmpty()) {
+		if (!disposeLecture(res, il, lectureTimeFormattedDate, endTimeFormattedDate).getError().isEmpty()) {
 			return res;
 		}
 
 		Lecture l = new Lecture();
 		BeanUtils.copyProperties(il, l);
-		lectureService.save(l, lectureTimeFormattedDate);
+		lectureService.save(l, lectureTimeFormattedDate, endTimeFormattedDate);
 		return res;
 	}
 
@@ -108,7 +109,8 @@ public class AdminLectureApiController extends BaseApiController {
 	 * 修改
 	 */
 	@RequestMapping(value = "/update", method = RequestMethod.POST)
-	public Result update(@Valid InputLecture il, BindingResult bindingResult, String lectureTimeFormattedDate) {
+	public Result update(@Valid InputLecture il, BindingResult bindingResult, String lectureTimeFormattedDate,
+			String endTimeFormattedDate) {
 		Result res = new Result();
 		if (bindingResult.hasErrors()) {
 			res.getError().add(buildErrorByMsg(bindingResult.getFieldError().getDefaultMessage(),
@@ -121,13 +123,13 @@ public class AdminLectureApiController extends BaseApiController {
 			return res;
 		}
 
-		if (!disposeLecture(res, il, lectureTimeFormattedDate).getError().isEmpty()) {
+		if (!disposeLecture(res, il, lectureTimeFormattedDate, endTimeFormattedDate).getError().isEmpty()) {
 			return res;
 		}
 
 		Lecture l = new Lecture();
 		BeanUtils.copyProperties(il, l);
-		lectureService.update(l, lectureTimeFormattedDate);
+		lectureService.update(l, lectureTimeFormattedDate, endTimeFormattedDate);
 		return res;
 	}
 
@@ -184,7 +186,8 @@ public class AdminLectureApiController extends BaseApiController {
 		return res;
 	}
 
-	private Result disposeLecture(Result res, InputLecture il, String lectureTimeFormattedDate) {
+	private Result disposeLecture(Result res, InputLecture il, String lectureTimeFormattedDate,
+			String endTimeFormattedDate) {
 		if (StringUtils.isBlank(il.getUid())) {
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "讲堂开展人ID"));
 			return res;
@@ -200,6 +203,11 @@ public class AdminLectureApiController extends BaseApiController {
 			return res;
 		}
 
+		if (StringUtils.isBlank(endTimeFormattedDate)) {
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "讲堂结束时间"));
+			return res;
+		}
+
 		if (null == il.getHot()) {
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "是否展示在大咖说页面标记"));
 			return res;

+ 5 - 2
src/main/java/com/goafanti/common/dao/LectureMapper.java

@@ -3,6 +3,7 @@ package com.goafanti.common.dao;
 import java.util.List;
 
 import com.goafanti.common.model.Lecture;
+import com.goafanti.lecture.bo.BigShotLectureListBo;
 import com.goafanti.lecture.bo.LectureListBo;
 
 public interface LectureMapper {
@@ -24,7 +25,9 @@ public interface LectureMapper {
 
 	Integer countHotNum();
 
-	LectureListBo listHot();
+	List<LectureListBo> listHot();
 
-	LectureListBo listDynamic();
+	List<LectureListBo> listDynamic();
+
+	List<BigShotLectureListBo> listBigShotLecture();
 }

+ 3 - 0
src/main/java/com/goafanti/common/dao/StarMapper.java

@@ -3,6 +3,7 @@ package com.goafanti.common.dao;
 import java.util.List;
 
 import com.goafanti.common.model.Star;
+import com.goafanti.star.bo.BigShotStarListBo;
 import com.goafanti.star.bo.HotStarListBo;
 
 public interface StarMapper {
@@ -25,4 +26,6 @@ public interface StarMapper {
 	void deleteAll();
 
 	void insertBatch(List<Star> startList);
+
+	List<BigShotStarListBo> listBigShotStar();
 }

+ 2 - 0
src/main/java/com/goafanti/common/dao/UserInterestMapper.java

@@ -18,4 +18,6 @@ public interface UserInterestMapper {
     int updateByPrimaryKey(UserInterest record);
 
 	UserInterest findByFromUidAndToUid(@Param("fromUid")String fromUid, @Param("toUid")String toUid);
+
+	Integer countByToUid(String toUid);
 }

+ 44 - 7
src/main/java/com/goafanti/common/mapper/LectureMapper.xml

@@ -13,10 +13,11 @@
     <result column="lecture_url" property="lectureUrl" jdbcType="VARCHAR" />
     <result column="hot" property="hot" jdbcType="INTEGER" />
     <result column="dynamic" property="dynamic" jdbcType="INTEGER" />
+    <result column="end_time" property="endTime" jdbcType="TIMESTAMP" />
   </resultMap>
   <sql id="Base_Column_List" >
     id, uid, lecture_time, create_time, last_update_time, name, summary, deleted_sign, lecture_url,
-    hot, dynamic
+    hot, dynamic, end_time
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
     select 
@@ -31,11 +32,11 @@
   <insert id="insert" parameterType="com.goafanti.common.model.Lecture" >
     insert into lecture (id, uid, lecture_time, 
       create_time, last_update_time, name, 
-      summary, deleted_sign, lecture_url, hot, dynamic)
+      summary, deleted_sign, lecture_url, hot, dynamic, end_time)
     values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{lectureTime,jdbcType=TIMESTAMP}, 
       #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{name,jdbcType=VARCHAR}, 
       #{summary,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER}, #{lectureUrl,jdbcType=VARCHAR},
-      #{hot,jdbcType=INTEGER}, #{dynamic,jdbcType=INTEGER})
+      #{hot,jdbcType=INTEGER}, #{dynamic,jdbcType=INTEGER}, #{endTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.goafanti.common.model.Lecture" >
     insert into lecture
@@ -73,6 +74,9 @@
       <if test="dynamic != null" >
         dynamic,
       </if>
+      <if test="endTime != null" >
+        end_time,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides="," >
       <if test="id != null" >
@@ -108,6 +112,9 @@
       <if test="dynamic != null" >
         #{dynamic,jdbcType=INTEGER},
       </if>
+       <if test="endTime != null" >
+        #{endTime,jdbcType=TIMESTAMP},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Lecture" >
@@ -143,6 +150,9 @@
       <if test="dynamic != null" >
         dynamic = #{dynamic,jdbcType=INTEGER},
       </if>
+      <if test="endTime != null" >
+        end_time = #{endTime,jdbcType=TIMESTAMP},
+      </if>
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
@@ -157,7 +167,8 @@
       deleted_sign = #{deletedSign,jdbcType=INTEGER},
       lecture_url = #{lectureUrl,jdbcType=VARCHAR},
       hot = #{hot,jdbcType=INTEGER},
-      dynamic = #{dynamic,jdbcType=INTEGER}
+      dynamic = #{dynamic,jdbcType=INTEGER},
+      end_time = #{endTime,jdbcType=TIMESTAMP}
     where id = #{id,jdbcType=VARCHAR}
   </update>
   
@@ -178,7 +189,10 @@
 	  		l.lecture_time as lectureTime,
 	  		l.summary,
 	  		l.lecture_url as lectureUrl,
-	  		ui.username 
+	  		ui.username,
+	  		l.hot,
+	  		l.dynamic,
+	  		l.end_time as endTime
 	  	from lecture l
 	  	left join  user_identity ui on ui.uid = l.uid
 	  	where 
@@ -252,7 +266,10 @@
 	  		l.lecture_time as lectureTime,
 	  		l.summary,
 	  		l.lecture_url as lectureUrl,
-	  		ui.username 
+	  		ui.username,
+	  		l.hot,
+	  		l.dynamic,
+	  		l.end_time as endTime
 	  	from lecture l
 	  	left join  user_identity ui on ui.uid = l.uid
 	  	where 
@@ -268,11 +285,31 @@
 	  		l.lecture_time as lectureTime,
 	  		l.summary,
 	  		l.lecture_url as lectureUrl,
-	  		ui.username 
+	  		ui.username,
+	  		l.hot,
+	  		l.dynamic,
+	  		l.end_time as endTime
 	  	from lecture l
 	  	left join  user_identity ui on ui.uid = l.uid
 	  	where 
 	  		l.deleted_sign = 0
 	  	and l.dynamic = 1
   </select>
+  
+  <select id="listBigShotLecture" resultType="com.goafanti.lecture.bo.BigShotLectureListBo">
+  		select 
+	  		l.id,
+	  		l.uid,
+	  		l.name,
+	  		l.lecture_time as lectureTime,
+	  		l.summary,
+	  		l.lecture_url as lectureUrl,
+	  		ui.username,
+	  		l.end_time as endTime
+	  	from lecture l
+	  	left join  user_identity ui on ui.uid = l.uid
+	  	where 
+	  		l.deleted_sign = 0
+	  	and l.hot = 1
+  </select>
 </mapper>

+ 19 - 0
src/main/java/com/goafanti/common/mapper/StarMapper.xml

@@ -139,4 +139,23 @@
       )
     </foreach>
   </insert>
+  
+  <select id="listBigShotStar" resultType="com.goafanti.star.bo.BigShotStarListBo">
+  	select
+  		u.id as uid,
+  		u.number,
+  		ui.username,
+  		uc.engaged_field as engagedField,
+  		uc.professional_title as professionalTitle,
+  		uc.work_unit as workUnit,
+  		adc.achievement_count as achievementNum,
+  		info.person_portrait_url as personPortraitUrl
+  	from star s
+  	left join user u on u.id = s.uid
+  	left join user_info info on info.uid = s.uid
+  	left join user_identity ui on ui.uid = s.uid
+  	left join user_career uc on uc.uid = s.uid
+  	left join achievement_demand_count adc on adc.uid = s.uid 
+  	where s.hot = 1 
+  </select>
 </mapper>

+ 7 - 0
src/main/java/com/goafanti/common/mapper/UserInterestMapper.xml

@@ -124,4 +124,11 @@
     WHERE
 	 ui.from_uid = #{fromUid,jdbcType=VARCHAR}
   </select>
+  
+  <select id="countByToUid" parameterType="java.lang.String" resultType="java.lang.Integer">
+  	select 
+  		count(1) 
+  	from user_interest 
+  	where to_uid = #{toUid,jdbcType=VARCHAR} 
+  </select>
 </mapper>

+ 27 - 2
src/main/java/com/goafanti/common/model/Lecture.java

@@ -49,17 +49,22 @@ public class Lecture {
 	 * 展示图URL
 	 */
 	private String	lectureUrl;
-	
+
 	/**
 	 * 是否在大咖页面展示
 	 */
 	private Integer	hot;
-	
+
 	/**
 	 * 是否在科技明星动态展示
 	 */
 	private Integer	dynamic;
 
+	/**
+	 * 讲堂结束时间
+	 */
+	private Date	endTime;
+
 	public String getId() {
 		return id;
 	}
@@ -151,6 +156,14 @@ public class Lecture {
 		this.dynamic = dynamic;
 	}
 
+	public Date getEndTime() {
+		return endTime;
+	}
+
+	public void setEndTime(Date endTime) {
+		this.endTime = endTime;
+	}
+
 	public String getLectureTimeFormattedDate() {
 		if (this.lectureTime == null) {
 			return null;
@@ -162,4 +175,16 @@ public class Lecture {
 	public void setLectureTimeFormattedDate(String lectureTimeFormattedDate) {
 
 	}
+
+	public String getEndTimeFormattedDate() {
+		if (this.endTime == null) {
+			return null;
+		} else {
+			return DateFormatUtils.format(this.endTime, AFTConstants.YYYYMMDDHHMMSS);
+		}
+	}
+
+	public void setEndTimeFormattedDate(String endTimeFormattedDate) {
+
+	}
 }

+ 5 - 0
src/main/java/com/goafanti/lecture/bo/BigShotLectureListBo.java

@@ -0,0 +1,5 @@
+package com.goafanti.lecture.bo;
+
+public class BigShotLectureListBo extends LectureListBo{
+
+}

+ 7 - 4
src/main/java/com/goafanti/lecture/service/LectureService.java

@@ -4,13 +4,14 @@ import java.util.List;
 
 import com.goafanti.common.model.Lecture;
 import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.lecture.bo.BigShotLectureListBo;
 import com.goafanti.lecture.bo.LectureListBo;
 
 public interface LectureService {
 
-	void save(Lecture l, String lectureTimeFormattedDate);
+	void save(Lecture l, String lectureTimeFormattedDate, String endTimeFormattedDate);
 
-	void update(Lecture l, String lectureTimeFormattedDate);
+	void update(Lecture l, String lectureTimeFormattedDate, String endTimeFormattedDate);
 
 	int batchDeleteByPrimaryKey(List<String> asList);
 
@@ -21,8 +22,10 @@ public interface LectureService {
 
 	Integer countHotNum();
 
-	LectureListBo listHot();
+	List<LectureListBo> listHot();
 
-	LectureListBo listDynamic();
+	List<LectureListBo> listDynamic();
+
+	List<BigShotLectureListBo> listBigShotLecture();
 
 }

+ 12 - 4
src/main/java/com/goafanti/lecture/service/impl/LectureServiceImpl.java

@@ -18,6 +18,7 @@ import com.goafanti.common.model.Lecture;
 import com.goafanti.common.utils.DateUtils;
 import com.goafanti.core.mybatis.BaseMybatisDao;
 import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.lecture.bo.BigShotLectureListBo;
 import com.goafanti.lecture.bo.LectureListBo;
 import com.goafanti.lecture.service.LectureService;
 
@@ -27,10 +28,11 @@ public class LectureServiceImpl extends BaseMybatisDao<LectureMapper> implements
 	private LectureMapper lectureMapper;
 
 	@Override
-	public void save(Lecture l, String lectureTimeFormattedDate) {
+	public void save(Lecture l, String lectureTimeFormattedDate, String endTimeFormattedDate) {
 		l.setId(UUID.randomUUID().toString());
 		try {
 			l.setLectureTime(DateUtils.parseDate(lectureTimeFormattedDate, AFTConstants.YYYYMMDDHHMMSS));
+			l.setEndTime(DateUtils.parseDate(endTimeFormattedDate, AFTConstants.YYYYMMDDHHMMSS));
 		} catch (ParseException e) {
 		}
 		Calendar now = Calendar.getInstance();
@@ -42,9 +44,10 @@ public class LectureServiceImpl extends BaseMybatisDao<LectureMapper> implements
 	}
 
 	@Override
-	public void update(Lecture l, String lectureTimeFormattedDate) {
+	public void update(Lecture l, String lectureTimeFormattedDate, String endTimeFormattedDate) {
 		try {
 			l.setLectureTime(DateUtils.parseDate(lectureTimeFormattedDate, AFTConstants.YYYYMMDDHHMMSS));
+			l.setEndTime(DateUtils.parseDate(endTimeFormattedDate, AFTConstants.YYYYMMDDHHMMSS));
 		} catch (ParseException e) {
 		}
 		Calendar now = Calendar.getInstance();
@@ -106,13 +109,18 @@ public class LectureServiceImpl extends BaseMybatisDao<LectureMapper> implements
 	}
 
 	@Override
-	public LectureListBo listHot() {
+	public List<LectureListBo> listHot() {
 		return lectureMapper.listHot();
 	}
 
 	@Override
-	public LectureListBo listDynamic() {
+	public List<LectureListBo> listDynamic() {
 		return lectureMapper.listDynamic();
 	}
 
+	@Override
+	public List<BigShotLectureListBo> listBigShotLecture() {
+		return lectureMapper.listBigShotLecture();
+	}
+
 }

+ 53 - 0
src/main/java/com/goafanti/portal/controller/PortalBigShotController.java

@@ -0,0 +1,53 @@
+package com.goafanti.portal.controller;
+
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.servlet.ModelAndView;
+
+import com.goafanti.lecture.bo.BigShotLectureListBo;
+import com.goafanti.lecture.service.LectureService;
+import com.goafanti.star.bo.BigShotStarListBo;
+import com.goafanti.star.service.StarService;
+import com.goafanti.user.service.UserInterestService;
+
+/**
+ * 大咖说
+ */
+@RestController
+public class PortalBigShotController {
+	@Resource
+	private StarService			starService;
+	@Resource
+	private UserInterestService	userInterestService;
+	@Resource
+	private LectureService		lectureService;
+
+	/**
+	 * 科技明星展示
+	 */
+	// @RequestMapping(value = "/portal/scienceTechnology/bigShot", method =
+	// RequestMethod.GET)
+	public ModelAndView bigShot() {
+		ModelAndView mv = new ModelAndView();
+		List<BigShotStarListBo> starList = starService.listBigShotStar();
+		if (null != starList && starList.size() > 0) {
+			Integer fansNum = 0;
+			for (BigShotStarListBo bo : starList) {
+				if (StringUtils.isNotBlank(bo.getUid())) {
+					fansNum = userInterestService.countByToUid(bo.getUid());
+					bo.setFansNum(fansNum);
+				}
+			}
+			mv.addObject("starList", starList);
+		}
+		List<BigShotLectureListBo> lectureList = lectureService.listBigShotLecture();
+		mv.addObject("lectureList", lectureList);
+		mv.setViewName("/portal/scienceTechnology/bigShot");
+		return mv;
+	}
+
+}

+ 43 - 4
src/main/java/com/goafanti/portal/controller/PortalStarController.java

@@ -1,11 +1,50 @@
 package com.goafanti.portal.controller;
 
-import org.springframework.web.bind.annotation.RequestMapping;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.servlet.ModelAndView;
 
 import com.goafanti.common.controller.BaseApiController;
+import com.goafanti.lecture.bo.LectureListBo;
+import com.goafanti.lecture.service.LectureService;
+import com.goafanti.star.bo.BigShotStarListBo;
+import com.goafanti.star.service.StarService;
+import com.goafanti.user.service.UserInterestService;
+
+/**
+ * 科技明星
+ */
 @RestController
-@RequestMapping(value = "/portal/star")
-public class PortalStarController extends BaseApiController{
-	
+public class PortalStarController extends BaseApiController {
+	@Resource
+	private StarService			starService;
+	@Resource
+	private LectureService		lectureService;
+	@Resource
+	private UserInterestService	userInterestService;
+
+	// @RequestMapping(value = "/portal/scienceTechnology/star", method =
+	// RequestMethod.GET)
+	public ModelAndView star() {
+		ModelAndView mv = new ModelAndView();
+		List<LectureListBo> lectureDynamicList = lectureService.listDynamic();
+		mv.addObject("lectureDynamicList", lectureDynamicList);
+		List<BigShotStarListBo> starList = starService.listBigShotStar();
+		if (null != starList && starList.size() > 0) {
+			Integer fansNum = 0;
+			for (BigShotStarListBo bo : starList) {
+				if (StringUtils.isNotBlank(bo.getUid())) {
+					fansNum = userInterestService.countByToUid(bo.getUid());
+					bo.setFansNum(fansNum);
+				}
+			}
+			mv.addObject("starList", starList);
+		}
+		mv.setViewName("/portal/scienceTechnology/star");
+		return mv;
+	}
 }

+ 26 - 0
src/main/java/com/goafanti/star/bo/BigShotStarListBo.java

@@ -0,0 +1,26 @@
+package com.goafanti.star.bo;
+
+import com.goafanti.user.bo.StarListBo;
+
+public class BigShotStarListBo extends StarListBo {
+	private Integer	fansNum;
+
+	private String	personPortraitUrl;
+
+	public Integer getFansNum() {
+		return fansNum;
+	}
+
+	public void setFansNum(Integer fansNum) {
+		this.fansNum = fansNum;
+	}
+
+	public String getPersonPortraitUrl() {
+		return personPortraitUrl;
+	}
+
+	public void setPersonPortraitUrl(String personPortraitUrl) {
+		this.personPortraitUrl = personPortraitUrl;
+	}
+
+}

+ 3 - 0
src/main/java/com/goafanti/star/service/StarService.java

@@ -3,6 +3,7 @@ package com.goafanti.star.service;
 import java.util.List;
 
 import com.goafanti.common.model.Star;
+import com.goafanti.star.bo.BigShotStarListBo;
 import com.goafanti.star.bo.HotStarListBo;
 
 
@@ -14,4 +15,6 @@ public interface StarService {
 
 	void save(List<Star> star, String[] hot);
 
+	List<BigShotStarListBo> listBigShotStar();
+
 }

+ 5 - 0
src/main/java/com/goafanti/star/service/impl/StarServiceImpl.java

@@ -12,6 +12,7 @@ import com.goafanti.common.dao.StarMapper;
 import com.goafanti.common.enums.StarHotType;
 import com.goafanti.common.enums.StarType;
 import com.goafanti.common.model.Star;
+import com.goafanti.star.bo.BigShotStarListBo;
 import com.goafanti.star.bo.HotStarListBo;
 import com.goafanti.star.service.StarService;
 @Service
@@ -52,5 +53,9 @@ public class StarServiceImpl implements StarService {
 		}
 		starMapper.insertBatch(startList);
 	}
+	@Override
+	public List<BigShotStarListBo> listBigShotStar() {
+		return starMapper.listBigShotStar();
+	}
 
 }

+ 2 - 0
src/main/java/com/goafanti/user/service/UserInterestService.java

@@ -16,4 +16,6 @@ public interface UserInterestService {
 
 	Pagination<InterestUserListBo> listInterestUser(Integer pNo, Integer pSize);
 
+	Integer countByToUid(String uid);
+
 }

+ 5 - 0
src/main/java/com/goafanti/user/service/impl/UserInterestServiceImpl.java

@@ -62,4 +62,9 @@ public class UserInterestServiceImpl extends BaseMybatisDao<UserInterestMapper>
 		return (Pagination<InterestUserListBo>) findPage("findInterestUserListByPage",
 				"findInterestUserCount", params, pageNo, pageSize);
 	}
+
+	@Override
+	public Integer countByToUid(String toUid) {
+		return userInterestMapper.countByToUid(toUid);
+	}
 }