| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- package com.goafanti.common.dao;
- import java.util.List;
- import org.apache.ibatis.annotations.Param;
- import com.goafanti.common.model.OrganizationContactBook;
- import com.goafanti.common.model.User;
- import com.goafanti.common.model.UserBusiness;
- import com.goafanti.user.bo.OrgPartnerDetailBo;
- import com.goafanti.user.bo.UserDownLoadBo;
- import com.goafanti.user.bo.UserPageHomeBo;
- import com.goafanti.user.bo.UserPartnerDetailBo;
- import com.goafanti.common.model.UserExample;
- import com.goafanti.customer.bo.CustomerOrganizationDetailBo;
- import com.goafanti.customer.bo.CustomerPersonalDetailBo;
- import com.goafanti.customer.bo.CustomerSimpleBo;
- import com.goafanti.customer.bo.FollowBusinessBo;
- import com.goafanti.customer.bo.StatisticBo;
- public interface UserMapper {
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- long countByExample(UserExample example);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int deleteByExample(UserExample example);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int deleteByPrimaryKey(String id);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int insert(User record);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int insertSelective(User record);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- List<User> selectByExample(UserExample example);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- User selectByPrimaryKey(String id);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int updateByExample(@Param("record") User record, @Param("example") UserExample example);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int updateByPrimaryKeySelective(User record);
- /**
- * This method was generated by MyBatis Generator. This method corresponds to the database table user
- * @mbg.generated Thu Nov 30 16:41:39 CST 2017
- */
- int updateByPrimaryKey(User record);
- UserPageHomeBo selectUserPageHomeBoByUserId(String uid);
- UserDownLoadBo selectUserDownLoadBoByUserId(String id);
- //List<OrgListBo> selectUserByAid(String aid);
- String findUserByNameAndMobile(@Param("name") String name, @Param("mobile") String mobile);
- String findOrgByNameAndMobile(@Param("name") String name, @Param("mobile") String mobile);
- UserPartnerDetailBo findUserPartnerDetail(String uid);
- OrgPartnerDetailBo findOrgPartnerDetail(String uid);
- Long selectNumberByPrimaryKey(String userId);
-
- List<UserPartnerDetailBo> findUserPartner();
-
- User selectByMobieAndType(String mobile, Integer type);
-
- /**
- * 根据客户模糊搜索
- * @param name
- * @return
- */
- List<CustomerSimpleBo> findCustomerByName(@Param("identifyName")String identifyName);
- /**
- * 判断客户是否存在
- * @param name
- * @return
- */
- int judgeCustomerByName(@Param("identifyName")String identifyName);
-
- /**
- * 查询单位客户详情
- * @param uid 用户ID
- * @return
- */
- CustomerPersonalDetailBo findPersonalCustomerDetail(@Param("uid")String uid);
-
-
- /**
- * 查询单位客户详情
- * @param uid 用户ID
- * @return
- */
- CustomerOrganizationDetailBo findOrganizationCustomerDetail(@Param("uid")String uid);
- /**
- * 查看客户账户信息
- * @param uid
- * @return
- */
- User findUserAccountDetail(@Param("uid")String uid);
- /**
- * 查看客户联系人列�?
- * @param uid
- * @return
- */
- List<OrganizationContactBook> findCustomerContacts(@Param("uid")String uid,@Param("aid")String aid);
- /**
- * 查询拜访详情
- * @param followId
- * @return
- */
- FollowBusinessBo findFollowById(String followId);
- /**
- * 查询单次拜访推进的客户业�?
- * @param followId
- * @return
- */
- List<UserBusiness> findBusinessByFollowId(String followId);
- /**
- * 查询客户�?有联系人
- * @param uid
- * @return
- */
- List<OrganizationContactBook> findAllContacts(String uid);
- /**
- * 查询用户
- * @param uid
- * @param identifyName
- * @param mobile
- * @return
- */
- List<User> checkUser(@Param("id")String id,@Param("identifyName")String identifyName, @Param("mobile")String mobile,@Param("type")Integer type);
-
- /**
- * 查询一个营销员的拜访数量 和客户数量
- * @param aid
- */
- StatisticBo selectFollowAndCustomerCount(@Param("aid")String aid);
- }
|