IServiceDao.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package com.java110.store.dao;
  2. import com.java110.common.exception.DAOException;
  3. import com.java110.entity.merchant.BoMerchant;
  4. import com.java110.entity.merchant.BoMerchantAttr;
  5. import com.java110.entity.merchant.Merchant;
  6. import com.java110.entity.merchant.MerchantAttr;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * 商户组件内部之间使用,没有给外围系统提供服务能力
  11. * 商户服务接口类,要求全部以字符串传输,方便微服务化
  12. * 新建客户,修改客户,删除客户,查询客户等功能
  13. *
  14. * Created by wuxw on 2016/12/27.
  15. */
  16. public interface IStoreServiceDao {
  17. /**
  18. * 保存 商户信息
  19. * @param businessStoreInfo 商户信息 封装
  20. * @throws DAOException 操作数据库异常
  21. */
  22. public void saveBusinessStoreInfo(Map businessStoreInfo) throws DAOException;
  23. /**
  24. * 查询商户信息(business过程)
  25. * 根据bId 查询商户信息
  26. * @param info bId 信息
  27. * @return 商户信息
  28. * @throws DAOException
  29. */
  30. public List<Map> getBusinessStoreInfo(Map info) throws DAOException;
  31. /**
  32. * 保存 商户信息 Business数据到 Instance中
  33. * @param info
  34. * @throws DAOException
  35. */
  36. public void saveStoreInfoInstance(Map info) throws DAOException;
  37. /**
  38. * 查询商户信息(instance过程)
  39. * 根据bId 查询商户信息
  40. * @param info bId 信息
  41. * @return 商户信息
  42. * @throws DAOException
  43. */
  44. public List<Map> getStoreInfo(Map info) throws DAOException;
  45. /**
  46. * 修改商户信息
  47. * @param info 修改信息
  48. * @throws DAOException
  49. */
  50. public void updateStoreInfoInstance(Map info) throws DAOException;
  51. /**
  52. * 查询商户总数
  53. *
  54. * @param info 商户信息
  55. * @return 商户数量
  56. */
  57. int queryStoresCount(Map info);
  58. }