|
@@ -164,6 +164,13 @@ public class TbFeeDetailsService extends ServiceImpl<TbFeeDetailsMapper, TbFeeDe
|
|
|
return getOne(qw);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查找放行记录所有的收费明细
|
|
|
+ * @param businessCarId
|
|
|
+ * @param carNo
|
|
|
+ * @param feeType
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public List<TbFeeDetails> getByBusinessCarIdAndCarNoAndFeeType(String businessCarId, String carNo, Integer feeType) {
|
|
|
QueryWrapper<TbFeeDetails> qw = new QueryWrapper<>();
|
|
|
qw.eq("business_car_id", businessCarId);
|
|
@@ -196,7 +203,13 @@ public class TbFeeDetailsService extends ServiceImpl<TbFeeDetailsMapper, TbFeeDe
|
|
|
return list(qw);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 处理停车费收费明细
|
|
|
+ * @param cars
|
|
|
+ * @param transactionId
|
|
|
+ * @param outTradeNo
|
|
|
+ * @param now
|
|
|
+ */
|
|
|
public void chargeParkFee(List<PriceBO> cars, String transactionId, String outTradeNo, Date now) {
|
|
|
log.info("进入计算停车费:{}", JSONUtil.toJsonStr(cars));
|
|
|
|
|
@@ -226,7 +239,7 @@ public class TbFeeDetailsService extends ServiceImpl<TbFeeDetailsMapper, TbFeeDe
|
|
|
String transactionIdStr = "";
|
|
|
String outTradeNoStr = "";
|
|
|
for (TbFeeDetails oldFee : oldFeeList) {
|
|
|
- if(!StrUtil.isEmpty(oldFee.getTransactionId())){
|
|
|
+ if(StrUtil.isNotEmpty(oldFee.getTransactionId())){
|
|
|
transactionIdStr = oldFee.getTransactionId();
|
|
|
outTradeNoStr = oldFee.getOutTradeNo();
|
|
|
}
|