|  |  | 
 |  |  | import com.xzx.gc.model.order.FenceDto;
 | 
 |  |  | import com.xzx.gc.order.mapper.AddressMapper;
 | 
 |  |  | import com.xzx.gc.order.mapper.PartnerGaodeMapper;
 | 
 |  |  | import lombok.extern.slf4j.Slf4j;
 | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
 |  |  | import org.springframework.stereotype.Service;
 | 
 |  |  | import org.springframework.transaction.annotation.Transactional;
 | 
 |  |  | 
 |  |  | 
 | 
 |  |  | import java.util.List;
 | 
 |  |  | 
 | 
 |  |  | @Slf4j
 | 
 |  |  | @Service
 | 
 |  |  | @Transactional(rollbackFor = Exception.class)
 | 
 |  |  | public class PartnerGaodeService {
 | 
 |  |  | 
 |  |  |      * @return
 | 
 |  |  |      */
 | 
 |  |  |     public String findPartnerIdByUserId(String userId,int type){
 | 
 |  |  |         log.info("userId ---->{}", userId);
 | 
 |  |  |         if(type==0){
 | 
 |  |  |             AddressInfo byUserId = addressService.findByUserId(userId);
 | 
 |  |  |             if(byUserId!=null){
 |