IOrgV1ServiceDao.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright 2017-2020 吴学文 and java110 team.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.java110.user.dao;
  17. import com.java110.utils.exception.DAOException;
  18. import java.util.List;
  19. import java.util.Map;
  20. /**
  21. * 类表述:
  22. * add by 吴学文 at 2022-02-28 17:26:28 mail: 928255095@qq.com
  23. * open source address: https://gitee.com/wuxw7/MicroCommunity
  24. * 官网:http://www.homecommunity.cn
  25. * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  26. * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  27. */
  28. public interface IOrgV1ServiceDao {
  29. /**
  30. * 保存 组织信息
  31. * @param info
  32. * @throws DAOException DAO异常
  33. */
  34. int saveOrgInfo(Map info) throws DAOException;
  35. /**
  36. * 查询组织信息(instance过程)
  37. * 根据bId 查询组织信息
  38. * @param info bId 信息
  39. * @return 组织信息
  40. * @throws DAOException DAO异常
  41. */
  42. List<Map> getOrgInfo(Map info) throws DAOException;
  43. /**
  44. * 修改组织信息
  45. * @param info 修改信息
  46. * @throws DAOException DAO异常
  47. */
  48. int updateOrgInfo(Map info) throws DAOException;
  49. /**
  50. * 查询组织总数
  51. *
  52. * @param info 组织信息
  53. * @return 组织数量
  54. */
  55. int queryOrgsCount(Map info);
  56. }