| | |
| | | if (byId == null) { |
| | | byId=new VipSetting(); |
| | | byId.setId(setPriceDTO.getId()); |
| | | if (setPriceDTO.getId()==1) byId.setVip_name("月卡会员"); |
| | | if (setPriceDTO.getId()==2) byId.setVip_name("季卡会员"); |
| | | if (setPriceDTO.getId()==3) byId.setVip_name("半年卡会员"); |
| | | if (setPriceDTO.getId()==4) byId.setVip_name("年卡会员"); |
| | | byId.setVip_price(setPriceDTO.getVip_price()); |
| | | if (setPriceDTO.getId()==1) byId.setVipName("月卡会员"); |
| | | if (setPriceDTO.getId()==2) byId.setVipName("季卡会员"); |
| | | if (setPriceDTO.getId()==3) byId.setVipName("半年卡会员"); |
| | | if (setPriceDTO.getId()==4) byId.setVipName("年卡会员"); |
| | | byId.setVipPrice(setPriceDTO.getVip_price()); |
| | | this.save(byId); |
| | | }else { |
| | | byId.setVip_price(setPriceDTO.getVip_price()); |
| | | byId.setVipPrice(setPriceDTO.getVip_price()); |
| | | this.updateById(byId); |
| | | } |
| | | |