zhanglin8526
2023-08-26 0af329d7210a84c97ec071735a2d0d1d7b0b785c
ruoyi-modules/ruoyi-shop/src/test/java/com/ruioyi/shop/shopTest.java
@@ -1,10 +1,10 @@
package com.ruioyi.shop;
import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverRequest;
import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverResult;
import com.ruoyi.shop.RuoYiShopApplication;
import com.ruoyi.shop.domain.vo.MgtPlTotalShopTotalVo;
import com.ruoyi.shop.service.shop.ShopService;
import com.ruoyi.system.api.domain.dto.MgtBasePlatformDto;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@@ -28,11 +28,10 @@
    @Test
    public void main() {
        ProfitSharingReceiverRequest request = new ProfitSharingReceiverRequest();
        request.setAccount("1650744551");
        request.setName("泸州矗众信息科技有限责任公司");
        ProfitSharingReceiverResult result = shopService.addProfitSharingReceiver(request);
        System.out.println(result);
        MgtBasePlatformDto mgtBasePlatformDto = new MgtBasePlatformDto();
        mgtBasePlatformDto.setDeptId(121L);
        mgtBasePlatformDto.setUserId(146L);
        MgtPlTotalShopTotalVo mgtPlTotalShopTotalVo = shopService.getPlTotalShopTotal(mgtBasePlatformDto);
        System.out.println(mgtPlTotalShopTotalVo);
    }
}