Commit e0e8ae2d by 陶光胜

Merge branch 'developer' into 'master'

Developer

See merge request !4
parents 04e1c964 ff678a35
package com.gic.message.service;
/**
* test
* @Title: test
* @Description:
* @author taogs
* @param null
* @return
* @throws
*/
public interface TestService {
/**
* test
* @Title: test
* @Description:
* @author taogs
* @return void
* @throws
*/
void test();
}
...@@ -83,9 +83,9 @@ public class StoreCustomMessageHandler implements MessageHandler { ...@@ -83,9 +83,9 @@ public class StoreCustomMessageHandler implements MessageHandler {
} }
} }
this.dealStoreInfoChange(enterpriseId, storeInfoId, fieldMap); this.dealStoreInfoChange(enterpriseId, storeInfoId, fieldMap);
ServiceResponse<List<StoreDTO>> listStoreResponse1 = this.storeApiService.listStoreByStoreInfoId(storeInfoId); ServiceResponse<List<StoreDTO>> listStoreResponseOne = this.storeApiService.listStoreByStoreInfoId(storeInfoId);
List<StoreDTO> listStore1 = listStoreResponse1.getResult(); List<StoreDTO> listStoreOne = listStoreResponseOne.getResult();
for(StoreDTO storeDTO : listStore1){ for(StoreDTO storeDTO : listStoreOne){
this.storeIndexRefreshHandler.refreshStoreIndex(storeDTO.getEnterpriseId(), storeDTO.getStoreId()); this.storeIndexRefreshHandler.refreshStoreIndex(storeDTO.getEnterpriseId(), storeDTO.getStoreId());
} }
} }
......
...@@ -70,9 +70,9 @@ public class StoreInfoMessageHandler implements MessageHandler { ...@@ -70,9 +70,9 @@ public class StoreInfoMessageHandler implements MessageHandler {
} }
} }
this.dealStoreInfoChange(enterpriseId, storeInfoId, fieldMap); this.dealStoreInfoChange(enterpriseId, storeInfoId, fieldMap);
ServiceResponse<List<StoreDTO>> listStoreResponse1 = this.storeApiService.listStoreByStoreInfoId(storeInfoId); ServiceResponse<List<StoreDTO>> listStoreResponseOne = this.storeApiService.listStoreByStoreInfoId(storeInfoId);
List<StoreDTO> listStore1 = listStoreResponse1.getResult(); List<StoreDTO> listStoreOne = listStoreResponseOne.getResult();
for(StoreDTO storeDTO : listStore1){ for(StoreDTO storeDTO : listStoreOne){
this.storeIndexRefreshHandler.refreshStoreIndex(storeDTO.getEnterpriseId(), storeDTO.getStoreId()); this.storeIndexRefreshHandler.refreshStoreIndex(storeDTO.getEnterpriseId(), storeDTO.getStoreId());
} }
} }
...@@ -116,12 +116,12 @@ public class StoreInfoMessageHandler implements MessageHandler { ...@@ -116,12 +116,12 @@ public class StoreInfoMessageHandler implements MessageHandler {
this.storeAuthorizationApiService.cancelStore(storeInfoId, dto.getUnionEnterpriseId()); this.storeAuthorizationApiService.cancelStore(storeInfoId, dto.getUnionEnterpriseId());
} }
if(!Integer.valueOf(fieldMap.get("old_region_id").getValue()).equals(Integer.valueOf(fieldMap.get("new_region_id").getValue()))){ if(!Integer.valueOf(fieldMap.get("old_region_id").getValue()).equals(Integer.valueOf(fieldMap.get("new_region_id").getValue()))){
StoreSearchDTO storeSearchDto1 = new StoreSearchDTO(); StoreSearchDTO storeSearchDtoOne = new StoreSearchDTO();
storeSearchDto1.setRegionId(Integer.valueOf(fieldMap.get("old_region_id").getValue())); storeSearchDtoOne.setRegionId(Integer.valueOf(fieldMap.get("old_region_id").getValue()));
storeSearchDto1.setSearchJson(storeWidgetDTO.getSearchParam()); storeSearchDtoOne.setSearchJson(storeWidgetDTO.getSearchParam());
storeSearchDto1.setEnterpriseId(enterpriseId); storeSearchDtoOne.setEnterpriseId(enterpriseId);
ServiceResponse<Page<StoreDTO>> response1 = this.storeApiService.listStore(storeSearchDTO, 1, 1); ServiceResponse<Page<StoreDTO>> responseOne = this.storeApiService.listStore(storeSearchDTO, 1, 1);
if(CollectionUtils.isEmpty(response1.getResult().getResult())){ if(CollectionUtils.isEmpty(responseOne.getResult().getResult())){
this.storeRegionApiService.unAuthorizeRegion(dto.getUnionEnterpriseId(), Integer.valueOf(fieldMap.get("old_region_id").getValue())); this.storeRegionApiService.unAuthorizeRegion(dto.getUnionEnterpriseId(), Integer.valueOf(fieldMap.get("old_region_id").getValue()));
} }
} }
......
package com.gic.message.service.impl;
import com.gic.message.service.TestService;
import org.springframework.stereotype.Service;
/**
* test
* @Title: test
* @Description:
* @author taogs
* @param null
* @return
* @throws
*/
@Service("testService")
public class TestServiceImpl implements TestService {
/**
* test
* @Title: test
* @Description:
* @author taogs
* @return void
* @throws
*/
@Override
public void test() {
}
}
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dubbo:application name="gic-platform-message"/> <dubbo:application name="gic-platform-message"/>
<dubbo:protocol name="dubbo" port="20340"/> <dubbo:protocol name="dubbo" port="20340"/>
<dubbo:service interface="com.gic.message.service.TestService" ref="testService" timeout="6000" />
<dubbo:reference interface="com.gic.bizdict.api.service.BizdictService" id="bizdictService " timeout="6000" retries="0"/> <dubbo:reference interface="com.gic.bizdict.api.service.BizdictService" id="bizdictService " timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.search.business.api.service.EsBusinessOperaApiService" id="esBusinessOperaApiService" timeout="6000" /> <dubbo:reference interface="com.gic.search.business.api.service.EsBusinessOperaApiService" id="esBusinessOperaApiService" timeout="6000" />
<dubbo:reference interface="com.gic.enterprise.service.PlatformBrandApiService" id="platformBrandApiService" timeout="6000" /> <dubbo:reference interface="com.gic.enterprise.service.PlatformBrandApiService" id="platformBrandApiService" timeout="6000" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment