yujian
2020-05-09 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/customerservice/CustomerServiceCommonQuestionMapper.java
@@ -1,43 +1,66 @@
package com.yeshi.fanli.dao.mybatis.customerservice;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.entity.customerservice.CustomerServiceCommonQuestion;
public interface CustomerServiceCommonQuestionMapper {
   int deleteByPrimaryKey(Long id);
   int insert(CustomerServiceCommonQuestion record);
   int insertSelective(CustomerServiceCommonQuestion record);
   CustomerServiceCommonQuestion selectByPrimaryKey(Long id);
   /**
    * 按KEY值模糊检索
    *
    * @param key
    * @return
    */
   List<CustomerServiceCommonQuestion> selectByKey(@Param("key")String key);
   /**
    * 检索所有数据
    *
    * @param start
    * @param count
    * @return
    */
   List<CustomerServiceCommonQuestion> selectOrderByUpdateTime(@Param("start") long start, @Param("count") int count);
   long selectCount();
   int updateByPrimaryKeySelective(CustomerServiceCommonQuestion record);
   int updateByPrimaryKey(CustomerServiceCommonQuestion record);
   List<String> selectKeys();
package com.yeshi.fanli.dao.mybatis.customerservice;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.entity.customerservice.CustomerServiceCommonQuestion;
public interface CustomerServiceCommonQuestionMapper {
   int deleteByPrimaryKey(Long id);
   int deleteBatchByPrimaryKey(List<Long> list);
   int insert(CustomerServiceCommonQuestion record);
   int insertSelective(CustomerServiceCommonQuestion record);
   CustomerServiceCommonQuestion selectByPrimaryKey(Long id);
   /**
    * 按KEY值模糊检索
    *
    * @param key
    * @return
    */
   List<CustomerServiceCommonQuestion> selectByKey(@Param("key")String key);
   /**
    * 检索所有数据
    *
    * @param start
    * @param count
    * @return
    */
   List<CustomerServiceCommonQuestion> selectOrderByUpdateTime(@Param("start") long start, @Param("count") int count);
   long selectCount();
   int updateByPrimaryKeySelective(CustomerServiceCommonQuestion record);
   int updateByPrimaryKey(CustomerServiceCommonQuestion record);
   List<String> selectKeys();
   /**
    * 后端查询列表
    * @param start
    * @param count
    * @param key
    * @param type
    * @param state
    * @return
    */
   List<CustomerServiceCommonQuestion> listQuery(@Param("start") long start, @Param("count") int count,
         @Param("key")String key, @Param("type")String type,
         @Param("state") Integer state, @Param("sort") Integer sort);
   /**
    * 统计
    * @param key
    * @param type
    * @param state
    * @return
    */
   long countQuery(@Param("key")String key, @Param("type")String type, @Param("state") Integer state);
}