|
|
|
@@ -81,7 +81,7 @@ public class WxCouponSendController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
|
|
|
|
Object cUserId = params.get("cUserId") ; |
|
|
|
String cUserId = (String) params.get("cUserId"); |
|
|
|
|
|
|
|
if (!params.containsKey("wxCouponSendIds")) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
@@ -98,12 +98,12 @@ public class WxCouponSendController extends BaseController { |
|
|
|
wxCouponSend.setSendType(EnumCouponSendSendType.MERCHANT.getCode()); |
|
|
|
wxCouponSend.setStatus(EnumCouponSendStatus.VALID.getCode()); |
|
|
|
try { |
|
|
|
wxCouponSendService.handSel(wxCouponSend, cUserId); |
|
|
|
wxCouponSendService.handSel(wxCouponSend, Long.parseLong(cUserId)); |
|
|
|
} catch (MallinkException e) { |
|
|
|
logger.error("注券异常: " + e.getMessage()); |
|
|
|
logger.error("注券异常: ", e); |
|
|
|
return new ResultData(e.getErrorCode(), e.getMessage()); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("注券异常: " + e.getMessage()); |
|
|
|
logger.error("注券异常: ", e); |
|
|
|
return new ResultData(ErrorCode.COUPON_HANDSEL_VERIFY, e.getMessage()); |
|
|
|
} |
|
|
|
return new ResultData(); |
|
|
|
|