|
@@ -354,11 +354,11 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
|
|
|
res.setOver24Hour(1);
|
|
|
res.setHourDesc(PartFeeEnum.OUT_24_HOURS.getDesc());
|
|
|
}
|
|
|
- TbItem partItem=tbItemService.findByAliasName(SystemObject.config.getPartItemAlias());
|
|
|
- if (partItem==null) {
|
|
|
- throw new AjaxError("未配置停车费规则");
|
|
|
- }
|
|
|
- List<TbItemFac> list = tbItemFacService.getByItemId(partItem.getId());
|
|
|
+// TbItem partItem=tbItemService.findByAliasName(SystemObject.config.getPartItemAlias());
|
|
|
+// if (partItem==null) {
|
|
|
+// throw new AjaxError("未配置停车费规则");
|
|
|
+// }
|
|
|
+ List<TbItemFac> list = tbItemFacService.list();
|
|
|
if (list.isEmpty()) {
|
|
|
throw new AjaxError("未配置停车费规则");
|
|
|
}
|
|
@@ -456,6 +456,9 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
|
|
|
if (CarEnum.PayTypeEnum.FEE_TYPE.getType().equals(tbBusinessCar.getPayType())) {
|
|
|
partMoney = new BigDecimal("0");
|
|
|
}
|
|
|
+ if (CarEnum.PayTypeEnum.HAS_PAY_TYPE.getType().equals(tbBusinessCar.getPayType())) {
|
|
|
+ inTime=tbBusinessCar.getPayTime();
|
|
|
+ }
|
|
|
if (partMoney.doubleValue() == 1) {
|
|
|
IOrderPriceRes partPriceRes = getPartMoney(inTime, outTime, tbBusinessCar.getCarNo(), tbBusinessCar.getColor());
|
|
|
BigDecimal partPrice = partPriceRes.getTotalOrderPrice();
|
|
@@ -693,9 +696,9 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
|
|
|
for (TbBusinessCar car : cars) {
|
|
|
String carNo = car.getCarNo().trim().toUpperCase();
|
|
|
String carType = car.getCarType();
|
|
|
- if (car.getCarSize() == null || car.getCarSize() <= 0) {
|
|
|
- throw new AjaxError(carNo + "规格不正确");
|
|
|
- }
|
|
|
+// if (car.getCarSize() == null || car.getCarSize() <= 0) {
|
|
|
+// throw new AjaxError(carNo + "规格不正确");
|
|
|
+// }
|
|
|
if (StrUtil.isEmpty(carType)) {
|
|
|
throw new BusinessException(carNo + "类型不能为空");
|
|
|
}
|