|
|
@@ -2,6 +2,7 @@ package com.izouma.dingdong.service;
|
|
|
|
|
|
import com.izouma.dingdong.dto.MerchantDTO;
|
|
|
import com.izouma.dingdong.dto.PageQuery;
|
|
|
+import com.izouma.dingdong.repo.merchant.FullReductionRepo;
|
|
|
import com.izouma.dingdong.repo.merchant.MerchantRepo;
|
|
|
import com.izouma.dingdong.service.merchant.MerchantService;
|
|
|
import com.izouma.dingdong.service.merchant.MerchantSettingsService;
|
|
|
@@ -25,13 +26,10 @@ public class MerchantServiceTest {
|
|
|
|
|
|
@Autowired
|
|
|
private MerchantService merchantService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private MerchantController merchantController;
|
|
|
-
|
|
|
@Autowired
|
|
|
- private MerchantRepo merchantRepo;
|
|
|
-
|
|
|
+ private FullReductionRepo fullReductionRepo;
|
|
|
@Autowired
|
|
|
private MerchantSettingsService merchantSettingsService;
|
|
|
|
|
|
@@ -109,12 +107,12 @@ public class MerchantServiceTest {
|
|
|
PageQuery pageQuery = new PageQuery();
|
|
|
pageQuery.setPage(0);
|
|
|
pageQuery.setSize(50);
|
|
|
- pageQuery.setSearch(null);
|
|
|
+ pageQuery.setSearch("走马");
|
|
|
pageQuery.setSort("");
|
|
|
//118.738275 31.991961
|
|
|
List<MerchantDTO> list = merchantService.showAll(pageQuery, 1.0,1.0 , null, 82L);
|
|
|
|
|
|
- System.out.println(list.size());
|
|
|
+ System.out.println(list);
|
|
|
}
|
|
|
|
|
|
/* @Test
|
|
|
@@ -143,4 +141,10 @@ public class MerchantServiceTest {
|
|
|
|
|
|
System.out.println(index);
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void testFull(){
|
|
|
+ //System.out.println(fullReductionRepo.findAllByMerchantId(189L));
|
|
|
+ System.out.println(merchantSettingsService.getDTO(189L));
|
|
|
+ }
|
|
|
}
|