zoujiajian há 2 anos atrás
pai
commit
5bcd011d0c

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

@@ -28,5 +28,5 @@ public interface CorpUserTagMapper extends BaseMapper<CorpUserTag> {
 
 	UserIntentionPieView getUserIntentionPie(@Param("tagIdStr") String tagId, @Param("thisDate") String date);
 
-	Page<CorpUserIntentionView> getCorpUserIntentionView(@Param("userId") Long userId, @Param("nickname") String nickname, @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);
 }

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

@@ -366,8 +366,8 @@ public class WxCorpController {
 	 * 标签用户列表
 	 */
 	@GetMapping("/get/tag/user/list")
-	public Result<Page<CorpUserIntentionView>> getCorpUserIntentionView(Long userId, String nickname, String tagId, String date) {
-		Page<CorpUserIntentionView> page = corpUserTagMapper.getCorpUserIntentionView(userId, nickname, tagId, date);
+	public Result<Page<CorpUserIntentionView>> getCorpUserIntentionView(Long userId, String nickname, String tagId, String date, @RequestParam(defaultValue = "1") Integer start, @RequestParam(defaultValue = "10") Integer limit) {
+		Page<CorpUserIntentionView> page = corpUserTagMapper.getCorpUserIntentionView(new Page<>(start, limit), userId, nickname, tagId, date);
 		return GatewayResponse.SUCCESS.newBuilder().toResult(page);
 	}
 }