com.github.wz2cool.dynamic.mybatis.mapper.UpdateSelectiveByDynamicQueryMapper 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 UpdateSelectiveByDynamicQueryMapper {
/**
* update selective by dynamic query.
*
* @param record record of item
* @param dynamicQuery dynamic query
* @return effect rows
*/
@UpdateProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int updateSelectiveByDynamicQuery(
@Param("record") T record,
@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery dynamicQuery);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy