Переглянути джерело

专家详情增加简历信息

tags/24080901
WendyYang 10 місяці тому
джерело
коміт
f3277a3243
7 змінених файлів з 31 додано та 8 видалено
  1. +9
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/expert/entity/ExpertUserFullInfo.java
  2. +6
    -3
      hz-pm-api/src/main/java/com/hz/pm/api/expert/model/vo/ExpertDetailVO.java
  3. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/domain/MeetingExpertJudge.java
  4. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/vo/MeetingByManagerVO.java
  5. +7
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java
  6. +0
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/service/IMeetingExpertJudgeService.java
  7. +5
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/user/manage/SyncMhUserOrgManage.java

+ 9
- 0
hz-pm-api/src/main/java/com/hz/pm/api/expert/entity/ExpertUserFullInfo.java Переглянути файл

@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
@@ -229,6 +230,14 @@ public class ExpertUserFullInfo implements Serializable {
private String duties;

/**
* 单位意见
*/
private String unitAdvice;

@ApiModelProperty("工作简历")
private String resume;

/**
* TODO:重新处理单位
*/
@TableField(exist = false)


+ 6
- 3
hz-pm-api/src/main/java/com/hz/pm/api/expert/model/vo/ExpertDetailVO.java Переглянути файл

@@ -131,11 +131,9 @@ public class ExpertDetailVO {
@ApiModelProperty(value = "籍贯")
private String hometown;


@ApiModelProperty(value = "民族")
private String nationality;


@ApiModelProperty(value = "出生日期")
private LocalDate birthday;

@@ -143,7 +141,6 @@ public class ExpertDetailVO {

private LocalDateTime inPutTime;


@ApiModelProperty(value = "是否入库")
private String isPut;

@@ -174,6 +171,12 @@ public class ExpertDetailVO {
@ApiModelProperty(value = "职务")
private String duties;

@ApiModelProperty("单位意见")
private String unitAdvice;

@ApiModelProperty("工作简历")
private String resume;

@ApiModelProperty("专家字典信息")
private Map<String, List<DictionaryVO>> dictionaries;



+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/domain/MeetingExpertJudge.java Переглянути файл

@@ -36,7 +36,7 @@ public class MeetingExpertJudge implements Serializable {
private Long meetingExpertId;

@ApiModelProperty("评分(1~10)")
private Integer score;
private Double score;

@ApiModelProperty("是否参加:1 准时、2 迟到、3 缺席")
private Integer attended;


+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/vo/MeetingByManagerVO.java Переглянути файл

@@ -21,6 +21,9 @@ import java.time.LocalDateTime;
@ApiModel("会议实体(管理员列表)")
public class MeetingByManagerVO {

@ApiModelProperty("专家评分")
private Double judgeScore;

@ApiModelProperty("会议ID")
private Long meetingId;



+ 7
- 2
hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java Переглянути файл

@@ -347,14 +347,19 @@ public class MeetingManage {
if (page.getTotal() == 0) {
return PageVo.empty();
}
List<Long> existsMeIds = expertJudgeService.listExistsMeetingExpertIds(meetingExpertIds);
List<MeetingExpertJudge> expertJudges = expertJudgeService.listByMeetingExpertIds(meetingExpertIds);
Map<Long, MeetingExpertJudge> expertJudgeMap = CollUtils.listToMap(expertJudges, MeetingExpertJudge::getMeetingExpertId);
PageVo<MeetingByManagerVO> result = new PageVo<>(new ArrayList<>(), page.getTotal());
page.getRecords().forEach(meeting -> {
MeetingByManagerVO item = meetingManageHelper.buildByMeeting(meeting);
ExpertInvitedRecordDTO info = mapByMeetingId.get(meeting.getId());
item.setMeetingExpertId(info.getMeetingExpertId());
item.setExpertStatus(info.getStatus());
item.setHasJudge(existsMeIds.contains(info.getMeetingExpertId()));
MeetingExpertJudge judge = expertJudgeMap.get(info.getMeetingExpertId());
item.setHasJudge(judge!= null);
if (judge != null) {
item.setJudgeScore(judge.getScore());
}
result.getRecords().add(item);
});
return result;


+ 0
- 1
hz-pm-api/src/main/java/com/hz/pm/api/meeting/service/IMeetingExpertJudgeService.java Переглянути файл

@@ -29,7 +29,6 @@ public interface IMeetingExpertJudgeService extends IService<MeetingExpertJudge>
return Collections.emptyList();
}
LambdaQueryWrapper<MeetingExpertJudge> query = Wrappers.lambdaQuery(MeetingExpertJudge.class)
.select(MeetingExpertJudge::getMeetingExpertId)
.in(MeetingExpertJudge::getMeetingExpertId, meetingExpertIds);
return CollUtils.fieldList(list(query), MeetingExpertJudge::getMeetingExpertId);
}


+ 5
- 1
hz-pm-api/src/main/java/com/hz/pm/api/user/manage/SyncMhUserOrgManage.java Переглянути файл

@@ -185,13 +185,15 @@ public class SyncMhUserOrgManage {
eui.setPolitical(expert.getPolitical());
eui.setDuties(expert.getDuties());
eui.setAddress(expert.getPlace());

eui.setUnitAdvice(expert.getUnit());
eui.setResume(expert.getRemark());
ExpertUserFullInfo oldEui = expertMap.get(eui.getMhExpertNo());
if (oldEui == null) {
UserInfo expertUser = new UserInfo();
expertUser.setUsername(expert.getName());
expertUser.setMobile(expert.getPhone());
expertUser.setRealName(expert.getName());
expertUser.setWechatOpenId(expert.getOpenId());
userInfoService.save(expertUser);
eui.setUserId(expertUser.getId());
} else {
@@ -236,6 +238,7 @@ public class SyncMhUserOrgManage {
eui.setExpertName(expert.getName());
eui.setMhExpertNo(expert.getExpertNo());
eui.setExperience(expert.getTextExperience());
eui.setResume(expert.getTextNotes());
eui.setGender(expert.getGender());
eui.setStar(expert.getStar());
eui.setIdCard(expert.getIdCard());
@@ -266,6 +269,7 @@ public class SyncMhUserOrgManage {
expertUser.setUsername(expert.getName());
expertUser.setMobile(expert.getPhone());
expertUser.setRealName(expert.getName());
expertUser.setWechatOpenId(expert.getOpenId());
userInfoService.save(expertUser);
eui.setUserId(expertUser.getId());
} else {


Завантаження…
Відмінити
Зберегти