IAccountServiceDao.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package com.java110.acct.dao;
  2. import com.java110.utils.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 IAccountServiceDao {
  17. /**
  18. * 保存 账户信息
  19. * @param businessAccountInfo 账户信息 封装
  20. * @throws DAOException 操作数据库异常
  21. */
  22. void saveBusinessAccountInfo(Map businessAccountInfo) throws DAOException;
  23. /**
  24. * 查询账户信息(business过程)
  25. * 根据bId 查询账户信息
  26. * @param info bId 信息
  27. * @return 账户信息
  28. * @throws DAOException DAO异常
  29. */
  30. List<Map> getBusinessAccountInfo(Map info) throws DAOException;
  31. /**
  32. * 保存 账户信息 Business数据到 Instance中
  33. * @param info
  34. * @throws DAOException DAO异常
  35. */
  36. void saveAccountInfoInstance(Map info) throws DAOException;
  37. /**
  38. * 查询账户信息(instance过程)
  39. * 根据bId 查询账户信息
  40. * @param info bId 信息
  41. * @return 账户信息
  42. * @throws DAOException DAO异常
  43. */
  44. List<Map> getAccountInfo(Map info) throws DAOException;
  45. /**
  46. * 修改账户信息
  47. * @param info 修改信息
  48. * @throws DAOException DAO异常
  49. */
  50. void updateAccountInfoInstance(Map info) throws DAOException;
  51. /**
  52. * 查询账户总数
  53. *
  54. * @param info 账户信息
  55. * @return 账户数量
  56. */
  57. int queryAccountsCount(Map info);
  58. /**
  59. * 查询账户总数
  60. *
  61. * @param info 账户信息
  62. * @return 账户数量
  63. */
  64. int updateAccount(Map info);
  65. }