瀏覽代碼

会议关联项目增加区域限制

master
WendyYang 1 年之前
父節點
當前提交
e458ea07b7
共有 2 個檔案被更改,包括 5 行新增2 行删除
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/entity/req/MeetingOptionProjectReq.java
  2. +4
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/meeting/entity/req/MeetingOptionProjectReq.java 查看文件

@@ -13,7 +13,7 @@ import lombok.EqualsAndHashCode;
* @since 11:50 2023/3/16
*/
@Data
@EqualsAndHashCode
@EqualsAndHashCode(callSuper = true)
public class MeetingOptionProjectReq extends PagePo {

private String meetingType;


+ 4
- 1
pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java 查看文件

@@ -35,8 +35,8 @@ import com.ningdatech.pmapi.meeting.entity.enumeration.MeetingStatusEnum;
import com.ningdatech.pmapi.meeting.entity.req.*;
import com.ningdatech.pmapi.meeting.entity.vo.*;
import com.ningdatech.pmapi.meeting.helper.ExpertInviteHelper;
import com.ningdatech.pmapi.meeting.helper.MeetingManageHelper;
import com.ningdatech.pmapi.meeting.helper.MeetingCallOrMsgHelper;
import com.ningdatech.pmapi.meeting.helper.MeetingManageHelper;
import com.ningdatech.pmapi.meeting.helper.YxtCallOrSmsHelper;
import com.ningdatech.pmapi.meeting.service.*;
import com.ningdatech.pmapi.meeting.task.ExpertRandomInviteTask;
@@ -854,6 +854,9 @@ public class MeetingManage {
default:
return PageVo.empty();
}
UserInfoDetails userDetail = LoginUserUtil.loginUserDetail();
Collection<String> regionCodes = regionCache.listChildRegionCodeList(userDetail.getRegionCode(), userDetail.getRegionLevel());
query.in(Project::getAreaCode, regionCodes);
Page<Project> page = projectService.page(req.page(), query);
PageVo<MeetingReviewProjectVO> result = PageVo.of(null, page.getTotal());
if (result.getTotal() > 0) {


Loading…
取消
儲存