public class WaimaiAbstractService extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected WaimaiDishCategoryMappingDao |
dishCategoryMappingDao |
protected WaimaiDishMappingDao |
dishMappingDao |
protected WaimaiOrderMappingDao |
orderMappingDao |
| 构造器和说明 |
|---|
WaimaiAbstractService() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addDishMapping(Long mchId,
Long storeId,
Long dishNormId,
String targetId,
String platformType) |
protected void |
addDishMapping(Long mchId,
Long storeId,
Long dishNormId,
String targetId,
String platformType,
Map<String,Object> properties) |
protected Boolean |
checkDishPlatformById(Long mchId,
Long storeId,
Long dishNormId,
String platformType) |
protected List<Long> |
checkDishPlatformByIds(Long mchId,
Long storeId,
List<Long> dishNormIds,
String platformType) |
protected Boolean |
checkStorePlatformById(Long mchId,
Long storeId,
String platformType) |
protected WaimaiDishCategoryMapping |
findDishCategoryMapping(Long mchId,
Long storeId,
Long dishGroupId,
String platformType) |
protected WaimaiDishMapping |
findDishMapping(Long mchId,
Long storeId,
Long dishNormId,
String platformType) |
protected WaimaiOrderMapping |
findOrderMappingByOrderIdPlatformType(Long mchId,
Long storeId,
Long orderId,
String platformType) |
protected WaimaiOrderMapping |
findOrderMappingByTargetPlatformType(String targetId,
String platformType) |
protected WaimaiStoreMapping |
findStoreMapping(Long mchId,
Long storeId,
String platformType) |
protected WaimaiStoreMapping |
findStoreMappingByMappingIdPlatformType(String mappingId,
String platformType) |
protected Boolean |
isBaiduOrder(Long orderId) |
protected Boolean |
isElemeOrder(Long orderId) |
protected Boolean |
isMeituanOrder(Long orderId) |
protected void |
log(String cmd,
String method,
Boolean isSuccess,
String request,
String response) |
protected WaimaiDishCategoryMapping |
saveDishCategoryMapping(Long mchId,
Long storeId,
Long dishGroupId,
String name,
String targetId,
String platformType) |
protected WaimaiOrderMapping |
saveOrderMapping(Long mchId,
Long storeId,
Long orderId,
String targetId,
String platformType) |
protected WaimaiOrderMapping |
saveOrderMapping(Long mchId,
Long storeId,
Long orderId,
String targetId,
String viewId,
String platformType) |
protected void |
saveStoreMapping(Long mchId,
Long storeId,
String targetId,
String platformType) |
protected void |
updateDishMapping(WaimaiDishMapping dishMapping) |
protected void |
updateOrderMapping(WaimaiOrderMapping orderMapping) |
@Autowired protected WaimaiDishCategoryMappingDao dishCategoryMappingDao
@Autowired protected WaimaiDishMappingDao dishMappingDao
@Autowired protected WaimaiOrderMappingDao orderMappingDao
protected void log(String cmd, String method, Boolean isSuccess, String request, String response)
protected Boolean checkStorePlatformById(Long mchId, Long storeId, String platformType)
protected WaimaiStoreMapping findStoreMapping(Long mchId, Long storeId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected WaimaiStoreMapping findStoreMappingByMappingIdPlatformType(String mappingId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected void saveStoreMapping(Long mchId, Long storeId, String targetId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected WaimaiDishCategoryMapping findDishCategoryMapping(Long mchId, Long storeId, Long dishGroupId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected WaimaiDishCategoryMapping saveDishCategoryMapping(Long mchId, Long storeId, Long dishGroupId, String name, String targetId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected Boolean checkDishPlatformById(Long mchId, Long storeId, Long dishNormId, String platformType)
protected List<Long> checkDishPlatformByIds(Long mchId, Long storeId, List<Long> dishNormIds, String platformType)
protected WaimaiDishMapping findDishMapping(Long mchId, Long storeId, Long dishNormId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected void addDishMapping(Long mchId, Long storeId, Long dishNormId, String targetId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected void addDishMapping(Long mchId, Long storeId, Long dishNormId, String targetId, String platformType, Map<String,Object> properties) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected void updateDishMapping(WaimaiDishMapping dishMapping) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected WaimaiOrderMapping findOrderMappingByOrderIdPlatformType(Long mchId, Long storeId, Long orderId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected WaimaiOrderMapping findOrderMappingByTargetPlatformType(String targetId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected WaimaiOrderMapping saveOrderMapping(Long mchId, Long storeId, Long orderId, String targetId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected WaimaiOrderMapping saveOrderMapping(Long mchId, Long storeId, Long orderId, String targetId, String viewId, String platformType) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionprotected void updateOrderMapping(WaimaiOrderMapping orderMapping) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionCopyright © 2018. All rights reserved.