zoujiajian 2 年之前
父节点
当前提交
ef9d379666

+ 1 - 1
netflix-dao/src/main/java/com/cyksj/mapper/corp/CorpUserTagMapper.java

@@ -26,7 +26,7 @@ public interface CorpUserTagMapper extends BaseMapper<CorpUserTag> {
 
 	List<Long> getTagIdByCorpUserId(Long corpUserId);
 
-	UserIntentionPieView getUserIntentionPie(@Param("tagIdStr") String tagId, @Param("thisDate") String date);
+	List<UserIntentionPieView> getUserIntentionPie(@Param("tagIdStr") String tagId, @Param("thisDate") String date);
 
 	Page<CorpUserIntentionView> getCorpUserIntentionView(@Param("page") Page<CorpUserIntentionView> page, @Param("userId") Long userId, @Param("nickname") String nickname, @Param("tagIdStr") String tagId, @Param("thisDate") String date);
 }

+ 3 - 3
netflix-web/src/main/java/com/cyksj/web/controller/manage/corp/WxCorpController.java

@@ -357,9 +357,9 @@ public class WxCorpController {
 	 * 用户意愿饼图
 	 */
 	@GetMapping("/get/user/intention/pie")
-	public Result<UserIntentionPieView> getUserIntentionPie(String tagId, String date) {
-		UserIntentionPieView userIntentionPieView = corpUserTagMapper.getUserIntentionPie(tagId, date);
-		return GatewayResponse.SUCCESS.newBuilder().toResult(userIntentionPieView);
+	public Result<List<UserIntentionPieView>> getUserIntentionPie(String tagId, String date) {
+		List<UserIntentionPieView> userIntentionPieViews = corpUserTagMapper.getUserIntentionPie(tagId, date);
+		return GatewayResponse.SUCCESS.newBuilder().toResult(userIntentionPieViews);
 	}
 
 	/**