Ctrip卡券记录接口优化

master
yangkai 6 years ago
parent d251b38bcc
commit a1a54931a3

@ -471,14 +471,15 @@ public class RetailAppServiceImp implements RetailAppService {
throw new BadRequestException("Partner not exists"); throw new BadRequestException("Partner not exists");
} }
JSONObject couponAccuessLog = new JSONObject(); JSONObject couponAccuessLog = new JSONObject();
Date date = new Date();
couponAccuessLog.put("client_id", client_id); couponAccuessLog.put("client_id", client_id);
couponAccuessLog.put("order_id", "非平台订单"); couponAccuessLog.put("order_id", "非平台订单");
couponAccuessLog.put("coupon_id", coupon_id); couponAccuessLog.put("coupon_id", coupon_id);
couponAccuessLog.put("customer_openid", "非平台订单"); couponAccuessLog.put("customer_openid", "非平台订单");
couponAccuessLog.put("coupon_deal_amount", 0); couponAccuessLog.put("coupon_deal_amount", 0);
couponAccuessLog.put("currency", "AUD"); couponAccuessLog.put("currency", "AUD");
couponAccuessLog.put("creation_date", new Date()); couponAccuessLog.put("creation_date", date);
couponAccuessLog.put("last_update_date", new Date()); couponAccuessLog.put("last_update_date", date);
couponAccuessLog.put("is_valid", 1); couponAccuessLog.put("is_valid", 1);
couponAccuessLogMapper.save(couponAccuessLog); couponAccuessLogMapper.save(couponAccuessLog);
} }

@ -569,8 +569,8 @@ public class RetailAppController {
return retailAppService.getCouponCusCouponLog(client_moniker, appQueryBean); return retailAppService.getCouponCusCouponLog(client_moniker, appQueryBean);
} }
@RequestMapping(value = "/cus/coupon_accuess_log/{client_id}/save", method = RequestMethod.POST) @RequestMapping(value = "/cus/coupon_accuess_log/{coupon_id}", method = RequestMethod.POST)
public void saveCouponAccuessLog(@PathVariable int client_id, @RequestParam String coupon_id) { public void saveCouponAccuessLog(@PathVariable String coupon_id, @RequestParam int client_id) {
retailAppService.saveCouponAccuessLog(client_id, coupon_id); retailAppService.saveCouponAccuessLog(client_id, coupon_id);
} }

Loading…
Cancel
Save