package com.cftech.consultsheet.dao;


import com.alibaba.fastjson.JSONObject;
import com.cftech.consultsheet.model.ConsultSheet;
import com.cftech.core.generic.GenericDao;
import com.cftech.core.sql.Conds;
import com.cftech.core.sql.Sort;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 咨询单Mapper
*
* @author Licc
* @date: 2020-09-22 12:06
*/
public interface ConsultSheetMapper extends GenericDao<ConsultSheet> {

    Integer updateDate(@Param("consultId") String consultId, @Param("status") String status, @Param("description") String description);

    Integer updateStatus(@Param("consultId") String consultId, @Param("status") String status);

    List<ConsultSheet> fetchSearchByPage(Conds conds, Sort sort, int page, int pageSize, Long id);

    List<ConsultSheet> consultSheetList(@Param("name") String name,@Param("id")Long id,@Param("openid") String openid);
}