com.github.wz2cool.dynamic.mybatis.mapper.UpdateByDynamicQueryMapper Maven / Gradle / Ivy
package com.github.wz2cool.dynamic.mybatis.mapper;
import com.github.wz2cool.dynamic.DynamicQuery;
import com.github.wz2cool.dynamic.mybatis.mapper.constant.MapperConstants;
import com.github.wz2cool.dynamic.mybatis.mapper.provider.DynamicQueryProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.UpdateProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;
/**
* @author Frank
*/
@RegisterMapper
public interface UpdateByDynamicQueryMapper {
/**
* update by dynamic query.
*
* @param record record of item
* @param dynamicQuery dynamic query
* @return effect rows
*/
@UpdateProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int updateByDynamicQuery(
@Param("record") T record,
@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery dynamicQuery);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy