|
|
@ -2,6 +2,7 @@ package com.yxt.yyth.biz.lpkgiftcard; |
|
|
|
|
|
|
|
import cn.hutool.core.img.ImgUtil; |
|
|
|
import cn.hutool.extra.qrcode.QrCodeUtil; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
@ -62,8 +63,26 @@ public class LpkGiftCardRest { |
|
|
|
} |
|
|
|
@GetMapping("/getCardByBank") |
|
|
|
@ApiOperation(value = "生成礼包卡信息") |
|
|
|
public ResultBean getCardByBank() { |
|
|
|
return lpkGiftCardService.getCardByBank(); |
|
|
|
public JSONObject getCardByBank(@RequestParam(value = "pageNo",defaultValue = "1")Integer pageNo, |
|
|
|
@RequestParam(value = "pageSize",defaultValue = "8")Integer pageSize, |
|
|
|
@RequestParam(value = "printAll",required = false) String printAll, |
|
|
|
@RequestParam(value = "end",defaultValue = "") String end, |
|
|
|
@RequestParam(value = "start",defaultValue = "") String start) { |
|
|
|
PagerQuery<LpkGiftCardListQuery> pq=new PagerQuery<>(); |
|
|
|
LpkGiftCardListQuery q=new LpkGiftCardListQuery(); |
|
|
|
pq.setCurrent(pageNo); |
|
|
|
pq.setSize(pageSize); |
|
|
|
|
|
|
|
q.setNoEnd(end); |
|
|
|
q.setNoStart(start); |
|
|
|
pq.setParams(q); |
|
|
|
|
|
|
|
PagerVo<LpkGiftCardWordVo> p=lpkGiftCardService.getCardByBank(pq).getData(); |
|
|
|
JSONObject jsonObject=new JSONObject(); |
|
|
|
jsonObject.put("date",p.getRecords()); |
|
|
|
jsonObject.put("total",p.getPages()); |
|
|
|
jsonObject.put("count",p.getTotal()); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/cardList") |
|
|
|