|
@ -1,15 +1,13 @@ |
|
|
package com.yxt.yyth.biz.empcard; |
|
|
package com.yxt.yyth.biz.empcard; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
import com.yxt.yyth.api.empcard.EmpCardDto; |
|
|
import com.yxt.yyth.api.empcard.EmpCardDto; |
|
|
import com.yxt.yyth.api.empcard.EmpCardQuery; |
|
|
import com.yxt.yyth.api.empcard.EmpCardQuery; |
|
|
import com.yxt.yyth.api.empcard.EmpCardVo; |
|
|
import com.yxt.yyth.api.empcard.EmpCardVo; |
|
|
import com.yxt.yyth.api.lpkgiftcard.BindCardDto; |
|
|
import com.yxt.yyth.api.lpkgiftcard.*; |
|
|
import com.yxt.yyth.api.lpkgiftcard.LpkGiftCardListQuery; |
|
|
|
|
|
import com.yxt.yyth.api.lpkgiftcard.LpkGiftCardListVo; |
|
|
|
|
|
import com.yxt.yyth.api.lpkgiftcard.LpkGiftCardQuery; |
|
|
|
|
|
import com.yxt.yyth.api.lpkreserveorder.LpkReserveOrderQuery; |
|
|
import com.yxt.yyth.api.lpkreserveorder.LpkReserveOrderQuery; |
|
|
import com.yxt.yyth.biz.empcardgift.EmpCardGiftService; |
|
|
import com.yxt.yyth.biz.empcardgift.EmpCardGiftService; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.Api; |
|
@ -91,5 +89,34 @@ public class EmpCardRest { |
|
|
return empCardService.isSaturAndSun(cardSid); |
|
|
return empCardService.isSaturAndSun(cardSid); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 企业卡积木报表接口 |
|
|
|
|
|
* @param pageNo |
|
|
|
|
|
* @param pageSize |
|
|
|
|
|
* @param printAll |
|
|
|
|
|
* @param end |
|
|
|
|
|
* @param start |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@GetMapping("/getEmpCard") |
|
|
|
|
|
@ApiOperation(value = "生成礼包卡信息") |
|
|
|
|
|
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=empCardService.getCardByBank(pq).getData(); |
|
|
|
|
|
JSONObject jsonObject=new JSONObject(); |
|
|
|
|
|
jsonObject.put("date",p.getRecords()); |
|
|
|
|
|
jsonObject.put("total",p.getPages()); |
|
|
|
|
|
jsonObject.put("count",p.getTotal()); |
|
|
|
|
|
return jsonObject; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|