package com.ssm.manage.mapper;
import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.PlatformCoupon;
import com.ssm.manage.entity.UseProject;
import com.ssm.manage.query.PlatformCouponRequest;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UseProjectMapper extends BaseMapper<UseProject>{
    /**
     * 查询所有数据
     *
     * @param useProject
     * @return
     */
    List<UseProject> queryAll(UseProject useProject);

    UseProject selectProject(@Param("projectId") Long projectId);

    List<UseProject> selectlist(PlatformCoupon platformCoupon);

    int deleteuseProject(@Param("projectId")Long useProject,@Param("platformCoupon") PlatformCouponRequest platformCoupon);
}
