|
|
@ -11,9 +11,11 @@ import com.hai.entity.HighCouponCode; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.model.UserInfoModel; |
|
|
|
import com.hai.model.UserInfoModel; |
|
|
|
import com.hai.service.HighCouponCodeService; |
|
|
|
import com.hai.service.HighCouponCodeService; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
@ -29,6 +31,9 @@ import java.util.Map; |
|
|
|
* @Description: 卡卷销售码 |
|
|
|
* @Description: 卡卷销售码 |
|
|
|
* @Date: 2021/3/22 19:39 |
|
|
|
* @Date: 2021/3/22 19:39 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Controller |
|
|
|
|
|
|
|
@RequestMapping(value = "/couponCode") |
|
|
|
|
|
|
|
@Api(value = "卡卷销售码接口") |
|
|
|
public class HighCouponCodeController { |
|
|
|
public class HighCouponCodeController { |
|
|
|
|
|
|
|
|
|
|
|
private static Logger log = LoggerFactory.getLogger(HighCouponCodeController.class); |
|
|
|
private static Logger log = LoggerFactory.getLogger(HighCouponCodeController.class); |
|
|
@ -41,12 +46,14 @@ public class HighCouponCodeController { |
|
|
|
@ApiOperation(value = "销售码列表") |
|
|
|
@ApiOperation(value = "销售码列表") |
|
|
|
public ResponseData getCouponCodeList(@RequestParam(name = "couponId", required = true) Long couponId, |
|
|
|
public ResponseData getCouponCodeList(@RequestParam(name = "couponId", required = true) Long couponId, |
|
|
|
@RequestParam(name = "status", required = false) Integer status, |
|
|
|
@RequestParam(name = "status", required = false) Integer status, |
|
|
|
|
|
|
|
@RequestParam(name = "salesCode", required = false) String salesCode, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("couponId", couponId); |
|
|
|
map.put("couponId", couponId); |
|
|
|
map.put("status", status); |
|
|
|
map.put("status", status); |
|
|
|
|
|
|
|
map.put("salesCode", salesCode); |
|
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highCouponCodeService.getCouponCodeList(map))); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highCouponCodeService.getCouponCodeList(map))); |
|
|
|