| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| 3 |
import java.text.MessageFormat;
|
- |
|
| 4 |
import java.time.LocalDateTime;
|
3 |
import java.time.LocalDateTime;
|
| 5 |
import java.util.ArrayList;
|
4 |
import java.util.ArrayList;
|
| 6 |
import java.util.List;
|
5 |
import java.util.List;
|
| 7 |
import java.util.Map;
|
6 |
import java.util.Map;
|
| 8 |
import java.util.function.Function;
|
- |
|
| 9 |
import java.util.stream.Collector;
|
- |
|
| 10 |
import java.util.stream.Collectors;
|
7 |
import java.util.stream.Collectors;
|
| 11 |
|
8 |
|
| 12 |
import javax.mail.internet.InternetAddress;
|
9 |
import javax.mail.internet.InternetAddress;
|
| 13 |
import javax.mail.internet.MimeMessage;
|
10 |
import javax.mail.internet.MimeMessage;
|
| 14 |
import javax.servlet.http.HttpServletRequest;
|
11 |
import javax.servlet.http.HttpServletRequest;
|
| 15 |
|
12 |
|
| 16 |
import org.apache.logging.log4j.LogManager;
|
13 |
import org.apache.logging.log4j.LogManager;
|
| 17 |
import org.apache.logging.log4j.Logger;
|
14 |
import org.apache.logging.log4j.Logger;
|
| 18 |
import org.json.JSONObject;
|
- |
|
| 19 |
import org.springframework.beans.factory.annotation.Autowired;
|
15 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 20 |
import org.springframework.mail.javamail.JavaMailSender;
|
16 |
import org.springframework.mail.javamail.JavaMailSender;
|
| 21 |
import org.springframework.mail.javamail.MimeMessageHelper;
|
17 |
import org.springframework.mail.javamail.MimeMessageHelper;
|
| 22 |
import org.springframework.stereotype.Controller;
|
18 |
import org.springframework.stereotype.Controller;
|
| 23 |
import org.springframework.transaction.annotation.Transactional;
|
19 |
import org.springframework.transaction.annotation.Transactional;
|
| Line 25... |
Line 21... |
| 25 |
import org.springframework.web.bind.annotation.RequestMapping;
|
21 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 26 |
import org.springframework.web.bind.annotation.RequestMethod;
|
22 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 27 |
import org.springframework.web.bind.annotation.RequestParam;
|
23 |
import org.springframework.web.bind.annotation.RequestParam;
|
| 28 |
|
24 |
|
| 29 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
25 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 30 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
- |
|
| 31 |
import com.spice.profitmandi.common.model.FocusedModelShortageModel;
|
- |
|
| 32 |
import com.spice.profitmandi.dao.entity.user.Refferal;
|
26 |
import com.spice.profitmandi.dao.entity.user.Refferal;
|
| 33 |
import com.spice.profitmandi.dao.entity.user.RefferalMonthlyAmount;
|
27 |
import com.spice.profitmandi.dao.entity.user.RefferalMonthlyAmount;
|
| 34 |
import com.spice.profitmandi.dao.entity.user.User;
|
28 |
import com.spice.profitmandi.dao.entity.user.User;
|
| 35 |
import com.spice.profitmandi.dao.enumuration.dtr.RefferalStatus;
|
29 |
import com.spice.profitmandi.dao.enumuration.dtr.RefferalStatus;
|
| 36 |
import com.spice.profitmandi.dao.model.DateRangeModel;
|
30 |
import com.spice.profitmandi.dao.model.DateRangeModel;
|