首页>代码>springboot+layui旅游信息管理系统,包括前台景点展现和后台管理>/travel/src/main/java/com/cn/travel/cms/car/dao/CarDao.java
package com.cn.travel.cms.car.dao;

import com.cn.travel.base.dao.BaseDao;
import com.cn.travel.cms.car.entity.Car;
import com.cn.travel.cms.car.provider.CarSqlProvider;
import com.cn.travel.cms.hotel.entity.Hotel;
import com.cn.travel.cms.hotel.provider.HotelSqlProvider;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CarDao  extends BaseDao<Car> {
    @SelectProvider(type = CarSqlProvider.class, method = "findById")
    public Car findById(@Param("id") String id);

    @SelectProvider(type = CarSqlProvider.class, method = "findList")
    public List<Car> findList();

    @SelectProvider(type = CarSqlProvider.class, method = "indexList")
    public List<Car> indexList();

    @SelectProvider(type = CarSqlProvider.class, method = "findListByQuery")
    public List<Car> findListByQuery(@Param("query") String query);

    @InsertProvider(type = CarSqlProvider.class, method = "save")
    public void save(Car car);

    @UpdateProvider(type = CarSqlProvider.class, method = "update")
    public void update(Car car);

    @UpdateProvider(type = CarSqlProvider.class, method = "deleteByid")
    public void deleteByid(@Param("id") String id);

    @SelectProvider(type = CarSqlProvider.class, method = "count")
    public long count();


    @SelectProvider(type = CarSqlProvider.class, method = "state0count")
    public long state0count();
    @SelectProvider(type = CarSqlProvider.class, method = "state1count")
    public long state1count();
    @SelectProvider(type = CarSqlProvider.class, method = "state2count")
    public long state2count();


    @SelectProvider(type = CarSqlProvider.class, method = "type0count")
    public long type0count();
    @SelectProvider(type = CarSqlProvider.class, method = "type1count")
    public long type1count();
    @SelectProvider(type = CarSqlProvider.class, method = "type2count")
    public long type2count();
}
最近下载更多
2636804923  LV6 2月26日
dane168  LV8 2月17日
微信网友_7266562355466240  LV1 2024年11月23日
微笑刺客  LV21 2024年11月22日
qwerweq  LV1 2024年8月21日
zhaozhanzhan136  LV2 2024年7月11日
ma406805131  LV19 2024年6月18日
来一杯西瓜冰咩  LV6 2024年5月24日
陈金龙  LV7 2024年4月12日
1098774122  LV6 2024年4月6日
最近浏览更多
jinxinquq 3月30日
暂无贡献等级
Javatopone 3月29日
暂无贡献等级
chutianyu  LV4 3月28日
qibodong  LV15 2月28日
2636804923  LV6 2月26日
dane168  LV8 2月17日
xiejingxun  LV2 2024年12月31日
苯科仔 2024年12月16日
暂无贡献等级
zruth30  LV1 2024年12月8日
微信网友_7266562355466240  LV1 2024年11月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友