| | |
| | | |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.applyRoomDiscount.ApplyRoomDiscountDto; |
| | | import com.java110.dto.room.ApplyRoomDiscountDto; |
| | | import com.java110.dto.fee.FeeDetailDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.feeDiscount.ComputeDiscountDto; |
| | | import com.java110.dto.feeDiscount.FeeDiscountDto; |
| | | import com.java110.dto.feeDiscount.FeeDiscountRuleDto; |
| | | import com.java110.dto.feeDiscount.FeeDiscountSpecDto; |
| | | import com.java110.dto.payFeeConfigDiscount.PayFeeConfigDiscountDto; |
| | | import com.java110.dto.fee.ComputeDiscountDto; |
| | | import com.java110.dto.fee.FeeDiscountDto; |
| | | import com.java110.dto.fee.FeeDiscountRuleDto; |
| | | import com.java110.dto.fee.FeeDiscountSpecDto; |
| | | import com.java110.dto.payFee.PayFeeConfigDiscountDto; |
| | | import com.java110.fee.dao.IFeeDiscountServiceDao; |
| | | import com.java110.fee.discount.IComputeDiscount; |
| | | import com.java110.intf.fee.*; |
| | | import com.java110.po.feeDiscount.FeeDiscountPo; |
| | | import com.java110.po.fee.FeeDiscountPo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.factory.ApplicationContextFactory; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | feeDiscountDto.setDiscountId(tmpPayFeeConfigDiscountDto.getDiscountId()); |
| | | //查询打折表 |
| | | List<FeeDiscountDto> feeDiscountInfo = BeanConvertUtil.covertBeanList(feeDiscountServiceDaoImpl.getFeeDiscountInfo(BeanConvertUtil.beanCovertMap(feeDiscountDto)), FeeDiscountDto.class); |
| | | Assert.listOnlyOne(feeDiscountInfo, "查询打折表错误!"); |
| | | //Assert.listOnlyOne(feeDiscountInfo, "查询打折表错误!"); |
| | | if(feeDiscountInfo == null || feeDiscountInfo.size() < 1){ |
| | | continue; |
| | | } |
| | | FeeDiscountRuleDto feeDiscountRuleDto = new FeeDiscountRuleDto(); |
| | | feeDiscountRuleDto.setRuleId(feeDiscountInfo.get(0).getRuleId()); |
| | | //查询打折规则表 |
| | | List<FeeDiscountRuleDto> feeDiscountRuleDtos = feeDiscountRuleInnerServiceSMOImpl.queryFeeDiscountRules(feeDiscountRuleDto); |
| | | Assert.listOnlyOne(feeDiscountRuleDtos, "查询打折规则表错误!"); |
| | | //Assert.listOnlyOne(feeDiscountRuleDtos, "查询打折规则表错误!"); |
| | | if(feeDiscountRuleDtos == null || feeDiscountRuleDtos.size() < 1){ |
| | | continue; |
| | | } |
| | | if (!StringUtil.isEmpty(feeDiscountRuleDtos.get(0).getBeanImpl()) && feeDiscountRuleDtos.get(0).getBeanImpl().equals("reductionMonthFeeRule")) { //赠送规则 |
| | | FeeDiscountSpecDto feeDiscountSpecDto = new FeeDiscountSpecDto(); |
| | | feeDiscountSpecDto.setDiscountId(tmpPayFeeConfigDiscountDto.getDiscountId()); |