| | |
| | | import com.java110.core.factory.TempCarFeeFactory; |
| | | import com.java110.dto.fee.TempCarFeeResult; |
| | | import com.java110.dto.machine.CarInoutDto; |
| | | import com.java110.dto.tempCarFeeConfig.TempCarFeeConfigAttrDto; |
| | | import com.java110.dto.tempCarFeeConfig.TempCarFeeConfigDto; |
| | | import com.java110.dto.fee.TempCarFeeConfigAttrDto; |
| | | import com.java110.dto.fee.TempCarFeeConfigDto; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | public static final String SPEC_CD_5600012005 = "5600012005"; |
| | | public static final String SPEC_CD_5600012006 = "5600012006"; |
| | | public static final String SPEC_CD_5600012007 = "5600012007"; |
| | | public static final String SPEC_CD_5600012008 = "5600012006"; |
| | | public static final String SPEC_CD_5600012008 = "5600012008"; |
| | | public static final String SPEC_CD_5600012009 = "5600012009"; |
| | | |
| | | @Override |
| | |
| | | |
| | | |
| | | //获取停车时间 |
| | | long min = TempCarFeeFactory.getTempCarMin(carInoutDto); |
| | | long min = TempCarFeeFactory.getTempCarCeilMin(carInoutDto); |
| | | |
| | | int freeMin = TempCarFeeFactory.getAttrValueInt(tempCarFeeConfigAttrDtos, SPEC_CD_5600012001); |
| | | |
| | |
| | | double baseMoney = 0.0; |
| | | |
| | | //免费时间中 |
| | | if (min < freeMin && !TempCarFeeFactory.judgeFinishPayTempCarFee(carInoutDto)) { |
| | | if (min <= freeMin && !TempCarFeeFactory.judgeFinishPayTempCarFee(carInoutDto)) { |
| | | return new TempCarFeeResult(carInoutDto.getCarNum(), 0.0, maxFeeMoney, baseMoney); |
| | | } |
| | | |