|
|
@@ -894,9 +894,9 @@ public class KwtLogisticsOrderConsignmentService {
|
|
|
private void checkLogisticsOrder(AddLogisticsOrderParam addOrderDTO) {
|
|
|
/**计费方式验证*/
|
|
|
if (!DictEnum.CHARGING_TYPE_4.getValue().equals(addOrderDTO.getBillingMode())) {
|
|
|
- if (Objects.isNull(addOrderDTO.getGoodsId())) {
|
|
|
- throw new RuntimeException("商品id不能为空");
|
|
|
- }
|
|
|
+// if (Objects.isNull(addOrderDTO.getGoodsId())) {
|
|
|
+// throw new RuntimeException("商品id不能为空");
|
|
|
+// }
|
|
|
if (addOrderDTO.getPrice() == null || addOrderDTO.getPrice().compareTo(NumberConstant.ZERO_TWO) < 1) {
|
|
|
throw new RuntimeException("运价填写错误");
|
|
|
}
|