com.github.wz2cool.dynamic.mybatis.mapper.UpdateByUpdateQueryMapper Maven / Gradle / Ivy
package com.github.wz2cool.dynamic.mybatis.mapper;
import com.github.wz2cool.dynamic.UpdateQuery;
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 UpdateByUpdateQueryMapper {
/**
* update selective by dynamic query.
*
* @param updateQuery update query
* @return effect rows
*/
@UpdateProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int updateByUpdateQuery(
@Param(MapperConstants.DYNAMIC_QUERY) UpdateQuery updateQuery);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy