|
@@ -16,11 +16,8 @@ import com.tourism.common.huaweicloud.obs.util.MergeAvatarsFlexUtils;
|
|
import com.tourism.common.log.annotation.OperationLog;
|
|
import com.tourism.common.log.annotation.OperationLog;
|
|
import com.tourism.common.log.model.constant.SysOperationLogType;
|
|
import com.tourism.common.log.model.constant.SysOperationLogType;
|
|
import com.tourism.common.sequence.wrapper.IdGeneratorWrapper;
|
|
import com.tourism.common.sequence.wrapper.IdGeneratorWrapper;
|
|
-import com.tourism.webadmin.app.website.dto.TourismProjectTravelNotesWriteDetailPageDto;
|
|
|
|
-import com.tourism.webadmin.app.website.dto.TourismProjectTravelNotesWriteToWebDto;
|
|
|
|
-import com.tourism.webadmin.app.website.dto.WebsiteTourUserDto;
|
|
|
|
|
|
+import com.tourism.webadmin.app.website.dto.*;
|
|
import com.tourism.webadmin.app.website.model.TourShortImGroup;
|
|
import com.tourism.webadmin.app.website.model.TourShortImGroup;
|
|
-import com.tourism.webadmin.app.website.model.TourShortTopic;
|
|
|
|
import com.tourism.webadmin.app.website.model.TourShortUser;
|
|
import com.tourism.webadmin.app.website.model.TourShortUser;
|
|
import com.tourism.webadmin.app.website.service.TourTravelNotesPublishService;
|
|
import com.tourism.webadmin.app.website.service.TourTravelNotesPublishService;
|
|
import com.tourism.webadmin.app.website.vo.*;
|
|
import com.tourism.webadmin.app.website.vo.*;
|
|
@@ -30,14 +27,10 @@ import com.tourism.webadmin.back.model.*;
|
|
import com.tourism.webadmin.back.model.constant.AuditState;
|
|
import com.tourism.webadmin.back.model.constant.AuditState;
|
|
import com.tourism.webadmin.back.model.constant.UnmountState;
|
|
import com.tourism.webadmin.back.model.constant.UnmountState;
|
|
import com.tourism.webadmin.back.service.*;
|
|
import com.tourism.webadmin.back.service.*;
|
|
-import com.tourism.webadmin.back.vo.TourTravelNotesTopicVo;
|
|
|
|
import com.tourism.webadmin.back.vo.TourismProjectTravelNotesWriteVo;
|
|
import com.tourism.webadmin.back.vo.TourismProjectTravelNotesWriteVo;
|
|
-import com.tourism.webadmin.back.vo.TourismTravelNotesContentWriteVo;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-import ognl.Token;
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
-import org.apache.poi.ss.formula.functions.T;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -169,6 +162,10 @@ public class WebSiteTourismTravelNotesPublishController {
|
|
}
|
|
}
|
|
TourismProjectTravelNotesWriteVo tourismProjectTravelNotesWriteVo = MyModelUtil.copyTo(tourismProjectTravelNotesWrite, TourismProjectTravelNotesWriteVo.class);
|
|
TourismProjectTravelNotesWriteVo tourismProjectTravelNotesWriteVo = MyModelUtil.copyTo(tourismProjectTravelNotesWrite, TourismProjectTravelNotesWriteVo.class);
|
|
|
|
|
|
|
|
+ //填充图片
|
|
|
|
+
|
|
|
|
+ //填充关联话题
|
|
|
|
+ //填充关联用户
|
|
return ResponseResult.success(tourismProjectTravelNotesWriteVo);
|
|
return ResponseResult.success(tourismProjectTravelNotesWriteVo);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -404,11 +401,11 @@ public class WebSiteTourismTravelNotesPublishController {
|
|
*/
|
|
*/
|
|
@OperationLog(type = SysOperationLogType.LIST)
|
|
@OperationLog(type = SysOperationLogType.LIST)
|
|
@GetMapping("/getFouceEachFriendsByName")
|
|
@GetMapping("/getFouceEachFriendsByName")
|
|
- public ResponseResult<List<TourShortUserVo>> getFouceEachFriendsByName(String name) {
|
|
|
|
|
|
+ public ResponseResult<List<TourShortUserVo>> getFouceEachFriendsByName(@Validated TourFourceEachFriendsDto tourFourceEachFriendsDto) {
|
|
//limit20
|
|
//limit20
|
|
- PageMethod.startPage(1, 20, true);
|
|
|
|
|
|
+ PageMethod.startPage(tourFourceEachFriendsDto.getPageNum(), tourFourceEachFriendsDto.getPageSize(), true);
|
|
Long userId = TokenData.takeFromRequest().getUserId();
|
|
Long userId = TokenData.takeFromRequest().getUserId();
|
|
- List<TourShortUser> tourShortUserList = tourFansService.getFouceEachFriendsByName(userId, name);
|
|
|
|
|
|
+ List<TourShortUser> tourShortUserList = tourFansService.getFouceEachFriendsByName(userId, tourFourceEachFriendsDto.getName());
|
|
List<TourShortUserVo> tourShortUserVoList = MyModelUtil.copyCollectionTo(tourShortUserList, TourShortUserVo.class);
|
|
List<TourShortUserVo> tourShortUserVoList = MyModelUtil.copyCollectionTo(tourShortUserList, TourShortUserVo.class);
|
|
return ResponseResult.success(tourShortUserVoList);
|
|
return ResponseResult.success(tourShortUserVoList);
|
|
}
|
|
}
|
|
@@ -420,13 +417,16 @@ public class WebSiteTourismTravelNotesPublishController {
|
|
*/
|
|
*/
|
|
@OperationLog(type = SysOperationLogType.LIST)
|
|
@OperationLog(type = SysOperationLogType.LIST)
|
|
@GetMapping("/getTopicListByName")
|
|
@GetMapping("/getTopicListByName")
|
|
- public ResponseResult<List<TourShortTopicVo>> getTopicListByName(String name) {
|
|
|
|
|
|
+ public ResponseResult<List<TourTravelNotesTopic>> getTopicListByName(@Validated TourTravelNotesTopicByNameDto tourTravelNotesTopicByNameDto) {
|
|
//limit20
|
|
//limit20
|
|
- PageMethod.startPage(1, 20, true);
|
|
|
|
|
|
+ PageMethod.startPage(tourTravelNotesTopicByNameDto.getPageNum(), tourTravelNotesTopicByNameDto.getPageSize(), true);
|
|
TourTravelNotesTopic tourTravelNotesTopic = new TourTravelNotesTopic();
|
|
TourTravelNotesTopic tourTravelNotesTopic = new TourTravelNotesTopic();
|
|
- tourTravelNotesTopic.setName(name);
|
|
|
|
- List<TourShortTopic> tourTravelNotesTopicListByName = tourTravelNotesTopicService.getTourTravelNotesTopicListByName(name);
|
|
|
|
- List<TourShortTopicVo> tourTravelNotesTopicVoList = MyModelUtil.copyCollectionTo(tourTravelNotesTopicListByName, TourShortTopicVo.class);
|
|
|
|
|
|
+ tourTravelNotesTopic.setName(tourTravelNotesTopicByNameDto.getName());
|
|
|
|
+ MyOrderParam myOrderParam = new MyOrderParam();
|
|
|
|
+ String orderBy = MyOrderParam.buildOrderBy(myOrderParam, TourTravelNotesTopic.class);
|
|
|
|
+ myOrderParam.add(new MyOrderParam.OrderInfo("hotValue", false, null));
|
|
|
|
+ List<TourTravelNotesTopic> tourTravelNotesTopicList = tourTravelNotesTopicService.getTourTravelNotesTopicList(tourTravelNotesTopic,orderBy);
|
|
|
|
+ List<TourTravelNotesTopic> tourTravelNotesTopicVoList = MyModelUtil.copyCollectionTo(tourTravelNotesTopicList, TourTravelNotesTopic.class);
|
|
return ResponseResult.success(tourTravelNotesTopicVoList);
|
|
return ResponseResult.success(tourTravelNotesTopicVoList);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -437,11 +437,11 @@ public class WebSiteTourismTravelNotesPublishController {
|
|
*/
|
|
*/
|
|
@OperationLog(type = SysOperationLogType.LIST)
|
|
@OperationLog(type = SysOperationLogType.LIST)
|
|
@GetMapping("/getTakePartImGroupListByName")
|
|
@GetMapping("/getTakePartImGroupListByName")
|
|
- public ResponseResult<List<TourShortImGroupVo>> getTakePartImGroupListByName(String name) {
|
|
|
|
|
|
+ public ResponseResult<List<TourShortImGroupVo>> getTakePartImGroupListByName(@Validated TourTakePartImGroupDto tourTakePartImGroupDto) {
|
|
//limit20
|
|
//limit20
|
|
- PageMethod.startPage(1, 20, true);
|
|
|
|
|
|
+ PageMethod.startPage(tourTakePartImGroupDto.getPageNum(), tourTakePartImGroupDto.getPageSize(), true);
|
|
Long localUserId = TokenData.takeFromRequest().getUserId();
|
|
Long localUserId = TokenData.takeFromRequest().getUserId();
|
|
- List<TourShortImGroup> takePartImGroupListByName = tourImGroupService.getTakePartImGroupListByName(localUserId,name);
|
|
|
|
|
|
+ List<TourShortImGroup> takePartImGroupListByName = tourImGroupService.getTakePartImGroupListByName(localUserId,tourTakePartImGroupDto.getName());
|
|
|
|
|
|
//根据群聊id,填充每个群聊的人数以及每个群聊的头像
|
|
//根据群聊id,填充每个群聊的人数以及每个群聊的头像
|
|
Set<Long> set = new HashSet();
|
|
Set<Long> set = new HashSet();
|