| 21723 |
ashik.ali |
1 |
package com.spice.profitmandi.dao.repository.dtr;
|
| 21545 |
ashik.ali |
2 |
|
|
|
3 |
import java.util.List;
|
|
|
4 |
|
|
|
5 |
import org.springframework.stereotype.Repository;
|
|
|
6 |
|
|
|
7 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 21723 |
ashik.ali |
8 |
import com.spice.profitmandi.dao.entity.dtr.Shop;
|
| 21545 |
ashik.ali |
9 |
|
|
|
10 |
@Repository
|
|
|
11 |
public interface ShopRepository {
|
|
|
12 |
public void persist(Shop shop)throws ProfitMandiBusinessException;
|
|
|
13 |
public Shop selectById(int id) throws ProfitMandiBusinessException;
|
|
|
14 |
public List<Shop> selectByRetailerId(int retailerId) throws ProfitMandiBusinessException;
|
|
|
15 |
public boolean isExistByDocumentId(int documentId);
|
|
|
16 |
public void deleteById(int id) throws ProfitMandiBusinessException;
|
|
|
17 |
public void deleteByShopAndRetailerId(int shopId, int retailerId) throws ProfitMandiBusinessException;
|
|
|
18 |
}
|