| | |
| | | package com.matrix.system.padApi.action; |
| | | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.matrix.component.asyncmessage.AsyncMessageManager; |
| | | import com.matrix.core.constance.MatrixConstance; |
| | | import com.matrix.core.exception.GlobleException; |
| | |
| | | import com.matrix.system.hive.service.SysOrderService; |
| | | import com.matrix.system.hive.service.SysShopInfoService; |
| | | import com.matrix.system.padApi.dto.PadOrderListDto; |
| | | import com.matrix.system.padApi.dto.PadShowListDto; |
| | | import com.matrix.system.padApi.vo.PadOrderDetailVo; |
| | | import com.matrix.system.shopXcx.mqTask.AsyncMessageRouting; |
| | | import com.matrix.system.wechart.templateMsg.UniformMsgParam; |
| | |
| | | |
| | | @ApiOperation(value = "获取用户的可用充值卡", notes = "获取用户的可用充值卡") |
| | | @GetMapping(value = "getUseMoneyCard/{vipId}") |
| | | public AjaxResult getUseMoneyCard(Long vipId) { |
| | | public AjaxResult getUseMoneyCard(@PathVariable Long vipId) { |
| | | MoneyCardUse moneyCardUse = new MoneyCardUse(); |
| | | moneyCardUse.setVipId(vipId); |
| | | moneyCardUse.setStatus(Dictionary.MONEYCARD_STATUS_YX); |
| | |
| | | |
| | | @ApiOperation(value = "列表显示搜索项目绑定的产品信息", notes = "列表显示搜索项目绑定的产品信息") |
| | | @PostMapping(value = "/showList") |
| | | public AjaxResult showList(@RequestBody ShoppingGoods shoppingGoods, PaginationVO pageVo) { |
| | | QueryUtil.setQueryLimit(shoppingGoods); |
| | | public AjaxResult showList(@RequestBody PadShowListDto padShowListDto) { |
| | | |
| | | int offset = (padShowListDto.getPageNum() - 1) * padShowListDto.getPageSize(); |
| | | int limit = padShowListDto.getPageSize(); |
| | | PaginationVO pageVo = new PaginationVO(); |
| | | pageVo.setOffset(offset); |
| | | pageVo.setLimit(limit); |
| | | |
| | | ShoppingGoods shoppingGoods = new ShoppingGoods(); |
| | | if(StrUtil.isNotEmpty(padShowListDto.getName())){ |
| | | shoppingGoods.setName(padShowListDto.getName()); |
| | | } |
| | | if(StrUtil.isNotEmpty(padShowListDto.getGoodType())){ |
| | | shoppingGoods.setGoodType(padShowListDto.getGoodType()); |
| | | } |
| | | // QueryUtil.setQueryLimit(shoppingGoods); |
| | | if(StringUtils.isBlank(pageVo.getSort())){ |
| | | pageVo.setOrder("desc"); |
| | | pageVo.setSort("createTime"); |