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 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 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 findUserPartner(); User selectByMobieAndType(String mobile, Integer type); /** * 根据客户模糊搜索 * @param name * @return */ List 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 findCustomerContacts(@Param("uid")String uid,@Param("aid")String aid); /** * 查询拜访详情 * @param followId * @return */ FollowBusinessBo findFollowById(String followId); /** * 查询单次拜访推进的客户业�? * @param followId * @return */ List findBusinessByFollowId(String followId); /** * 查询客户�?有联系人 * @param uid * @return */ List findAllContacts(String uid); /** * 查询用户 * @param uid * @param identifyName * @param mobile * @return */ List 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); }