package com.cyynote.dso; import com.cyynote.model.AppxModel; import java.util.List; import java.util.Map; import org.noear.wood.BaseMapper; import org.noear.wood.annotation.Db; import org.noear.wood.annotation.Sql; @Db public interface SqlAnnotation extends BaseMapper { @Sql("select app_id from appx limit 1") int appx_get() throws Exception; @Sql(value = "select * from appx where app_id = @{app_id} limit 1", caching = "test", cacheTag = "app_${app_id}") AppxModel appx_get2(int paramInt) throws Exception; @Sql(value = "select * from ${tb} where app_id = @{app_id} limit 1", cacheClear = "test") Map appx_get3(String paramString, int paramInt) throws Exception; @Sql("select * from appx where app_id>@{app_id} order by app_id asc limit 4") List appx_getlist(int paramInt) throws Exception; @Sql("select app_id from appx limit 4") List appx_getids() throws Exception; }