| Line 33... |
Line 33... |
| 33 |
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
|
33 |
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
|
| 34 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
|
34 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
|
| 35 |
import com.spice.profitmandi.dao.repository.transaction.LineItemRepository;
|
35 |
import com.spice.profitmandi.dao.repository.transaction.LineItemRepository;
|
| 36 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
36 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
| 37 |
import com.spice.profitmandi.dao.repository.transaction.PriceDropRepository;
|
37 |
import com.spice.profitmandi.dao.repository.transaction.PriceDropRepository;
|
| - |
|
38 |
import com.spice.profitmandi.dao.service.SaleRewardService;
|
| 38 |
import com.spice.profitmandi.service.AdminUser;
|
39 |
import com.spice.profitmandi.service.AdminUser;
|
| 39 |
import com.spice.profitmandi.service.FofoUser;
|
40 |
import com.spice.profitmandi.service.FofoUser;
|
| 40 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
41 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
| 41 |
import com.spice.profitmandi.service.PartnerStatsService;
|
42 |
import com.spice.profitmandi.service.PartnerStatsService;
|
| 42 |
import com.spice.profitmandi.service.SshServer.SSHService;
|
43 |
import com.spice.profitmandi.service.SshServer.SSHService;
|
| Line 235... |
Line 236... |
| 235 |
@Autowired
|
236 |
@Autowired
|
| 236 |
private SSHService sshService;
|
237 |
private SSHService sshService;
|
| 237 |
@Autowired
|
238 |
@Autowired
|
| 238 |
BrandsService brandsService;
|
239 |
BrandsService brandsService;
|
| 239 |
|
240 |
|
| - |
|
241 |
@Autowired
|
| - |
|
242 |
SaleRewardService saleRewardService;
|
| - |
|
243 |
|
| 240 |
@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
|
244 |
@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
|
| 241 |
public String dashboard1(HttpServletRequest request, Model model, @RequestParam int fofoId) throws Exception {
|
245 |
public String dashboard1(HttpServletRequest request, Model model, @RequestParam int fofoId) throws Exception {
|
| 242 |
boolean isAdmin = false;
|
246 |
boolean isAdmin = false;
|
| 243 |
model.addAttribute("isAdmin", isAdmin);
|
247 |
model.addAttribute("isAdmin", isAdmin);
|
| 244 |
|
248 |
|
| Line 570... |
Line 574... |
| 570 |
model.addAttribute("monthValueMap", monthValueMap);
|
574 |
model.addAttribute("monthValueMap", monthValueMap);
|
| 571 |
model.addAttribute("month", 0);
|
575 |
model.addAttribute("month", 0);
|
| 572 |
model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
576 |
model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
| 573 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
577 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
| 574 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
578 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
| - |
|
579 |
Map<String, Object> rewardsMap = saleRewardService.findByFofoAndRegionId(fofoId, partnerRegion.get(0).getRegionId());
|
| - |
|
580 |
model.addAttribute("rewardsMap", rewardsMap);
|
| - |
|
581 |
model.addAttribute("regionId", partnerRegion.get(0).getRegionId());
|
| - |
|
582 |
|
| - |
|
583 |
|
| 575 |
|
584 |
|
| 576 |
} catch (
|
585 |
} catch (
|
| 577 |
ProfitMandiBusinessException e) {
|
586 |
ProfitMandiBusinessException e) {
|
| 578 |
LOGGER.error("FofoStore Code not found of fofoId {}", loginDetails.getFofoId());
|
587 |
LOGGER.error("FofoStore Code not found of fofoId {}", loginDetails.getFofoId());
|
| 579 |
|
588 |
|