UserMapper.java 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.app.bo.UserBasicInfo;
  5. import com.goafanti.common.model.Admin;
  6. import com.goafanti.common.model.OrganizationContactBook;
  7. import com.goafanti.common.model.User;
  8. import com.goafanti.common.model.UserBusiness;
  9. import com.goafanti.user.bo.OrgPartnerDetailBo;
  10. import com.goafanti.user.bo.UserDownLoadBo;
  11. import com.goafanti.user.bo.UserInterestBo;
  12. import com.goafanti.user.bo.UserPageHomeBo;
  13. import com.goafanti.user.bo.UserPartnerDetailBo;
  14. import com.goafanti.common.model.UserExample;
  15. import com.goafanti.customer.bo.CustomerOrganizationDetailBo;
  16. import com.goafanti.customer.bo.CustomerPersonalDetailBo;
  17. import com.goafanti.customer.bo.CustomerSimpleBo;
  18. import com.goafanti.customer.bo.FollowBusinessBo;
  19. public interface UserMapper {
  20. /**
  21. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  22. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  23. */
  24. long countByExample(UserExample example);
  25. /**
  26. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  27. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  28. */
  29. int deleteByExample(UserExample example);
  30. /**
  31. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  32. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  33. */
  34. int deleteByPrimaryKey(String id);
  35. /**
  36. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  37. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  38. */
  39. int insert(User record);
  40. /**
  41. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  42. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  43. */
  44. int insertSelective(User record);
  45. /**
  46. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  47. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  48. */
  49. List<User> selectByExample(UserExample example);
  50. /**
  51. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  52. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  53. */
  54. User selectByPrimaryKey(String id);
  55. /**
  56. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  57. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  58. */
  59. int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
  60. /**
  61. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  62. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  63. */
  64. int updateByExample(@Param("record") User record, @Param("example") UserExample example);
  65. /**
  66. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  67. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  68. */
  69. int updateByPrimaryKeySelective(User record);
  70. /**
  71. * This method was generated by MyBatis Generator. This method corresponds to the database table user
  72. * @mbg.generated Thu Nov 30 16:41:39 CST 2017
  73. */
  74. int updateByPrimaryKey(User record);
  75. UserPageHomeBo selectUserPageHomeBoByUserId(String uid);
  76. UserDownLoadBo selectUserDownLoadBoByUserId(String id);
  77. //List<OrgListBo> selectUserByAid(String aid);
  78. String findUserByNameAndMobile(@Param("name") String name, @Param("mobile") String mobile);
  79. String findOrgByNameAndMobile(@Param("name") String name, @Param("mobile") String mobile);
  80. UserPartnerDetailBo findUserPartnerDetail(String uid);
  81. OrgPartnerDetailBo findOrgPartnerDetail(String uid);
  82. Long selectNumberByPrimaryKey(String userId);
  83. List<UserPartnerDetailBo> findUserPartner();
  84. User selectByMobieAndType(String mobile, Integer type);
  85. /**
  86. * 根据客户模糊搜索
  87. * @param name
  88. * @return
  89. */
  90. List<CustomerSimpleBo> findCustomerByName(@Param("identifyName")String identifyName);
  91. /**
  92. * 判断客户是否存在
  93. * @param name
  94. * @return
  95. */
  96. int judgeCustomerByName(@Param("identifyName")String identifyName);
  97. /**
  98. * 查询单位客户详情
  99. * @param uid 用户ID
  100. * @return
  101. */
  102. CustomerPersonalDetailBo findPersonalCustomerDetail(@Param("uid")String uid);
  103. /**
  104. * 查询单位客户详情
  105. * @param uid 用户ID
  106. * @return
  107. */
  108. CustomerOrganizationDetailBo findOrganizationCustomerDetail(@Param("uid")String uid);
  109. /**
  110. * 查看客户账户信息
  111. * @param uid
  112. * @return
  113. */
  114. User findUserAccountDetail(@Param("uid")String uid);
  115. /**
  116. * 查看客户联系人列�?
  117. * @param uid
  118. * @return
  119. */
  120. List<OrganizationContactBook> findCustomerContacts(@Param("uid")String uid,@Param("aid")String aid);
  121. /**
  122. * 查询拜访详情
  123. * @param followId
  124. * @return
  125. */
  126. FollowBusinessBo findFollowById(String followId);
  127. /**
  128. * 查询单次拜访推进的客户业�?
  129. * @param followId
  130. * @return
  131. */
  132. List<UserBusiness> findBusinessByFollowId(String followId);
  133. /**
  134. * 查询客户�?有联系人
  135. * @param uid
  136. * @return
  137. */
  138. List<OrganizationContactBook> findAllContacts(String uid);
  139. /**
  140. * 查询用户
  141. * @param id
  142. * @param identifyName 认证用户名
  143. * @param mobile 手机号码
  144. * @param type 用户类型 0-个人 1-单位
  145. * @param source 来源 0-注册 1-录入
  146. * @return
  147. * @param nickname 昵称
  148. */
  149. List<User> checkUser(@Param("id")String id,@Param("identifyName")String identifyName, @Param("mobile")String mobile,
  150. @Param("type")Integer type,@Param("source") Integer source,@Param("nickname") String nickname);
  151. List<UserInterestBo> userInterest(String uid);
  152. /**
  153. * 查询用户基本信息
  154. * @param id
  155. * @return
  156. */
  157. UserBasicInfo selectBaseInfo(@Param("id")String id);
  158. /**
  159. * 根据用户编号
  160. * @param easemobName
  161. * @return
  162. */
  163. User selectByNumber(@Param("easemobName")String easemobName);
  164. List<Admin> findAdminName(String aid);
  165. }