update 新增会议

This commit is contained in:
lijiarao
2021-09-03 14:44:11 +08:00
parent 1516545b69
commit 4ca3d33291
3 changed files with 8 additions and 7 deletions
@@ -9,15 +9,15 @@ public class MeetingCommon {
/**
* 工作组会议
*/
public final static String WORKING_GROUP_MEETING = "工作组会议";
public final static String WORKING_GROUP_MEETING = "1";
/**
* 标协会议
*/
public final static String STANDARD_MEETING = "标协会议";
public final static String STANDARD_MEETING = "2";
/**
* 国际研讨会
*/
public final static String INTERNATIONAL_MEETING = "国际研讨会";
public final static String INTERNATIONAL_MEETING = "3";
}
@@ -1,5 +1,6 @@
package com.jero.meeting.service.impl;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jero.common.exception.JeroBootException;
import com.jero.common.system.api.ISysBaseAPI;
@@ -58,11 +59,11 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
}
//判断会议类型
String meetingType = payMeetingVO.getMeetingType();
Map<String, String> meetingTypeMap = sysBaseApi.queryDictItemsMapByCode("meeting_type");
if (!meetingTypeMap.containsKey(meetingType)) {
String type = sysBaseApi.translateDict("meeting_type", meetingType);
if (StrUtil.isBlank(type)) {
throw new JeroBootException("会议类型不存在");
}else {
payMeeting.setMeetingType(Integer.valueOf(meetingTypeMap.get(meetingType)));
payMeeting.setMeetingType(Integer.valueOf(meetingType));
}
//判断会议联系人
String directorId = payMeetingVO.getDirectorId();
@@ -46,7 +46,7 @@ public class PayMeetingVO implements Serializable {
/**标协会议类型*/
@Excel(name = "标协会议类型", width = 15,dicCode = "standard_meeting_type")
@ApiModelProperty(value = "标协会议类型")
@NotBlank(message = "会议类型不能为空", groups = StandardMeeting.class)
@NotBlank(message = "标协会议类型不能为空", groups = StandardMeeting.class)
private String tbMeetingType;
/**工作组项目id*/