init
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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<AppxModel> {
|
||||
@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<String, Object> 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<AppxModel> appx_getlist(int paramInt) throws Exception;
|
||||
|
||||
@Sql("select app_id from appx limit 4")
|
||||
List<Integer> appx_getids() throws Exception;
|
||||
}
|
||||
Reference in New Issue
Block a user