| | |
| | | package com.java110.core.smo.impl; |
| | | |
| | | import com.java110.config.properties.code.Java110Properties; |
| | | import com.java110.core.context.Environment; |
| | | import com.java110.core.smo.IComputeFeeSMO; |
| | | import com.java110.dto.RoomDto; |
| | | import com.java110.dto.community.CommunityDto; |
| | |
| | | |
| | | @Autowired(required = false) |
| | | private ITempCarFeeConfigAttrInnerServiceSMO tempCarFeeConfigAttrInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private Java110Properties java110Properties; |
| | | |
| | | @Override |
| | | public Date getFeeEndTime() { |
| | |
| | | BigDecimal feePrice = new BigDecimal("0.0"); |
| | | BigDecimal feeTotalPrice = new BigDecimal(0.0); |
| | | Map<String, Object> feeAmount = new HashMap<>(); |
| | | if(Environment.isOwnerPhone(java110Properties)){ |
| | | return getOwnerPhoneFee(feeAmount); |
| | | } |
| | | if (FeeDto.PAYER_OBJ_TYPE_ROOM.equals(feeDto.getPayerObjType())) { //房屋相关 |
| | | String computingFormula = feeDto.getComputingFormula(); |
| | | if (roomDto == null) { |
| | |
| | | throw new IllegalArgumentException("暂不支持该类公式"); |
| | | } |
| | | } |
| | | |
| | | feePrice.setScale(3, BigDecimal.ROUND_HALF_EVEN).doubleValue(); |
| | | feeAmount.put("feePrice", feePrice); |
| | | feeAmount.put("feeTotalPrice", feeTotalPrice); |
| | |
| | | return resMonth; |
| | | } |
| | | |
| | | |
| | | public Map getOwnerPhoneFee(Map feeAmount){ |
| | | if(Environment.testEnv()){ |
| | | feeAmount.put("feePrice",new BigDecimal("0.01")); |
| | | feeAmount.put("feeTotalPrice", new BigDecimal("0.01")); |
| | | } |
| | | return feeAmount; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * *字符串的日期格式的计算 |
| | | */ |