| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PricingRule; |
| | | import com.doumee.dao.dto.LocalStoragePricingSaveDTO; |
| | | import com.doumee.dao.dto.RemoteDeliveryPricingSaveDTO; |
| | | import com.doumee.dao.dto.EstimatedDeliverySaveDTO; |
| | | import com.doumee.dao.dto.StoreDepositSaveDTO; |
| | | import com.doumee.dao.dto.RevenueShareSaveDTO; |
| | | import com.doumee.dao.vo.LocalStoragePricingVO; |
| | | import com.doumee.dao.vo.RemoteDeliveryPricingVO; |
| | | import com.doumee.dao.vo.EstimatedDeliveryVO; |
| | | import com.doumee.dao.vo.StoreDepositVO; |
| | | import com.doumee.dao.vo.RevenueShareVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计价è§åé
ç½®Serviceå®ä¹ |
| | | * @author rk |
| | | * @date 2026/04/08 |
| | | */ |
| | | public interface PricingRuleService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param pricingRule å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(PricingRule pricingRule); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param pricingRule å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(PricingRule pricingRule); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param pricingRule å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(PricingRule pricingRule); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param pricingRules å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<PricingRule> pricingRules); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return PricingRule |
| | | */ |
| | | PricingRule findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param pricingRule å®ä½å¯¹è±¡ |
| | | * @return PricingRule |
| | | */ |
| | | PricingRule findOne(PricingRule pricingRule); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param pricingRule å®ä½å¯¹è±¡ |
| | | * @return List<PricingRule> |
| | | */ |
| | | List<PricingRule> findList(PricingRule pricingRule); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<PricingRule> |
| | | */ |
| | | PageData<PricingRule> findPage(PageWrap<PricingRule> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param pricingRule å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(PricingRule pricingRule); |
| | | |
| | | /** |
| | | * æ¹éä¿åå°±å°ååè§å |
| | | * @param request æ¹éä¿åè¯·æ± |
| | | */ |
| | | void batchSaveLocalStoragePricing(LocalStoragePricingSaveDTO request); |
| | | |
| | | /** |
| | | * æ¥è¯¢å°±å°ååè§åå表 |
| | | * @param cityId åå¸ä¸»é® |
| | | * @return å°±å°ååè§åå表 |
| | | */ |
| | | List<LocalStoragePricingVO> listLocalStoragePricing(Integer cityId); |
| | | |
| | | /** |
| | | * æ¹éä¿åå¼å°å¯éè§å |
| | | * @param request æ¹éä¿åè¯·æ± |
| | | */ |
| | | void batchSaveRemoteDeliveryPricing(RemoteDeliveryPricingSaveDTO request); |
| | | |
| | | /** |
| | | * æ¥è¯¢å¼å°å¯éè§åå表 |
| | | * @param cityId åå¸ä¸»é® |
| | | * @return å¼å°å¯éè§åå表 |
| | | */ |
| | | List<RemoteDeliveryPricingVO> listRemoteDeliveryPricing(Integer cityId); |
| | | |
| | | /** |
| | | * ä¿åé¢è®¡æ¶æé
ç½®(æåæ´æ°ï¼æ åæ°å¢) |
| | | * @param request ä¿åè¯·æ± |
| | | */ |
| | | void saveEstimatedDelivery(EstimatedDeliverySaveDTO request); |
| | | |
| | | /** |
| | | * æ¥è¯¢é¢è®¡æ¶æé
ç½®(æä¸åªæä¸æ¡ï¼æ æ°æ®è¿å空对象) |
| | | * @param cityId åå¸ä¸»é® |
| | | * @return é¢è®¡æ¶æé
ç½® |
| | | */ |
| | | EstimatedDeliveryVO getEstimatedDelivery(Integer cityId); |
| | | |
| | | /** |
| | | * æ¹éä¿åé¨åºæ³¨åæ¼é |
| | | * @param request æ¹éä¿åè¯·æ± |
| | | */ |
| | | void batchSaveStoreDeposit(StoreDepositSaveDTO request); |
| | | |
| | | /** |
| | | * æ¥è¯¢é¨åºæ³¨åæ¼éå表(åºå®è¿å2æ¡) |
| | | * @param cityId åå¸ä¸»é® |
| | | * @return é¨åºæ³¨åæ¼éå表 |
| | | */ |
| | | List<StoreDepositVO> listStoreDeposit(Integer cityId); |
| | | |
| | | /** |
| | | * æ¹éä¿ååææ¯ä¾ |
| | | * @param request æ¹éä¿åè¯·æ± |
| | | */ |
| | | void batchSaveRevenueShare(RevenueShareSaveDTO request); |
| | | |
| | | /** |
| | | * æ¥è¯¢åææ¯ä¾å表(åºå®è¿å5æ¡) |
| | | * @param cityId åå¸ä¸»é® |
| | | * @return åææ¯ä¾å表 |
| | | */ |
| | | List<RevenueShareVO> listRevenueShare(Integer cityId); |
| | | |
| | | } |