package com.jsh.erp.datasource.mappers; import com.jsh.erp.datasource.entities.CloudContent; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; @Mapper public interface CloudContentMapper { @Select("select * from cloud_content where status = '1' and type =#{type} limit 1") CloudContent getByType(@Param("type") String type); List selectList(CloudContent cloudContent); CloudContent selectById(Long id); int insert(CloudContent cloudContent); int update(CloudContent cloudContent); int deleteById(Long id); }