Subversion Repositories SmartDukaan

Rev

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

Rev 35252 Rev 35458
Line 58... Line 58...
58
import org.springframework.web.bind.annotation.*;
58
import org.springframework.web.bind.annotation.*;
59
import org.springframework.web.multipart.MultipartFile;
59
import org.springframework.web.multipart.MultipartFile;
60
 
60
 
61
import javax.servlet.http.HttpServletRequest;
61
import javax.servlet.http.HttpServletRequest;
62
import javax.servlet.http.HttpServletResponse;
62
import javax.servlet.http.HttpServletResponse;
63
import javax.transaction.Transactional;
63
import org.springframework.transaction.annotation.Transactional;
64
import java.io.ByteArrayInputStream;
64
import java.io.ByteArrayInputStream;
65
import java.io.ByteArrayOutputStream;
65
import java.io.ByteArrayOutputStream;
66
import java.io.InputStream;
66
import java.io.InputStream;
67
import java.time.*;
67
import java.time.*;
68
import java.time.format.DateTimeFormatter;
68
import java.time.format.DateTimeFormatter;
69
import java.util.*;
69
import java.util.*;
70
import java.util.stream.Collectors;
70
import java.util.stream.Collectors;
71
 
71
 
72
@Controller
72
@Controller
73
@Transactional(rollbackOn = Throwable.class)
73
@Transactional(rollbackFor = Throwable.class)
74
public class SchemeController {
74
public class SchemeController {
75
    // LED TV
75
    // LED TV
76
    private static final List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.MOBILE_CATEGORY_ID,
76
    private static final List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.MOBILE_CATEGORY_ID,
77
            ProfitMandiConstants.TABLET_CATEGORY_ID, 14202);
77
            ProfitMandiConstants.TABLET_CATEGORY_ID, 14202);
78
 
78