| @@ -19,6 +19,7 @@ import org.apache.log4j.Logger; | |||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||
| import java.util.HashMap; | |||||
| import java.util.Map; | import java.util.Map; | ||||
| @RestController | @RestController | ||||
| @@ -93,4 +94,22 @@ public class WxCouponOrderController extends BaseController { | |||||
| return wxCouponOrderService.detailCUserVo(getUser().getId(), couponOrderId); | return wxCouponOrderService.detailCUserVo(getUser().getId(), couponOrderId); | ||||
| } | } | ||||
| @ApiOperation(value = "卡券状态接口") | |||||
| @GetMapping("getStatus") | |||||
| @ApiImplicitParams({ | |||||
| @ApiImplicitParam(name = "couponOrderId", value = "券ID", dataType = "string", paramType = "query", required = true) | |||||
| }) | |||||
| public ResultData getStatus(String couponOrderId) { | |||||
| if(couponOrderId == null) { | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); | |||||
| } | |||||
| Map res = new HashMap(); | |||||
| res.put("CouponOrderStatus",wxCouponOrderService.getById(Long.valueOf(couponOrderId)).getCouponOrderStatus() ); | |||||
| return new ResultData(res); | |||||
| } | |||||
| } | } | ||||