package com.wjh.dao;
import com.wjh.dao.model.Conference;
import com.wjh.dao.model.ConferenceExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
public interface ConferenceMapper {
int countByExample(ConferenceExample example);
int deleteByExample(ConferenceExample example);
int deleteByPrimaryKey(Integer id);
int insert(Conference record);
int insertSelective(Conference record);
List<Conference> selectByExample(ConferenceExample example);
Conference selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Conference record, @Param("example") ConferenceExample example);
int updateByExample(@Param("record") Conference record, @Param("example") ConferenceExample example);
int updateByPrimaryKeySelective(Conference record);
int updateByPrimaryKey(Conference record);
@Select("select * from l_conference conf join l_tower tow on conf.lid=tow.lid")
List<Conference> listConference();
@Insert("insert into l_conference (lid,cid,hid,name,num,type,tv,projection,reserve,usable) values (#{lid},#{cid},#{hid}, #{name},#{num},#{type},#{tv},#{projection},#{reserve},#{usable})")
void add(Conference conf);
@Select("select * from l_conference where id=#{id}")
Conference confList(int id);
@Update(" update l_conference set lid = #{lid} ,cid = #{cid},hid = #{hid},name = #{name},num = #{num},type = #{type},tv = #{tv},projection = #{projection},reserve = #{reserve}, usable = #{usable} where id=#{id}")
int update(Conference conf);
@Delete("delete from l_conference where id in (${value})")
void dele(String id);
}