|
|
|
@@ -3,7 +3,10 @@ package com.iformall.b; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
|
import com.iformall.domain.po.WxCouponSend; |
|
|
|
import com.iformall.domain.po.WxLevelConfig; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import com.iformall.enums.EnumCouponSendSendType; |
|
|
|
import com.iformall.service.WxLevelConfigService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.junit.FixMethodOrder; |
|
|
|
import org.junit.Test; |
|
|
|
@@ -23,6 +26,7 @@ import org.springframework.test.web.servlet.result.MockMvcResultMatchers; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@@ -38,6 +42,21 @@ public class CouponsendTest { |
|
|
|
@Autowired |
|
|
|
private MockMvc mockMvc; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxLevelConfigService wxLevelConfigService; |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test1() throws Exception{ |
|
|
|
List<WxLevelConfig> byTenantInfo = wxLevelConfigService.getByTenantInfo(new TenantEntity() {{ |
|
|
|
setTenantId("789"); |
|
|
|
}}); |
|
|
|
List<WxLevelConfig> byTenantInfo1 = wxLevelConfigService.getByTenantInfo(new TenantEntity() {{ |
|
|
|
setTenantId("789"); |
|
|
|
}}); |
|
|
|
log.info(byTenantInfo1.toString()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 商户注券::卡券列表::全部 |
|
|
|
*/ |
|
|
|
|