fix 添加参会人校验
This commit is contained in:
+1
-2
@@ -126,14 +126,13 @@ public class PayMeetingSituation implements Serializable {
|
|||||||
/**演讲题目*/
|
/**演讲题目*/
|
||||||
@Excel(name = "演讲题目", width = 15)
|
@Excel(name = "演讲题目", width = 15)
|
||||||
@ApiModelProperty(value = "演讲题目")
|
@ApiModelProperty(value = "演讲题目")
|
||||||
@NotBlank(message = "演讲题目不能为空",groups = Guest.class)
|
|
||||||
@Size(max = 50, message = "演讲题目最大为50字符")
|
@Size(max = 50, message = "演讲题目最大为50字符")
|
||||||
private String speechTopic;
|
private String speechTopic;
|
||||||
|
|
||||||
/**演讲ppt*/
|
/**演讲ppt*/
|
||||||
@Excel(name = "演讲ppt", width = 15)
|
@Excel(name = "演讲ppt", width = 15)
|
||||||
@ApiModelProperty(value = "演讲ppt")
|
@ApiModelProperty(value = "演讲ppt")
|
||||||
@NotBlank(message = "演讲ppt不能为空",groups = Guest.class)
|
//@NotBlank(message = "演讲ppt不能为空",groups = Guest.class)
|
||||||
private String speechPpt;
|
private String speechPpt;
|
||||||
|
|
||||||
/**照片*/
|
/**照片*/
|
||||||
|
|||||||
+5
-3
@@ -182,7 +182,9 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
PayContactsManagement contactsManagement = contactsManagementService.getById(companyContactId);
|
PayContactsManagement contactsManagement = contactsManagementService.getById(companyContactId);
|
||||||
//处理联系人
|
//处理联系人
|
||||||
canHuiContact(payMeetingSituation1, companyId, contactsManagement);
|
canHuiContact(payMeetingSituation1, companyId, contactsManagement);
|
||||||
|
//存入打包字段
|
||||||
|
payMeetingSituation1.setPack(PayProjectCommon.PACKAGING0);
|
||||||
|
payMeetingSituation1.setNeedInvoice(PayProjectCommon.NO);
|
||||||
//判断身份
|
//判断身份
|
||||||
Integer identity = payMeetingSituation.getIdentity();
|
Integer identity = payMeetingSituation.getIdentity();
|
||||||
//国际研讨会会议的嘉宾和其他类型不同
|
//国际研讨会会议的嘉宾和其他类型不同
|
||||||
@@ -227,6 +229,7 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BeanUtils.copyProperties(internationalGuestVO, payMeetingSituation1);
|
||||||
//参会人
|
//参会人
|
||||||
} else if (identity.equals(MeetingSubitemCommon.CAN_HUI_REN)) {
|
} else if (identity.equals(MeetingSubitemCommon.CAN_HUI_REN)) {
|
||||||
CommonPeopleVO commonPeopleVO = new CommonPeopleVO();
|
CommonPeopleVO commonPeopleVO = new CommonPeopleVO();
|
||||||
@@ -240,8 +243,7 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
payMeetingSituation1.setPack(PayProjectCommon.PACKAGING1);
|
payMeetingSituation1.setPack(PayProjectCommon.PACKAGING1);
|
||||||
payMeetingSituation1.setAmountReceivable(new BigDecimal(0));
|
payMeetingSituation1.setAmountReceivable(new BigDecimal(0));
|
||||||
} else {
|
} else {
|
||||||
//存入打包字段
|
|
||||||
payMeetingSituation1.setPack(PayProjectCommon.PACKAGING0);
|
|
||||||
payMeetingSituation1.setNeedInvoice(payMeetingSituation.getNeedInvoice());
|
payMeetingSituation1.setNeedInvoice(payMeetingSituation.getNeedInvoice());
|
||||||
payMeetingSituation1.setPaymentRecord(payMeetingSituation.getPaymentRecord());
|
payMeetingSituation1.setPaymentRecord(payMeetingSituation.getPaymentRecord());
|
||||||
//如果是标协会议判断会员类型
|
//如果是标协会议判断会员类型
|
||||||
|
|||||||
+3
-4
@@ -25,14 +25,13 @@ public class InternationalGuestVO {
|
|||||||
/**演讲题目*/
|
/**演讲题目*/
|
||||||
@Excel(name = "演讲题目", width = 15)
|
@Excel(name = "演讲题目", width = 15)
|
||||||
@ApiModelProperty(value = "演讲题目")
|
@ApiModelProperty(value = "演讲题目")
|
||||||
@NotBlank(message = "演讲题目不能为空",groups = Guest.class)
|
|
||||||
@Size(max = 50, message = "演讲题目最大为50字符",groups = Guest.class)
|
@Size(max = 50, message = "演讲题目最大为50字符",groups = Guest.class)
|
||||||
private String speechTopic;
|
private String speechTopic;
|
||||||
|
|
||||||
/**演讲ppt*/
|
/**演讲ppt*/
|
||||||
@Excel(name = "演讲ppt", width = 15)
|
@Excel(name = "演讲ppt", width = 15)
|
||||||
@ApiModelProperty(value = "演讲ppt")
|
@ApiModelProperty(value = "演讲ppt")
|
||||||
@NotBlank(message = "演讲ppt不能为空",groups = Guest.class)
|
//@NotBlank(message = "演讲ppt不能为空",groups = Guest.class)
|
||||||
private String speechPpt;
|
private String speechPpt;
|
||||||
|
|
||||||
/**照片*/
|
/**照片*/
|
||||||
@@ -57,7 +56,7 @@ public class InternationalGuestVO {
|
|||||||
/**是否回民*/
|
/**是否回民*/
|
||||||
@Excel(name = "是否回民", width = 15)
|
@Excel(name = "是否回民", width = 15)
|
||||||
@ApiModelProperty(value = "是否回民")
|
@ApiModelProperty(value = "是否回民")
|
||||||
@NotBlank(message = "是否回民不能为空",groups = HaveMeals.class)
|
@NotNull(message = "是否回民不能为空",groups = HaveMeals.class)
|
||||||
@Min(value = 0,groups = HaveMeals.class)
|
@Min(value = 0,groups = HaveMeals.class)
|
||||||
@Max(value = 1,groups = HaveMeals.class)
|
@Max(value = 1,groups = HaveMeals.class)
|
||||||
private Integer huiPeople;
|
private Integer huiPeople;
|
||||||
@@ -65,7 +64,7 @@ public class InternationalGuestVO {
|
|||||||
/**是否入住协议酒店*/
|
/**是否入住协议酒店*/
|
||||||
@Excel(name = "是否入住协议酒店", width = 15)
|
@Excel(name = "是否入住协议酒店", width = 15)
|
||||||
@ApiModelProperty(value = "是否入住协议酒店")
|
@ApiModelProperty(value = "是否入住协议酒店")
|
||||||
@NotBlank(message = "是否入住协议酒店不能为空",groups = VIP.class)
|
@NotNull(message = "是否入住协议酒店不能为空",groups = VIP.class)
|
||||||
@Min(0)
|
@Min(0)
|
||||||
@Max(1)
|
@Max(1)
|
||||||
private Integer checkInHotel;
|
private Integer checkInHotel;
|
||||||
|
|||||||
+1
-2
@@ -113,14 +113,13 @@ public class PayMeetingSituationVO {
|
|||||||
/**演讲题目*/
|
/**演讲题目*/
|
||||||
@Excel(name = "演讲题目", width = 15)
|
@Excel(name = "演讲题目", width = 15)
|
||||||
@ApiModelProperty(value = "演讲题目")
|
@ApiModelProperty(value = "演讲题目")
|
||||||
@NotBlank(message = "演讲题目不能为空",groups = Guest.class)
|
|
||||||
@Size(max = 50, message = "演讲题目最大为50字符")
|
@Size(max = 50, message = "演讲题目最大为50字符")
|
||||||
private String speechTopic;
|
private String speechTopic;
|
||||||
|
|
||||||
/**演讲ppt*/
|
/**演讲ppt*/
|
||||||
@Excel(name = "演讲ppt", width = 15)
|
@Excel(name = "演讲ppt", width = 15)
|
||||||
@ApiModelProperty(value = "演讲ppt")
|
@ApiModelProperty(value = "演讲ppt")
|
||||||
@NotBlank(message = "演讲ppt不能为空",groups = Guest.class)
|
//@NotBlank(message = "演讲ppt不能为空",groups = Guest.class)
|
||||||
private String speechPpt;
|
private String speechPpt;
|
||||||
|
|
||||||
/**照片*/
|
/**照片*/
|
||||||
|
|||||||
Reference in New Issue
Block a user