sql代碼

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);

}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章