| | |
| | | package com.java110.fee.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.payFeeConfigDiscount.PayFeeConfigDiscountDto; |
| | | import com.java110.dto.payFee.PayFeeConfigDiscountDto; |
| | | import com.java110.fee.bmo.payFeeConfigDiscount.IDeletePayFeeConfigDiscountBMO; |
| | | import com.java110.fee.bmo.payFeeConfigDiscount.IGetPayFeeConfigDiscountBMO; |
| | | import com.java110.fee.bmo.payFeeConfigDiscount.ISavePayFeeConfigDiscountBMO; |
| | | import com.java110.fee.bmo.payFeeConfigDiscount.IUpdatePayFeeConfigDiscountBMO; |
| | | import com.java110.po.payFeeConfigDiscount.PayFeeConfigDiscountPo; |
| | | import com.java110.po.payFee.PayFeeConfigDiscountPo; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | Assert.hasKeyAndValue(reqJson, "configId", "请求报文中未包含configId"); |
| | | Assert.hasKeyAndValue(reqJson, "discountId", "请求报文中未包含discountId"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | // Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | // Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | |
| | | PayFeeConfigDiscountPo payFeeConfigDiscountPo = BeanConvertUtil.covertBean(reqJson, PayFeeConfigDiscountPo.class); |
| | | String paymaxEndTime = reqJson.getString("payMaxEndTime"); |
| | | if (StringUtil.isEmpty(paymaxEndTime)) { |
| | | //如果优惠最大时间为空,就默认为2037-12-31 00:00:00 |
| | | payFeeConfigDiscountPo.setPayMaxEndTime("2037-12-31 00:00:00"); |
| | | } |
| | | payFeeConfigDiscountPo.setPayMaxStartTime(reqJson.getString("payMaxStarTime")); |
| | | // if (StringUtil.isEmpty(paymaxEndTime)) { |
| | | // //如果优惠最大时间为空,就默认为2037-12-31 00:00:00 |
| | | // payFeeConfigDiscountPo.setPayMaxEndTime("2037-12-31 00:00:00"); |
| | | // } |
| | | return savePayFeeConfigDiscountBMOImpl.save(payFeeConfigDiscountPo); |
| | | } |
| | | |