Subversion Repositories SmartDukaan

Rev

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

Rev 28321 Rev 28322
Line 33... Line 33...
33
import org.springframework.web.bind.annotation.PathVariable;
33
import org.springframework.web.bind.annotation.PathVariable;
34
import org.springframework.web.bind.annotation.RequestBody;
34
import org.springframework.web.bind.annotation.RequestBody;
35
import org.springframework.web.bind.annotation.RequestMapping;
35
import org.springframework.web.bind.annotation.RequestMapping;
36
import org.springframework.web.bind.annotation.RequestMethod;
36
import org.springframework.web.bind.annotation.RequestMethod;
37
import org.springframework.web.bind.annotation.RequestParam;
37
import org.springframework.web.bind.annotation.RequestParam;
-
 
38
import org.springframework.web.bind.annotation.ResponseBody;
38
 
39
 
39
import com.eclipsesource.json.JsonObject;
40
import com.eclipsesource.json.JsonObject;
40
import com.fasterxml.jackson.annotation.JsonProperty;
41
import com.fasterxml.jackson.annotation.JsonProperty;
41
import com.google.gson.Gson;
42
import com.google.gson.Gson;
42
import com.google.gson.reflect.TypeToken;
43
import com.google.gson.reflect.TypeToken;
Line 95... Line 96...
95
import com.spice.profitmandi.web.res.DealBrands;
96
import com.spice.profitmandi.web.res.DealBrands;
96
import com.spice.profitmandi.web.res.DealObjectResponse;
97
import com.spice.profitmandi.web.res.DealObjectResponse;
97
import com.spice.profitmandi.web.res.DealsResponse;
98
import com.spice.profitmandi.web.res.DealsResponse;
98
import com.spice.profitmandi.web.res.ValidateCartResponse;
99
import com.spice.profitmandi.web.res.ValidateCartResponse;
99
import com.spice.profitmandi.web.services.EmailService;
100
import com.spice.profitmandi.web.services.EmailService;
-
 
101
import com.spice.profitmandi.web.services.PartnerIndexService;
100
 
102
 
101
import io.swagger.annotations.ApiImplicitParam;
103
import io.swagger.annotations.ApiImplicitParam;
102
import io.swagger.annotations.ApiImplicitParams;
104
import io.swagger.annotations.ApiImplicitParams;
103
import io.swagger.annotations.ApiOperation;
105
import io.swagger.annotations.ApiOperation;
104
 
106
 
Line 117... Line 119...
117
 
119
 
118
	@Value("${new.solr.url}")
120
	@Value("${new.solr.url}")
119
	private String solrUrl;
121
	private String solrUrl;
120
	
122
	
121
	@Autowired
123
	@Autowired
-
 
124
	private PartnerIndexService partnerIndexService;
-
 
125
	
-
 
126
	@Autowired
122
	InventoryService inventoryService;
127
	InventoryService inventoryService;
123
 
128
 
124
	@Autowired
129
	@Autowired
125
	UserAccountRepository userAccountRepository;
130
	UserAccountRepository userAccountRepository;
126
 
131
 
Line 785... Line 790...
785
		cust.setGender(customer.getGender());
790
		cust.setGender(customer.getGender());
786
		cust.setProfileImageId(customer.getProfileImageId());
791
		cust.setProfileImageId(customer.getProfileImageId());
787
		cust.setDob(customer.getDob());
792
		cust.setDob(customer.getDob());
788
		return responseSender.ok(cust);
793
		return responseSender.ok(cust);
789
	}
794
	}
-
 
795
	
-
 
796
	@RequestMapping(value = "/stores/{state}/{city}/{storeCode}", method = RequestMethod.GET)
-
 
797
	@ResponseBody
-
 
798
	public String getStoreIndex(HttpServletRequest request, String state, String city, String storeCode)
-
 
799
			throws Throwable {
-
 
800
		int retailerId = retailerService.getStoreCodeRetailerMap().get(storeCode);
-
 
801
		String retailerName = retailerService.getAllFofoRetailerIdNameMap().get(retailerId);
-
 
802
		String html = partnerIndexService.getPartnerIndexHtml();
-
 
803
		html = html.replace("<meta property=\"og:title\" content=\"Buy Mobiles and Accessories at exciting prices - SmartDukaan\">",
-
 
804
				String.format("<meta property=\"og:title\" content=\"%s is now ONLINE\">", retailerName));
-
 
805
		return html;
-
 
806
	}
790
 
807
 
791
	@RequestMapping(value = "/cancelPendingOrderItem", method = RequestMethod.POST)
808
	@RequestMapping(value = "/cancelPendingOrderItem", method = RequestMethod.POST)
792
	public ResponseEntity<?> cancelPendingOrderItem(HttpServletRequest request, @RequestParam int id,
809
	public ResponseEntity<?> cancelPendingOrderItem(HttpServletRequest request, @RequestParam int id,
793
 
810
 
794
			@RequestParam String statusDescription) throws Exception {
811
			@RequestParam String statusDescription) throws Exception {