Commit 1c128b1f by guojuxing

重置分组策略修复

parent 582107b6
......@@ -218,8 +218,9 @@ public class StoreStrategyApiServiceImpl implements StoreStrategyApiService{
searchDBDTO.setRegionIdList(regionIdList);
searchDBDTO.setStatusList(storeStatusList);
com.github.pagehelper.Page<StoreDTO> listStore = this.storeService.listStore(searchDBDTO, 1, Integer.MAX_VALUE);
for (StoreDTO store : listStore.getResult()) {
String result = storeStrategyService.isHitStrategy(store.getStoreInfoId(), store.getEnterpriseId(), StoreGroupConstant.STORE_GROUP_STRATEGY_TYPE);
List<StoreDTO> storeList = listStore.getResult();
for (StoreDTO store : storeList) {
String result = storeStrategyService.isHitStrategy(store.getStoreId(), store.getEnterpriseId(), StoreGroupConstant.STORE_GROUP_STRATEGY_TYPE);
if (StringUtils.isNotBlank(result)) {
storeService.updateStoreGroupId(store.getStoreInfoId(), Integer.parseInt(result));
}
......
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