|
|
|
@@ -14,6 +14,8 @@ import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("subsidy") |
|
|
|
public class WxMerchantSubsidyController extends BaseController { |
|
|
|
@@ -22,6 +24,18 @@ public class WxMerchantSubsidyController extends BaseController { |
|
|
|
@Autowired |
|
|
|
WxMerchantSubsidyService wxMerchantSubsidyService; |
|
|
|
|
|
|
|
@ApiOperation("补贴记录汇总") |
|
|
|
@GetMapping("sum") |
|
|
|
public ResultData count(@ModelAttribute WxMerchantSubsidy wxMerchantSubsidy) { |
|
|
|
String ipStr = getIpAddr(); |
|
|
|
logger.info("subsidysum: " + ipStr + " :" + wxMerchantSubsidy.toString()); |
|
|
|
if (wxMerchantSubsidy == null) wxMerchantSubsidy = new WxMerchantSubsidy(); |
|
|
|
MallUserInfo user = getUser(); |
|
|
|
wxMerchantSubsidy.setTenantId(user.getTenantId()); |
|
|
|
Map retMap = wxMerchantSubsidyService.sumForSubsidy(wxMerchantSubsidy); |
|
|
|
return new ResultData(retMap); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("补贴记录") |
|
|
|
@GetMapping("list") |
|
|
|
@ApiImplicitParams({ |
|
|
|
|