update 新增会议
This commit is contained in:
@@ -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";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-3
@@ -1,5 +1,6 @@
|
|||||||
package com.jero.meeting.service.impl;
|
package com.jero.meeting.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.jero.common.exception.JeroBootException;
|
import com.jero.common.exception.JeroBootException;
|
||||||
import com.jero.common.system.api.ISysBaseAPI;
|
import com.jero.common.system.api.ISysBaseAPI;
|
||||||
@@ -58,11 +59,11 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
|
|||||||
}
|
}
|
||||||
//判断会议类型
|
//判断会议类型
|
||||||
String meetingType = payMeetingVO.getMeetingType();
|
String meetingType = payMeetingVO.getMeetingType();
|
||||||
Map<String, String> meetingTypeMap = sysBaseApi.queryDictItemsMapByCode("meeting_type");
|
String type = sysBaseApi.translateDict("meeting_type", meetingType);
|
||||||
if (!meetingTypeMap.containsKey(meetingType)) {
|
if (StrUtil.isBlank(type)) {
|
||||||
throw new JeroBootException("会议类型不存在");
|
throw new JeroBootException("会议类型不存在");
|
||||||
}else {
|
}else {
|
||||||
payMeeting.setMeetingType(Integer.valueOf(meetingTypeMap.get(meetingType)));
|
payMeeting.setMeetingType(Integer.valueOf(meetingType));
|
||||||
}
|
}
|
||||||
//判断会议联系人
|
//判断会议联系人
|
||||||
String directorId = payMeetingVO.getDirectorId();
|
String directorId = payMeetingVO.getDirectorId();
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class PayMeetingVO implements Serializable {
|
|||||||
/**标协会议类型*/
|
/**标协会议类型*/
|
||||||
@Excel(name = "标协会议类型", width = 15,dicCode = "standard_meeting_type")
|
@Excel(name = "标协会议类型", width = 15,dicCode = "standard_meeting_type")
|
||||||
@ApiModelProperty(value = "标协会议类型")
|
@ApiModelProperty(value = "标协会议类型")
|
||||||
@NotBlank(message = "会议类型不能为空", groups = StandardMeeting.class)
|
@NotBlank(message = "标协会议类型不能为空", groups = StandardMeeting.class)
|
||||||
private String tbMeetingType;
|
private String tbMeetingType;
|
||||||
|
|
||||||
/**工作组项目id*/
|
/**工作组项目id*/
|
||||||
|
|||||||
Reference in New Issue
Block a user