Commit e6ec50f4 by 陶光胜

init

parent 2c14f122
package com.gic.message.service; package com.gic.message.service;
/**
* test
* @Title: test
* @Description:
* @author taogs
* @param null
* @return
* @throws
*/
public interface TestService { public interface TestService {
/**
* test
* @Title: test
* @Description:
* @author taogs
* @return void
* @throws
*/
void test(); 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,10 +116,10 @@ public class StoreInfoMessageHandler implements MessageHandler { ...@@ -116,10 +116,10 @@ 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>> response1 = this.storeApiService.listStore(storeSearchDTO, 1, 1);
if(CollectionUtils.isEmpty(response1.getResult().getResult())){ if(CollectionUtils.isEmpty(response1.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()));
......
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