|
|
|
@@ -0,0 +1,57 @@ |
|
|
|
package com.iformall.controller.market; |
|
|
|
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.annotation.SystemControllerLog; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.Result; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.controller.base.BaseController; |
|
|
|
import com.iformall.domain.po.base.BaseEntity; |
|
|
|
import com.iformall.domain.po.WxActivity; |
|
|
|
import com.iformall.domain.po.WxCarPayOrder; |
|
|
|
import com.iformall.enums.EnumActivityStatus; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import com.iformall.service.WxActivityService; |
|
|
|
import com.iformall.service.park.pay.WxParkPayService; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("wxCarPayOrder") |
|
|
|
@Api(description = "停车支付订单") |
|
|
|
public class WxCarPayOrderController extends BaseController { |
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass()); |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxParkPayService wxParkPayService; |
|
|
|
|
|
|
|
@ApiOperation("分页列表接口") |
|
|
|
@GetMapping("list") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) |
|
|
|
public ResultData list(@ModelAttribute WxCarPayOrder wxCarPayOrder, Integer pageNum, Integer pageSize) { |
|
|
|
if (null == wxCarPayOrder) wxCarPayOrder = new WxCarPayOrder(); |
|
|
|
wxCarPayOrder.updateTenantInfo(getTenantInfo()); |
|
|
|
wxCarPayOrder.setSortColumns(BaseEntity.SortField.CreateTime_DESC); |
|
|
|
final PageInfo<WxCarPayOrder> page = wxParkPayService.listPayOrderAsPage(wxCarPayOrder, pageNum, pageSize); |
|
|
|
return new ResultData(page); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("总和") |
|
|
|
@GetMapping("sum") |
|
|
|
public ResultData sum(@ModelAttribute WxCarPayOrder wxCarPayOrder) { |
|
|
|
if (null == wxCarPayOrder) wxCarPayOrder = new WxCarPayOrder(); |
|
|
|
wxCarPayOrder.updateTenantInfo(getTenantInfo()); |
|
|
|
Integer total = wxParkPayService.sumCarPayOrder(wxCarPayOrder); |
|
|
|
return new ResultData(total); |
|
|
|
} |
|
|
|
|
|
|
|
} |