package com.goafanti.common.dao; import com.goafanti.common.model.Customer; import com.goafanti.common.model.CustomerExample; import com.goafanti.customer.bo.CustomerOut; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CustomerMapper { /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ long countByExample(CustomerExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int deleteByExample(CustomerExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int deleteByPrimaryKey(String id); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int insert(Customer record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int insertSelective(Customer record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ List selectByExample(CustomerExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ Customer selectByPrimaryKey(String id); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int updateByPrimaryKeySelective(Customer record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table customer * @mbg.generated Fri Oct 13 15:28:17 CST 2017 */ int updateByPrimaryKey(Customer record); /** * 查询 * @param id * @return */ CustomerOut selectCustomerById(String id); /** * 查询团队 客户记录 * @param ladderId 上层领导ID * @return */ List selectByLadderId(@Param("ladderId")String ladderId); /** * 客户详情-历史记录 * @param customerId * @return */ CustomerOut findCustomerHistory(@Param("id")String customerId); }