|
@ -6,10 +6,15 @@ import org.apache.ibatis.annotations.Param; |
|
|
import org.apache.ibatis.annotations.Select; |
|
|
import org.apache.ibatis.annotations.Select; |
|
|
import org.apache.ibatis.annotations.Update; |
|
|
import org.apache.ibatis.annotations.Update; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
public interface MatrixAppMapper extends BaseMapper<MatrixApp> { |
|
|
public interface MatrixAppMapper extends BaseMapper<MatrixApp> { |
|
|
@Select("select * from matrix_app where code = #{code}") |
|
|
@Select("select * from matrix_app where code = #{code}") |
|
|
MatrixApp queryByCode(String code); |
|
|
MatrixApp queryByCode(String code); |
|
|
|
|
|
|
|
|
@Update("update matrix_app set name = #{app.name}, img=#{app.img}, url=#{app.url}, hide=#{app.hide} where code = #{app.code}") |
|
|
@Update("update matrix_app set name = #{app.name}, img=#{app.img}, url=#{app.url}, hide=#{app.hide} where code = #{app.code}") |
|
|
int updateNameOrUrl(@Param("app") MatrixApp app); |
|
|
int updateNameOrUrl(@Param("app") MatrixApp app); |
|
|
|
|
|
|
|
|
|
|
|
@Select("select * from matrix_app where channel = #{channel}") |
|
|
|
|
|
List<MatrixApp> selectByChannel(String channel); |
|
|
} |
|
|
} |
|
|