UserMapper.java 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.common.model.OrganizationContactBook;
  5. import com.goafanti.common.model.User;
  6. import com.goafanti.common.model.UserBusiness;
  7. import com.goafanti.user.bo.OrgPartnerDetailBo;
  8. import com.goafanti.user.bo.UserDownLoadBo;
  9. import com.goafanti.user.bo.UserPageHomeBo;
  10. import com.goafanti.user.bo.UserPartnerDetailBo;
  11. import com.goafanti.common.model.UserExample;
  12. import com.goafanti.customer.bo.CustomerOrganizationDetailBo;
  13. import com.goafanti.customer.bo.CustomerPersonalDetailBo;
  14. import com.goafanti.customer.bo.CustomerSimpleBo;
  15. import com.goafanti.customer.bo.FollowBusinessBo;
  16. public interface UserMapper {
  17. /**
  18. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  19. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  20. */
  21. long countByExample(UserExample example);
  22. /**
  23. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  24. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  25. */
  26. int deleteByExample(UserExample example);
  27. /**
  28. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  29. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  30. */
  31. int deleteByPrimaryKey(String id);
  32. /**
  33. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  34. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  35. */
  36. int insert(User record);
  37. /**
  38. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  39. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  40. */
  41. int insertSelective(User record);
  42. /**
  43. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  44. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  45. */
  46. List<User> selectByExample(UserExample example);
  47. /**
  48. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  49. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  50. */
  51. User selectByPrimaryKey(String id);
  52. /**
  53. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  54. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  55. */
  56. int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
  57. /**
  58. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  59. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  60. */
  61. int updateByExample(@Param("record") User record, @Param("example") UserExample example);
  62. /**
  63. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  64. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  65. */
  66. int updateByPrimaryKeySelective(User record);
  67. /**
  68. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  69. * @mbg.generated Tue Nov 14 19:38:26 CST 2017
  70. */
  71. int updateByPrimaryKey(User record);
  72. UserPageHomeBo selectUserPageHomeBoByUserId(String uid);
  73. UserDownLoadBo selectUserDownLoadBoByUserId(String id);
  74. //List<OrgListBo> selectUserByAid(String aid);
  75. String findUserByNameAndMobile(@Param("name") String name, @Param("mobile") String mobile);
  76. String findOrgByNameAndMobile(@Param("name") String name, @Param("mobile") String mobile);
  77. UserPartnerDetailBo findUserPartnerDetail(String uid);
  78. OrgPartnerDetailBo findOrgPartnerDetail(String uid);
  79. Long selectNumberByPrimaryKey(String userId);
  80. List<UserPartnerDetailBo> findUserPartner();
  81. User selectByMobieAndType(String mobile, Integer type);
  82. /**
  83. * 根据客户模糊搜索
  84. * @param name
  85. * @return
  86. */
  87. List<CustomerSimpleBo> findCustomerByName(@Param("identifyName")String identifyName);
  88. /**
  89. * 判断客户是否存在
  90. * @param name
  91. * @return
  92. */
  93. int judgeCustomerByName(String name);
  94. /**
  95. * 查询单位客户详情
  96. * @param uid 用户ID
  97. * @return
  98. */
  99. CustomerPersonalDetailBo findPersonalCustomerDetail(@Param("uid")String uid);
  100. /**
  101. * 查询单位客户详情
  102. * @param uid 用户ID
  103. * @return
  104. */
  105. CustomerOrganizationDetailBo findOrganizationCustomerDetail(@Param("uid")String uid);
  106. /**
  107. * 查看客户账户信息
  108. * @param uid
  109. * @return
  110. */
  111. User findUserAccountDetail(@Param("uid")String uid);
  112. /**
  113. * 查看客户联系人列表
  114. * @param uid
  115. * @return
  116. */
  117. List<OrganizationContactBook> findCustomerContacts(@Param("uid")String uid,@Param("aid")String aid);
  118. /**
  119. * 查询拜访详情
  120. * @param followId
  121. * @return
  122. */
  123. FollowBusinessBo findFollowById(String followId);
  124. /**
  125. * 查询单次拜访推进的客户业务
  126. * @param followId
  127. * @return
  128. */
  129. List<UserBusiness> findBusinessByFollowId(String followId);
  130. /**
  131. * 查询客户所有联系人
  132. * @param uid
  133. * @return
  134. */
  135. List<OrganizationContactBook> findAllContacts(String uid);
  136. }