Subversion Repositories SmartDukaan

Rev

Rev 26784 | Rev 26817 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26784 Rev 26788
Line 63... Line 63...
63
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
63
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
64
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
64
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
65
import com.spice.profitmandi.dao.repository.dtr.WebListingRepository;
65
import com.spice.profitmandi.dao.repository.dtr.WebListingRepository;
66
import com.spice.profitmandi.dao.repository.dtr.WebProductListingRepository;
66
import com.spice.profitmandi.dao.repository.dtr.WebProductListingRepository;
67
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
67
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
-
 
68
import com.spice.profitmandi.dao.repository.fofo.CustomerAddressRepository;
68
import com.spice.profitmandi.dao.repository.fofo.CustomerRepository;
69
import com.spice.profitmandi.dao.repository.fofo.CustomerRepository;
69
import com.spice.profitmandi.dao.repository.fofo.PendingOrderService;
70
import com.spice.profitmandi.dao.repository.fofo.PendingOrderService;
70
import com.spice.profitmandi.dao.repository.fofo.PincodePartnerRepository;
71
import com.spice.profitmandi.dao.repository.fofo.PincodePartnerRepository;
71
import com.spice.profitmandi.dao.repository.inventory.ItemAvailabilityCacheRepository;
72
import com.spice.profitmandi.dao.repository.inventory.ItemAvailabilityCacheRepository;
72
import com.spice.profitmandi.service.CustomerService;
73
import com.spice.profitmandi.service.CustomerService;
Line 94... Line 95...
94
	private static final LocalTime CUTOFF_TIME = LocalTime.of(15, 0);
95
	private static final LocalTime CUTOFF_TIME = LocalTime.of(15, 0);
95
 
96
 
96
	private static final List<Integer> TAG_IDS = Arrays.asList(4);
97
	private static final List<Integer> TAG_IDS = Arrays.asList(4);
97
 
98
 
98
	private static final int DEFAULT_STORE = 171912487;
99
	private static final int DEFAULT_STORE = 171912487;
-
 
100
	
-
 
101
	@Autowired
-
 
102
	CustomerAddressRepository customerAddressRepository;
99
 
103
 
100
	@Value("${python.api.host}")
104
	@Value("${python.api.host}")
101
	private String host;
105
	private String host;
102
	
106
	
103
	@Autowired
107
	@Autowired
Line 637... Line 641...
637
				dealResponse.add(ffdr);
641
				dealResponse.add(ffdr);
638
			}
642
			}
639
		}
643
		}
640
		return dealResponse;
644
		return dealResponse;
641
	}
645
	}
-
 
646
	
-
 
647
 
-
 
648
	@RequestMapping(value = "/store/addresses/{customerId}", method=RequestMethod.GET)
-
 
649
	public ResponseEntity<?> getAll(HttpServletRequest request, @PathVariable int customerId) throws Throwable{
-
 
650
		return responseSender.ok(customerAddressRepository.selectByCustomerId(customerId));
-
 
651
	}
642
 
652
 
643
}
653
}
644
 
654
 
645
class UserModel {
655
class UserModel {
646
	private String mobile;
656
	private String mobile;
Line 659... Line 669...
659
		return password;
669
		return password;
660
	}
670
	}
661
	public void setPassword(String password) {
671
	public void setPassword(String password) {
662
		this.password = password;
672
		this.password = password;
663
	}
673
	}
664
	
-
 
665
	
-
 
666
}
674
}
667
 
675
 
668
class CustomerModel {
676
class CustomerModel {
669
 
677
 
670
	@JsonProperty(required = false)
678
	@JsonProperty(required = false)