|
|
|
@ -479,7 +479,7 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void saveCouponAccuessLog(int client_id, String coupon_id) {
|
|
|
|
|
public void saveCouponAccuessLog(int client_id, String coupon_id, String remark) {
|
|
|
|
|
JSONObject client = clientMapper.findClient(client_id);
|
|
|
|
|
if (client == null) {
|
|
|
|
|
throw new BadRequestException("Partner not exists");
|
|
|
|
@ -487,14 +487,15 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
JSONObject couponAccuessLog = new JSONObject();
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
couponAccuessLog.put("client_id", client_id);
|
|
|
|
|
couponAccuessLog.put("order_id", "非平台订单");
|
|
|
|
|
couponAccuessLog.put("order_id", "NON_PLATFORM_ORDER");
|
|
|
|
|
couponAccuessLog.put("coupon_id", "CTRIP_"+coupon_id);
|
|
|
|
|
couponAccuessLog.put("customer_openid", "非平台订单");
|
|
|
|
|
couponAccuessLog.put("customer_openid", "NON_PLATFORM_ORDER");
|
|
|
|
|
couponAccuessLog.put("coupon_deal_amount", 0);
|
|
|
|
|
couponAccuessLog.put("currency", "AUD");
|
|
|
|
|
couponAccuessLog.put("creation_date", date);
|
|
|
|
|
couponAccuessLog.put("last_update_date", date);
|
|
|
|
|
couponAccuessLog.put("is_valid", 1);
|
|
|
|
|
couponAccuessLog.put("remark", remark);
|
|
|
|
|
couponAccuessLogMapper.save(couponAccuessLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -503,6 +504,18 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
return royalPayCMSSupport.getStyle();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void cancelCouponAccuessLog(String accuess_id, String remark) {
|
|
|
|
|
JSONObject couponAccuessLog = new JSONObject();
|
|
|
|
|
couponAccuessLog.put("accuess_id", accuess_id);
|
|
|
|
|
couponAccuessLog.put("is_valid", 0);
|
|
|
|
|
couponAccuessLog.put("last_update_date", new Date());
|
|
|
|
|
if (StringUtils.isNotEmpty(remark)) {
|
|
|
|
|
couponAccuessLog.put("remark", remark);
|
|
|
|
|
}
|
|
|
|
|
couponAccuessLogMapper.update(couponAccuessLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateClient(JSONObject device, AppClientBean appClientBean) {
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
|