package com.hzs.member.store.provider;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import com.hzs.common.core.constant.SystemFieldConstants;
import com.hzs.common.core.domain.R;
import com.hzs.common.core.utils.StringUtils;
import com.hzs.common.domain.member.detail.CuMemberServiceLog;
import com.hzs.common.domain.member.store.CuParentStore;
import com.hzs.common.domain.member.store.CuStore;
import com.hzs.common.domain.member.store.ext.CuStoreExt;
import com.hzs.common.service.ITransactionCommonService;
import com.hzs.member.detail.service.ICuMemberServiceLogService;
import com.hzs.member.handlebusiness.dto.AnalysisBusinessAppealParam;
import com.hzs.member.store.ICuParentStoreServiceApi;
import com.hzs.member.store.ICuStoreServiceApi;
import com.hzs.member.store.dto.StoreDto;
import com.hzs.member.store.service.ICuParentStoreService;
import com.hzs.member.store.service.ICuStoreService;
import com.hzs.member.store.vo.CuStoreVO;
import com.hzs.system.base.IAreaServiceApi;
import com.hzs.system.base.ICountryServiceApi;
import com.hzs.system.base.dto.CountryDTO;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: zhang jing
 * @date: 2024/8/1 10:57
 * @param:
 * @return:
 **/
@Slf4j
@DubboService
public class ICuParentStoreServiceProvider implements ICuParentStoreServiceApi {

    @Autowired
    private ICuParentStoreService cuParentStoreService;


    /**
     * @description: 新增推荐店铺查询
     * @author: zhang jing
     * @date: 2024/8/1 11:01
     * @param: [cuParentStore]
     * @return: com.hzs.common.core.domain.R<java.lang.Boolean>
     **/
    @Override
    public R<Boolean> saveCuParentStore(CuParentStore cuParentStore) {
        return R.ok(cuParentStoreService.save(cuParentStore));
    }
    /**
     * @description: 删除推荐店铺查询
     * @author: zhang jing
     * @date: 2024/8/1 14:33
     * @param: [cuParentStore]
     * @return: com.hzs.common.core.domain.R<java.lang.Boolean>
     **/
    @Override
    public R<Boolean> delCuParentStore() {
        return R.ok(cuParentStoreService.delCuParentStore());
    }
}
