|
@@ -358,13 +358,12 @@ public class CmSvipHistoryServiceImpl implements CmSvipHistoryService {
|
|
public ResponseJson saveVipCoupon(SvipCouponForm svipcouponForm) {
|
|
public ResponseJson saveVipCoupon(SvipCouponForm svipcouponForm) {
|
|
CmVipCoupon cmVipCoupon = new CmVipCoupon();
|
|
CmVipCoupon cmVipCoupon = new CmVipCoupon();
|
|
cmVipCoupon.setId(svipcouponForm.getId());
|
|
cmVipCoupon.setId(svipcouponForm.getId());
|
|
|
|
+ cmVipCoupon.setUseTime(svipcouponForm.getMonth());
|
|
if (1 == svipcouponForm.getConfigure()) {
|
|
if (1 == svipcouponForm.getConfigure()) {
|
|
- cmVipCoupon.setUseTime(countMonth(new SimpleDateFormat("yyyy-MM").format(new Date())));
|
|
|
|
- svipcouponForm.setMonth(new SimpleDateFormat("yyyy-MM").format(new Date()));
|
|
|
|
|
|
+// svipcouponForm.setMonth(new SimpleDateFormat("yyyy-MM").format(new Date()));
|
|
cmVipCoupon.setStatus("1");
|
|
cmVipCoupon.setStatus("1");
|
|
cmVipCoupon.setDelFlag("1");
|
|
cmVipCoupon.setDelFlag("1");
|
|
} else {
|
|
} else {
|
|
- cmVipCoupon.setUseTime(svipcouponForm.getMonth());
|
|
|
|
cmVipCoupon.setStatus("1");
|
|
cmVipCoupon.setStatus("1");
|
|
cmVipCoupon.setDelFlag("0");
|
|
cmVipCoupon.setDelFlag("0");
|
|
}
|
|
}
|