| Line 24... |
Line 24... |
| 24 |
import com.spice.profitmandi.dao.repository.fofo.PartnerDailyInvestmentRepository;
|
24 |
import com.spice.profitmandi.dao.repository.fofo.PartnerDailyInvestmentRepository;
|
| 25 |
import com.spice.profitmandi.dao.repository.inventory.StateRepository;
|
25 |
import com.spice.profitmandi.dao.repository.inventory.StateRepository;
|
| 26 |
import com.spice.profitmandi.dao.repository.transaction.UserWalletRepository;
|
26 |
import com.spice.profitmandi.dao.repository.transaction.UserWalletRepository;
|
| 27 |
import com.spice.profitmandi.service.AuthService;
|
27 |
import com.spice.profitmandi.service.AuthService;
|
| 28 |
import com.spice.profitmandi.service.PartnerCollectionService;
|
28 |
import com.spice.profitmandi.service.PartnerCollectionService;
|
| - |
|
29 |
import com.spice.profitmandi.service.RbmTargetService;
|
| 29 |
import com.spice.profitmandi.service.catalog.BrandsService;
|
30 |
import com.spice.profitmandi.service.catalog.BrandsService;
|
| 30 |
import com.spice.profitmandi.service.user.RetailerService;
|
31 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 31 |
import com.spice.profitmandi.web.model.LoginDetails;
|
32 |
import com.spice.profitmandi.web.model.LoginDetails;
|
| 32 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
33 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
| 33 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
34 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
| Line 960... |
Line 961... |
| 960 |
model.addAttribute("commitments", commitments);
|
961 |
model.addAttribute("commitments", commitments);
|
| 961 |
return "team-commitment-table";
|
962 |
return "team-commitment-table";
|
| 962 |
|
963 |
|
| 963 |
}
|
964 |
}
|
| 964 |
|
965 |
|
| - |
|
966 |
@Autowired
|
| - |
|
967 |
RbmTargetService rbmTargetService;
|
| - |
|
968 |
|
| - |
|
969 |
@RequestMapping(value = "/rbmTodayArr", method = RequestMethod.GET)
|
| - |
|
970 |
public String getRbmTodayArr(HttpServletRequest request, Model model, @RequestParam(value = "startDate", required = false) LocalDate startDate) throws Exception {
|
| - |
|
971 |
List<RbmArrViewModel> rbmArrViewModels;
|
| - |
|
972 |
|
| - |
|
973 |
if (startDate != null) {
|
| - |
|
974 |
rbmArrViewModels = rbmTargetService.getRbmTodayArr(startDate);
|
| - |
|
975 |
} else {
|
| - |
|
976 |
rbmArrViewModels = rbmTargetService.getRbmTodayArr();
|
| - |
|
977 |
}
|
| - |
|
978 |
|
| - |
|
979 |
LOGGER.info("rbmArrViewModels {}", rbmArrViewModels);
|
| - |
|
980 |
model.addAttribute("rbmArrViewModels", rbmArrViewModels);
|
| - |
|
981 |
|
| - |
|
982 |
return "rbm-today-arr";
|
| - |
|
983 |
}
|
| - |
|
984 |
|
| - |
|
985 |
|
| - |
|
986 |
|
| 965 |
@RequestMapping(value = "/partnerHealth", method = RequestMethod.GET)
|
987 |
@RequestMapping(value = "/partnerHealth", method = RequestMethod.GET)
|
| 966 |
public String partnerHealth(HttpServletRequest request, @RequestParam(name = "email", required = false) String email, Model model) throws Exception {
|
988 |
public String partnerHealth(HttpServletRequest request, @RequestParam(name = "email", required = false) String email, Model model) throws Exception {
|
| 967 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
989 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 968 |
|
990 |
|
| 969 |
if (StringUtils.isEmpty(email)) {
|
991 |
if (StringUtils.isEmpty(email)) {
|