Commit 5e1339ac by zhiwj

方法修改

parent 7bbf7782
...@@ -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 storeSearchDto1 = new StoreSearchDTO();
storeSearchDTO1.setRegionId(Integer.valueOf(fieldMap.get("old_region_id").getValue())); storeSearchDto1.setRegionId(Integer.valueOf(fieldMap.get("old_region_id").getValue()));
storeSearchDTO1.setSearchJson(storeWidgetDTO.getSearchParam()); storeSearchDto1.setSearchJson(storeWidgetDTO.getSearchParam());
storeSearchDTO1.setEnterpriseId(enterpriseId); storeSearchDto1.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()));
......
...@@ -29,7 +29,7 @@ import java.util.Map; ...@@ -29,7 +29,7 @@ import java.util.Map;
* @ClassName: StoreMessageHandler * @ClassName: StoreMessageHandler
* @Description: * @Description:
* @author zhiwj * @author zhiwj
* @date 2020-09-10 15:10 * @date 2020-09-10 15:12
*/ */
@Component @Component
public class StoreMessageHandler implements MessageHandler { public class StoreMessageHandler implements MessageHandler {
...@@ -71,7 +71,7 @@ public class StoreMessageHandler implements MessageHandler { ...@@ -71,7 +71,7 @@ public class StoreMessageHandler implements MessageHandler {
storeInfoId = Integer.valueOf(fieldMap.get("new_store_info_id").getValue()); storeInfoId = Integer.valueOf(fieldMap.get("new_store_info_id").getValue());
if (Integer.valueOf(fieldMap.get(OLD_STATUS).getValue()) == 1 && Integer.valueOf(fieldMap.get(NEW_STATUS).getValue()) == 0) { //删除 if (Integer.valueOf(fieldMap.get(OLD_STATUS).getValue()) == 1 && Integer.valueOf(fieldMap.get(NEW_STATUS).getValue()) == 0) { //删除
this.storeApiService.deleteStoreFromEs(enterpriseId, storeId); this.storeApiService.deleteStoreFromEs(enterpriseId, storeId);
} else if (Integer.valueOf(fieldMap.get(OLD_STATUS).getValue()) == 1 && Integer.valueOf(fieldMap.get(NEW_STATUS).getValue()) == NEW_STATUS_VALUE){ //下线 } else if (Integer.valueOf(fieldMap.get(OLD_STATUS).getValue()) == 1 && Integer.valueOf(fieldMap.get(NEW_STATUS).getValue()).equals(NEW_STATUS_VALUE)){ //下线
//todo 通知会员组(积分成本转移) //todo 通知会员组(积分成本转移)
}else { }else {
this.storeIndexRefreshHandler.refreshStoreIndex(enterpriseId, storeId); this.storeIndexRefreshHandler.refreshStoreIndex(enterpriseId, storeId);
......
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