com.base4j.mvc.sys.mapper.SysParamsMapper Maven / Gradle / Ivy
package com.base4j.mvc.sys.mapper;
import com.base4j.mvc.sys.entity.SysParam;
import com.base4j.mybatis.base.mapper.BaseMapper;
import com.base4j.mybatis.config.mybatis.annotations.AutoMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
@AutoMapper
public interface SysParamsMapper extends BaseMapper {
@Update("UPDATE\n" +
"\tseed_sys_param\n" +
"SET active = ${active}\n" +
"WHERE\n" +
"\tid = ${id}")
void updateActiveByPrimaryKey(@Param("id") long id, @Param("active") long active);
}