package com.oying.modules.pc.store.service.impl; import com.oying.modules.pc.store.domain.Store; import com.oying.modules.pc.store.domain.dto.StoreCustomerDetailDto; import com.oying.modules.pc.store.domain.dto.StoreCustomerQueryCriteria; import com.oying.modules.pc.store.service.StoreQueryService; import com.oying.modules.pc.store.service.StoreService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; @Slf4j @Service @RequiredArgsConstructor public class StoreQueryServiceImpl implements StoreQueryService { private final StoreService storeService; @Override public StoreCustomerDetailDto getCustomerStoreDetail(StoreCustomerQueryCriteria criteria) { Store store = storeService.getById(criteria.getStoreId()); StoreCustomerDetailDto storeDto = new StoreCustomerDetailDto(); BeanUtils.copyProperties(store, storeDto); storeDto.setName(store.getStoreName()); storeDto.setLogoUrl(""); storeDto.setBusinessHours(""); storeDto.setDeliveryDuration(0); storeDto.setMonthlySales(0); storeDto.setScore(0); return storeDto; } }