|
@@ -278,23 +278,27 @@ public class OrderComponents {
|
|
|
*/
|
|
*/
|
|
|
public void checkEmpty(YaQuoteInfoVo yaQuoteInfoVo) {
|
|
public void checkEmpty(YaQuoteInfoVo yaQuoteInfoVo) {
|
|
|
if (yaQuoteInfoVo.getCarInfo() == null) {
|
|
if (yaQuoteInfoVo.getCarInfo() == null) {
|
|
|
- throw new SystemException("carInfo不能为空!");
|
|
|
|
|
|
|
+ throw new SystemException("车辆信息 不能为空!");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (yaQuoteInfoVo.getPolicyHolderInfo() == null || yaQuoteInfoVo.getInsuredPersonInfo() == null) {
|
|
if (yaQuoteInfoVo.getPolicyHolderInfo() == null || yaQuoteInfoVo.getInsuredPersonInfo() == null) {
|
|
|
- throw new SystemException("policyHolderInfo/insuredPersonInfo 不能为空!");
|
|
|
|
|
|
|
+ throw new SystemException("被保人信息 / 被保人信息 不能为空!");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (StringUtils.isEmpty(yaQuoteInfoVo.getCarInfo().getFrameNo())) {
|
|
if (StringUtils.isEmpty(yaQuoteInfoVo.getCarInfo().getFrameNo())) {
|
|
|
throw new SystemException("车架号不能为空");
|
|
throw new SystemException("车架号不能为空");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (yaQuoteInfoVo.getRiskList() == null || yaQuoteInfoVo.getRiskList().isEmpty()) {
|
|
if (yaQuoteInfoVo.getRiskList() == null || yaQuoteInfoVo.getRiskList().isEmpty()) {
|
|
|
- throw new SystemException("riskList 不能为空!");
|
|
|
|
|
- } else {
|
|
|
|
|
- for (RiskInfoVo riskInfoVo : yaQuoteInfoVo.getRiskList()) {
|
|
|
|
|
- if (riskInfoVo.getStartDate() == null || riskInfoVo.getEndDate() == null) {
|
|
|
|
|
- throw new SystemException("riskList.startDate / riskList.endDate不能为空!");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ throw new SystemException("投保信息 不能为空!");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ for (RiskInfoVo riskInfoVo : yaQuoteInfoVo.getRiskList()) {
|
|
|
|
|
+ if (riskInfoVo.getStartDate() == null || riskInfoVo.getEndDate() == null) {
|
|
|
|
|
+ throw new SystemException("投保信息 起保日期 或 终保日期 不能为空!");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// /**
|
|
// /**
|