Subversion Repositories SmartDukaan

Rev

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

Rev 33127 Rev 33245
Line 1... Line 1...
1
package com.spice.profitmandi.service;
1
package com.spice.profitmandi.service;
2
 
2
 
3
import com.google.gson.Gson;
3
import com.google.gson.Gson;
4
import com.mongodb.DBObject;
-
 
5
import com.spice.profitmandi.common.enumuration.MessageType;
4
import com.spice.profitmandi.common.enumuration.MessageType;
6
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
5
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
7
import com.spice.profitmandi.common.model.*;
6
import com.spice.profitmandi.common.model.*;
8
import com.spice.profitmandi.dao.Interface.Campaign;
7
import com.spice.profitmandi.dao.Interface.Campaign;
9
import com.spice.profitmandi.dao.entity.catalog.BrandCatalog;
8
import com.spice.profitmandi.dao.entity.catalog.BrandCatalog;
Line 320... Line 319...
320
 
319
 
321
        return cm;
320
        return cm;
322
 
321
 
323
    }
322
    }
324
 
323
 
325
    public Map<String, Object> getSales(int fofoId) {
324
    public Map<String, Object> getSales(int fofoId) throws ProfitMandiBusinessException {
326
 
325
 
327
        Map<String, Object> salesMap = new LinkedHashMap<>();
326
        Map<String, Object> salesMap = new LinkedHashMap<>();
328
        LocalDateTime now = LocalDateTime.now();
327
        LocalDateTime now = LocalDateTime.now();
329
        LocalDateTime startOfToday = LocalDate.now().atStartOfDay();
328
        LocalDateTime startOfToday = LocalDate.now().atStartOfDay();
330
        int monthLength = LocalDate.now().lengthOfMonth();
329
        int monthLength = LocalDate.now().lengthOfMonth();