UserMapper.java 5.5 KB

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