Subversion Repositories SmartDukaan

Rev

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

Rev 28371 Rev 30017
Line 1... Line 1...
1
package com.spice.profitmandi.web.controller;
1
package com.spice.profitmandi.web.controller;
2
 
2
 
3
import java.time.LocalDateTime;
3
import com.spice.profitmandi.common.solr.SolrService;
4
import java.util.List;
4
import com.spice.profitmandi.common.web.util.ResponseSender;
5
import java.util.Map;
-
 
6
import java.util.Optional;
5
import com.spice.profitmandi.dao.entity.dtr.WebOffer;
7
import java.util.stream.Collectors;
6
import com.spice.profitmandi.dao.entity.dtr.WebOfferProduct;
8
 
-
 
9
import javax.servlet.http.HttpServletRequest;
7
import com.spice.profitmandi.dao.repository.dtr.WebOfferProductRepository;
10
import javax.transaction.Transactional;
8
import com.spice.profitmandi.dao.repository.dtr.WebOfferRepository;
11
 
-
 
12
import org.apache.logging.log4j.LogManager;
9
import org.apache.logging.log4j.LogManager;
13
import org.apache.logging.log4j.Logger;
10
import org.apache.logging.log4j.Logger;
14
import org.json.JSONObject;
11
import org.json.JSONObject;
15
import org.springframework.beans.factory.annotation.Autowired;
12
import org.springframework.beans.factory.annotation.Autowired;
16
import org.springframework.stereotype.Controller;
13
import org.springframework.stereotype.Controller;
17
import org.springframework.ui.Model;
14
import org.springframework.ui.Model;
18
import org.springframework.web.bind.annotation.PathVariable;
-
 
19
import org.springframework.web.bind.annotation.RequestBody;
15
import org.springframework.web.bind.annotation.*;
20
import org.springframework.web.bind.annotation.RequestMapping;
-
 
21
import org.springframework.web.bind.annotation.RequestMethod;
-
 
22
import org.springframework.web.bind.annotation.RequestParam;
-
 
23
 
16
 
24
import com.spice.profitmandi.common.solr.SolrService;
17
import javax.servlet.http.HttpServletRequest;
25
import com.spice.profitmandi.common.web.util.ResponseSender;
18
import javax.transaction.Transactional;
26
import com.spice.profitmandi.dao.entity.dtr.WebListing;
19
import java.time.LocalDateTime;
27
import com.spice.profitmandi.dao.entity.dtr.WebOffer;
20
import java.util.List;
28
import com.spice.profitmandi.dao.entity.dtr.WebOfferProduct;
21
import java.util.Map;
29
import com.spice.profitmandi.dao.entity.dtr.WebProductListing;
22
import java.util.Optional;
30
import com.spice.profitmandi.dao.repository.dtr.WebOfferProductRepository;
-
 
31
import com.spice.profitmandi.dao.repository.dtr.WebOfferRepository;
23
import java.util.stream.Collectors;
32
 
24
 
33
@Controller
25
@Controller
34
@Transactional(rollbackOn = Throwable.class)
26
@Transactional(rollbackOn = Throwable.class)
35
public class WebOffersController {
27
public class WebOffersController {
36
 
28