PosStoreOmgMapper.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.ruoyi.system.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.ruoyi.system.domain.PosStoreOmg;
  4. import com.ruoyi.system.domain.vo.PosStoreOmgVo;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * 门店 OMG(歐買尬) 支付凭证 Mapper。
  9. *
  10. * <p>发起支付/回调用 selectByStoreId、selectByMerchantId;凭证管理用 selectOmgStoreList、selectOmgStoreDetail。
  11. *
  12. * @author ruoyi
  13. * @date 2026-07-29
  14. */
  15. public interface PosStoreOmgMapper extends BaseMapper<PosStoreOmg> {
  16. /** 按门店ID查凭证(发起支付 getEnabledCredential 用)。 */
  17. PosStoreOmg selectByStoreId(@Param("storeId") Long storeId);
  18. /** 按 OMG 商店代号反查凭证(回调按 MerchantID 定位门店用)。 */
  19. PosStoreOmg selectByMerchantId(@Param("merchantId") String merchantId);
  20. /** 按 merchant_id + store_id 精确反查凭证(退款/查询补单:同 merchant 多门店定位本店)。 */
  21. PosStoreOmg selectByMerchantIdAndStoreId(@Param("merchantId") String merchantId, @Param("storeId") Long storeId);
  22. /** 门店 OMG 凭证管理列表(pos_store LEFT JOIN pos_store_omg + info_user,配合 PageHelper 分页)。 */
  23. List<PosStoreOmgVo> selectOmgStoreList(PosStoreOmgVo query);
  24. /** 门店 OMG 凭证详情(单行,含门店基础信息)。 */
  25. PosStoreOmgVo selectOmgStoreDetail(@Param("storeId") Long storeId);
  26. }