| @@ -32,20 +32,20 @@ public class WxCouponController extends BaseController { | |||||
| @ApiOperation("根据id(couponChannel)查询接口") | @ApiOperation("根据id(couponChannel)查询接口") | ||||
| @GetMapping("/detail") | @GetMapping("/detail") | ||||
| @ApiImplicitParams({ | @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 { | try { | ||||
| couponChannelId = Long.valueOf(id); | |||||
| couponChannelIdL = Long.valueOf(couponChannelId); | |||||
| } catch (NumberFormatException e) { | } 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 wxCouponChannel = new WxCouponChannel(); | ||||
| wxCouponChannel.setId(couponChannelId); | |||||
| wxCouponChannel.setId(couponChannelIdL); | |||||
| wxCouponChannel.setTenantId(getTenantId()); | wxCouponChannel.setTenantId(getTenantId()); | ||||
| WxCouponCVo wxCouponCVo = wxCouponService.selectDetailForCUser(wxCouponChannel); | WxCouponCVo wxCouponCVo = wxCouponService.selectDetailForCUser(wxCouponChannel); | ||||
| if (wxCouponCVo == null) | if (wxCouponCVo == null) | ||||