Commit e6ec50f4 by 陶光胜

init

parent 2c14f122
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 {
}
}
this.dealStoreInfoChange(enterpriseId, storeInfoId, fieldMap);
ServiceResponse<List<StoreDTO>> listStoreResponse1 = this.storeApiService.listStoreByStoreInfoId(storeInfoId);
List<StoreDTO> listStore1 = listStoreResponse1.getResult();
for(StoreDTO storeDTO : listStore1){
ServiceResponse<List<StoreDTO>> listStoreResponseOne = this.storeApiService.listStoreByStoreInfoId(storeInfoId);
List<StoreDTO> listStoreOne = listStoreResponseOne.getResult();
for(StoreDTO storeDTO : listStoreOne){
this.storeIndexRefreshHandler.refreshStoreIndex(storeDTO.getEnterpriseId(), storeDTO.getStoreId());
}
}
......
......@@ -70,9 +70,9 @@ public class StoreInfoMessageHandler implements MessageHandler {
}
}
this.dealStoreInfoChange(enterpriseId, storeInfoId, fieldMap);
ServiceResponse<List<StoreDTO>> listStoreResponse1 = this.storeApiService.listStoreByStoreInfoId(storeInfoId);
List<StoreDTO> listStore1 = listStoreResponse1.getResult();
for(StoreDTO storeDTO : listStore1){
ServiceResponse<List<StoreDTO>> listStoreResponseOne = this.storeApiService.listStoreByStoreInfoId(storeInfoId);
List<StoreDTO> listStoreOne = listStoreResponseOne.getResult();
for(StoreDTO storeDTO : listStoreOne){
this.storeIndexRefreshHandler.refreshStoreIndex(storeDTO.getEnterpriseId(), storeDTO.getStoreId());
}
}
......@@ -116,10 +116,10 @@ public class StoreInfoMessageHandler implements MessageHandler {
this.storeAuthorizationApiService.cancelStore(storeInfoId, dto.getUnionEnterpriseId());
}
if(!Integer.valueOf(fieldMap.get("old_region_id").getValue()).equals(Integer.valueOf(fieldMap.get("new_region_id").getValue()))){
StoreSearchDTO storeSearchDto1 = new StoreSearchDTO();
storeSearchDto1.setRegionId(Integer.valueOf(fieldMap.get("old_region_id").getValue()));
storeSearchDto1.setSearchJson(storeWidgetDTO.getSearchParam());
storeSearchDto1.setEnterpriseId(enterpriseId);
StoreSearchDTO storeSearchDtoOne = new StoreSearchDTO();
storeSearchDtoOne.setRegionId(Integer.valueOf(fieldMap.get("old_region_id").getValue()));
storeSearchDtoOne.setSearchJson(storeWidgetDTO.getSearchParam());
storeSearchDtoOne.setEnterpriseId(enterpriseId);
ServiceResponse<Page<StoreDTO>> response1 = this.storeApiService.listStore(storeSearchDTO, 1, 1);
if(CollectionUtils.isEmpty(response1.getResult().getResult())){
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