本文整理汇总了Java中org.apache.ibatis.annotations.Param类的典型用法代码示例。如果您正苦于以下问题:Java Param类的具体用法?Java Param怎么用?Java Param使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Param类属于org.apache.ibatis.annotations包,在下文中一共展示了Param类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAllClassificationsWithKey
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@Select("<script>"
+ "SELECT ID, KEY, CATEGORY, TYPE, DOMAIN, NAME, VALID_UNTIL "
+ "FROM CLASSIFICATION "
+ "WHERE KEY = #{key} "
+ "AND DOMAIN = #{domain}"
+ "ORDER BY VALID_FROM DESC"
+ "</script>")
@Results({ @Result(property = "id", column = "ID"),
@Result(property = "key", column = "KEY"),
@Result(property = "category", column = "CATEGORY"),
@Result(property = "type", column = "TYPE"),
@Result(property = "domain", column = "DOMAIN"),
@Result(property = "name", column = "NAME"),
@Result(property = "validUntil", column = "VALID_UNTIL") })
List<ClassificationSummaryImpl> getAllClassificationsWithKey(@Param("key") String key,
@Param("domain") String domain);
示例2: findAttachmentsByTaskId
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@Select("SELECT ID, TASK_ID, CREATED, MODIFIED, CLASSIFICATION_KEY, REF_COMPANY, REF_SYSTEM, REF_INSTANCE, REF_TYPE, REF_VALUE, CHANNEL, RECEIVED, CUSTOM_ATTRIBUTES "
+ "FROM ATTACHMENT "
+ "WHERE TASK_ID = #{taskId}")
@Results(value = {
@Result(property = "id", column = "ID"),
@Result(property = "taskId", column = "TASK_ID"),
@Result(property = "created", column = "CREATED"),
@Result(property = "modified", column = "MODIFIED"),
@Result(property = "classification", column = "CLASSIFICATION_KEY", javaType = Classification.class,
one = @One(select = CLASSIFICATION_FINDBYID)),
@Result(property = "objectReference.company", column = "REF_COMPANY"),
@Result(property = "objectReference.system", column = "REF_SYSTEM"),
@Result(property = "objectReference.systemInstance", column = "REF_INSTANCE"),
@Result(property = "objectReference.type", column = "REF_TYPE"),
@Result(property = "objectReference.value", column = "REF_VALUE"),
@Result(property = "channel", column = "CHANNEL"),
@Result(property = "received", column = "RECEIVED"),
@Result(property = "customAttributes", column = "CUSTOM_ATTRIBUTES", jdbcType = JdbcType.BLOB,
javaType = Map.class, typeHandler = MapTypeHandler.class),
})
List<AttachmentImpl> findAttachmentsByTaskId(@Param("taskId") String taskId);
示例3: IN
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@Select("SELECT * FROM WORKBASKET WHERE id IN (SELECT TARGET_ID FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{id})")
@Results(value = {
@Result(property = "id", column = "ID"),
@Result(property = "key", column = "KEY"),
@Result(property = "name", column = "NAME"),
@Result(property = "description", column = "DESCRIPTION"),
@Result(property = "owner", column = "OWNER"),
@Result(property = "domain", column = "DOMAIN"),
@Result(property = "type", column = "TYPE"),
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")})
List<WorkbasketSummary> findByDistributionTargets(@Param("id") String id);
示例4: COUNT
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@Select("<script>"
+ "SELECT STATE, COUNT (STATE) as counter "
+ "FROM TASK "
+ "WHERE STATE IN (<foreach collection='status' item='state' separator=','>#{state}</foreach>) "
+ "GROUP BY STATE"
+ "</script>")
@Results({ @Result(column = "STATE", property = "state"), @Result(column = "counter", property = "counter") })
List<TaskStateCounter> getTaskCountForState(@Param("status") List<TaskState> status);
示例5: getInfoByName
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@Select("select `id`, `name`, `age`, `score` from demo_table where name = #{name}")
DemoInfo getInfoByName(@Param("name") String name);
示例6: findone
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@Select("SELECT * from users where username=#{username}")
User findone(@Param("username") String username);
示例7: selectByDynamicQuery
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@SelectProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
List<T> selectByDynamicQuery(@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
示例8: update
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
void update(@Param("id") int id, @Param("name") String name
, @Param("nameEn")String nameEn, @Param("headImg") String headImg
, @Param("primeAttr") int primeAttr, @Param("bio")String bio);
示例9: update
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@UpdateProvider( type = DynamicQueryBuilder.class, method = "buildUpdate")
int update(@Param(PARAM_ENTITY_NAME) T bean);
示例10: queryProviders
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
List<ExtensionDai.Providers> queryProviders(
@Param("providerId") String providerId);
示例11: selectLastExtensionByName
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
ExtensionDai.Record selectLastExtensionByName(
@Param("ownerId") String ownerId,
@Param("group") String group,
@Param("name") String name,
@Param("tree") String tree,
@Param("endTime") Date endTime);
示例12: loadGlimpse
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
GlimpsesDai.Publication loadGlimpse(
@Param("subscriberId") String subscriberId,
@Param("id") String id);
示例13: findByName
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
@Select("SELECT id FROM sw_guest WHERE device_mac = #{deviceMac} and router_mac=#{routerMac} and status=0 limit 1")
long findByName(@Param("routerMac") String routerMac, @Param("deviceMac") String deviceMac);
示例14: selectLastExtensionById
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
ExtensionDai.Record selectLastExtensionById(
@Param("id") String id,
@Param("endTime") Date endTime);
示例15: updateByExampleSelective
import org.apache.ibatis.annotations.Param; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table order_goods
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") OrderGoods record, @Param("example") OrderGoodsCriteria example);