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