|
|
@@ -610,6 +610,18 @@ public class BizWaybillOrderServiceImpl implements IBizWaybillOrderService
|
|
|
errorMsg.append("产品类型不存在;");
|
|
|
}
|
|
|
|
|
|
+ // 校验附加服务
|
|
|
+ if (!"是".equals(dto.getIsPack()) && !"否".equals(dto.getIsPack())) {
|
|
|
+ errorMsg.append("包装服务参数有误;");
|
|
|
+ }
|
|
|
+ if (!"是".equals(dto.getIsReceiptCollect()) && !"否".equals(dto.getIsReceiptCollect())) {
|
|
|
+ errorMsg.append("签单返还参数有误;");
|
|
|
+ }
|
|
|
+ if (dto.getGuaranteeMoney().compareTo(new BigDecimal("0")) <= 0) {
|
|
|
+ errorMsg.append("保价金额不能小于等于0;");
|
|
|
+ }
|
|
|
+ dto.setAddedService(getAddedService(dto));
|
|
|
+
|
|
|
if (StringUtils.isNotBlank(errorMsg)) {
|
|
|
throw new ServiceException(errorMsg.toString());
|
|
|
}
|