package com.example.springboot.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.example.springboot.entity.GlassInfo; import org.apache.ibatis.annotations.*; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository public interface GlassInfoMapper extends BaseMapper { @Select("SELECT * FROM glassinfo where width<=#{maxwidth} and width>=#{minwidth} and height<=#{maxheight} and height>=#{minheight} and measurenumber selectGlassInfos(@Param("maxwidth") double maxwidth, @Param("minwidth") double minwidth, @Param("maxheight") double maxheight, @Param("minheight") double minheight); // @Select("SELECT COUNT(*) FROM role_permission WHERE role_id = #{roleId} AND permission_id = #{permissionId}") // boolean checkExists(@Param("roleId") int roleId, @Param("permissionId") int permissionId); @Update("UPDATE glassinfo SET measurenumber = measurenumber+1 WHERE id = #{id}") void updatemeasurenumber(@Param("id") int roleId); // @Insert("INSERT INTO role_permission (role_id, permission_id, state) VALUES (#{roleId}, #{permissionId}, #{state})") // void insert(@Param("roleId") int roleId, @Param("permissionId") int permissionId, @Param("state") int state); }