|
|
|
@@ -3,7 +3,6 @@ package com.iformall.controller; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.WxMerchantBUser; |
|
|
|
import com.iformall.domain.po.WxMerchantSubsidy; |
|
|
|
import com.iformall.domain.vo.WxMerchantSubsidyVo; |
|
|
|
import com.iformall.service.WxMerchantSubsidyService; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
@@ -12,7 +11,10 @@ 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.*; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
@@ -54,4 +56,17 @@ public class WxMerchantSubsidyController extends BaseController { |
|
|
|
return new ResultData(page); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("总计") |
|
|
|
@GetMapping("summary") |
|
|
|
public ResultData summary(@ModelAttribute WxMerchantSubsidyVo wxMerchantSubsidy) { |
|
|
|
logger.debug("[" + getIpAddr() + "] subsidy::summary"); |
|
|
|
if (null == wxMerchantSubsidy) { |
|
|
|
wxMerchantSubsidy = new WxMerchantSubsidyVo(); |
|
|
|
} |
|
|
|
wxMerchantSubsidy.setTenantId(getTenantId()); |
|
|
|
Map<String, Long> data = wxMerchantSubsidyService.summary(wxMerchantSubsidy); |
|
|
|
return new ResultData(data); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |