Subversion Repositories SmartDukaan

Rev

Rev 22563 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22563 Rev 33247
Line 1... Line 1...
1
package com.spice.profitmandi.service.tag;
1
package com.spice.profitmandi.service.tag;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
import java.util.List;
-
 
5
import java.util.Map;
-
 
6
import java.util.Set;
-
 
7
 
-
 
8
import org.springframework.stereotype.Service;
-
 
9
 
-
 
10
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
11
import com.spice.profitmandi.common.model.TagListingModel;
4
import com.spice.profitmandi.common.model.TagListingModel;
12
import com.spice.profitmandi.dao.entity.catalog.Tag;
5
import com.spice.profitmandi.dao.entity.catalog.Tag;
13
import com.spice.profitmandi.dao.entity.dtr.Retailer;
6
import com.spice.profitmandi.dao.entity.dtr.Retailer;
-
 
7
import org.springframework.stereotype.Service;
-
 
8
 
-
 
9
import java.time.LocalDateTime;
-
 
10
import java.util.List;
-
 
11
import java.util.Map;
-
 
12
import java.util.Set;
14
 
13
 
15
@Service
14
@Service
16
public interface TagService {
15
public interface TagService {
17
	public void createTagListings(List<TagListingModel> tagListingModels) throws ProfitMandiBusinessException;
16
	public void createTagListings(List<TagListingModel> tagListingModels) throws ProfitMandiBusinessException;
18
	public void createTagListing(int tagId, int itemId, float sellingPrice, float mop, float priceSupport, float maxDiscountPrice, LocalDateTime startDate);
17
	public void createTagListing(int tagId, int itemId, float sellingPrice, float mop, float priceSupport, float maxDiscountPrice, LocalDateTime startDate);
19
	public List<Retailer> getRetailersByTagId(int tagId);
18
	public List<Retailer> getRetailersByTagId(int tagId);
-
 
19
 
20
	public List<Tag> getTagsByPinCode(String pinCode);
20
    public List<Tag> getTagsByPinCode(String pinCode) throws ProfitMandiBusinessException;
21
	public Set<String> getPinCodesByTagId(int tagId);
21
	public Set<String> getPinCodesByTagId(int tagId);
-
 
22
 
22
	public List<Tag> getTagsByRetailerId(int retailerId);
23
    public List<Tag> getTagsByRetailerId(int retailerId) throws ProfitMandiBusinessException;
23
	public Set<Integer> getTagIdsByPinCode(String pinCode);
24
	public Set<Integer> getTagIdsByPinCode(String pinCode);
-
 
25
 
24
	public Set<Integer> getFofoTagIdsByPinCode(String pinCode);
26
    public Set<Integer> getFofoTagIdsByPinCode(String pinCode) throws ProfitMandiBusinessException;
25
	public Set<Integer> getPinCodePositiveTagIds();
27
	public Set<Integer> getPinCodePositiveTagIds();
26
	public Set<Integer> getPinCodeNegativeTagIds();
28
	public Set<Integer> getPinCodeNegativeTagIds();
27
	public Set<Integer> getUserPositiveTagIds();
29
	public Set<Integer> getUserPositiveTagIds();
28
	public Set<Integer> getUserNegativeTagIds();
30
	public Set<Integer> getUserNegativeTagIds();
-
 
31
 
29
	public List<Map<String, Object>> getTagListingDetail(int tagId);
32
    public List<Map<String, Object>> getTagListingDetail(int tagId) throws ProfitMandiBusinessException;
-
 
33
 
30
	public Set<Integer> getUserTagIdsByTagIds(Set<Integer> tagIds);
34
    public Set<Integer> getUserTagIdsByTagIds(Set<Integer> tagIds) throws ProfitMandiBusinessException;
31
}
35
}