old mode 100644
new mode 100755
| | |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/payFeeConfigDiscount") |
| | | public class PayFeeConfigDiscountApi { |
| | | |
| | | @Autowired |
| | | private ISavePayFeeConfigDiscountBMO savePayFeeConfigDiscountBMOImpl; |
| | | |
| | | @Autowired |
| | | private IUpdatePayFeeConfigDiscountBMO updatePayFeeConfigDiscountBMOImpl; |
| | | |
| | | @Autowired |
| | | private IDeletePayFeeConfigDiscountBMO deletePayFeeConfigDiscountBMOImpl; |
| | | |
| | |
| | | |
| | | PayFeeConfigDiscountPo payFeeConfigDiscountPo = BeanConvertUtil.covertBean(reqJson, PayFeeConfigDiscountPo.class); |
| | | String paymaxEndTime = reqJson.getString("payMaxEndTime"); |
| | | if(StringUtil.isEmpty(paymaxEndTime)){ |
| | | payFeeConfigDiscountPo.setPayMaxEndTime(null); |
| | | if (StringUtil.isEmpty(paymaxEndTime)) { |
| | | //如果优惠最大时间为空,就默认为2037-12-31 00:00:00 |
| | | payFeeConfigDiscountPo.setPayMaxEndTime("2037-12-31 00:00:00"); |
| | | } |
| | | return savePayFeeConfigDiscountBMOImpl.save(payFeeConfigDiscountPo); |
| | | } |