| Line 5... |
Line 5... |
| 5 |
import com.spice.profitmandi.common.enumuration.ContentType;
|
5 |
import com.spice.profitmandi.common.enumuration.ContentType;
|
| 6 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
6 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
| 7 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
7 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 8 |
import com.spice.profitmandi.common.model.*;
|
8 |
import com.spice.profitmandi.common.model.*;
|
| 9 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
9 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
| - |
|
10 |
import com.spice.profitmandi.dao.entity.StoreSalesTarget;
|
| 10 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
11 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
| 11 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
12 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 12 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
13 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
| 13 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
14 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
| 14 |
import com.spice.profitmandi.dao.entity.cs.PartnerRegion;
|
15 |
import com.spice.profitmandi.dao.entity.cs.PartnerRegion;
|
| Line 586... |
Line 587... |
| 586 |
model.addAttribute("month", 0);
|
587 |
model.addAttribute("month", 0);
|
| 587 |
model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
588 |
model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
| 588 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
589 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
| 589 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
590 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
| 590 |
Map<String, Object> rewardsMap = saleRewardService.findByFofoAndRegionId(fofoId, partnerRegion.get(0).getRegionId());
|
591 |
Map<String, Object> rewardsMap = saleRewardService.findByFofoAndRegionId(fofoId, partnerRegion.get(0).getRegionId());
|
| - |
|
592 |
StoreSalesTarget targetData = saleRewardService.findTargetsByFofoId(fofoId);
|
| 591 |
model.addAttribute("rewardsMap", rewardsMap);
|
593 |
model.addAttribute("rewardsMap", rewardsMap);
|
| - |
|
594 |
model.addAttribute("targetData", targetData);
|
| 592 |
model.addAttribute("regionId", partnerRegion.get(0).getRegionId());
|
595 |
model.addAttribute("regionId", partnerRegion.get(0).getRegionId());
|
| 593 |
|
596 |
|
| 594 |
|
597 |
|
| 595 |
|
598 |
|
| 596 |
} catch (
|
599 |
} catch (
|