From e98bd8ec772ae9f210179b99feaab59ae21cb2d5 Mon Sep 17 00:00:00 2001 From: "Stormeye.Wu" Date: Tue, 28 Aug 2018 10:29:27 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=88=B8=E8=AF=A6=E6=83=85][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]:id=E6=8D=A2=E4=B8=BAcouponChannelId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simple/controller/WxCouponController.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mallinkCApi/src/main/java/com/simple/controller/WxCouponController.java b/mallinkCApi/src/main/java/com/simple/controller/WxCouponController.java index e5da28f68..8c1e56738 100644 --- a/mallinkCApi/src/main/java/com/simple/controller/WxCouponController.java +++ b/mallinkCApi/src/main/java/com/simple/controller/WxCouponController.java @@ -32,20 +32,20 @@ public class WxCouponController extends BaseController { @ApiOperation("根据id(couponChannel)查询接口") @GetMapping("/detail") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "couponChannelId", dataType = "String", paramType = "query", required = true)}) - public ResultData detail(String id) { - if (StringUtils.isBlank(id)) { - return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "id为空"); + @ApiImplicitParam(name = "couponChannelId", value = "couponChannelId", dataType = "String", paramType = "query", required = true)}) + public ResultData detail(String couponChannelId) { + if (StringUtils.isBlank(couponChannelId)) { + return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId为空"); } - Long couponChannelId = 0L; + Long couponChannelIdL = 0L; try { - couponChannelId = Long.valueOf(id); + couponChannelIdL = Long.valueOf(couponChannelId); } catch (NumberFormatException e) { - logger.error("id转换失败" + id); - return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "id转换失败" + id); + logger.error("id转换失败" + couponChannelId); + return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId转换失败" + couponChannelId); } WxCouponChannel wxCouponChannel = new WxCouponChannel(); - wxCouponChannel.setId(couponChannelId); + wxCouponChannel.setId(couponChannelIdL); wxCouponChannel.setTenantId(getTenantId()); WxCouponCVo wxCouponCVo = wxCouponService.selectDetailForCUser(wxCouponChannel); if (wxCouponCVo == null)