Commit 791d69e9 by 陶光胜

门店保存修改

parent d7114257
......@@ -1042,9 +1042,9 @@ public class StoreApiServiceImpl implements StoreApiService {
}
if (type == 1 || type == 5 || type == 7) {
if ("all".equals(storeIds)) {
this.bulkUpdateStoreToIndex(enterpriseId);
this.bulkAddStoreToIndex(enterpriseId);
} else {
this.bulkUpdateStoreToIndex(enterpriseId, storeIdList);
this.bulkAddStoreToIndex(enterpriseId, storeIdList);
}
}
} catch (Exception e) {
......
......@@ -6,6 +6,7 @@ import java.util.List;
import java.util.Stack;
import java.util.concurrent.TimeUnit;
import com.gic.store.service.StoreApiService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -38,6 +39,8 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
private StoreService storeService;
@Autowired
private StoreGroupService storeGroupService;
@Autowired
private StoreApiService storeApiService;
@Override
public ServiceResponse<Integer> save(StoreGroupDTO storeGroupDTO) {
......@@ -204,6 +207,7 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
//刷新缓存
refreshRedisCache(storeGroupDTO.getStoreGroupId());
this.storeApiService.refreshStoreIndex(storeGroupDTO.getEnterpriseId(), storeGroupDTO.getStoreGroupId());
return ServiceResponse.success(SUCCESS);
}
......
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