package com.iailab.module.infra.dal.mysql.codegen; import com.iailab.framework.mybatis.core.mapper.BaseMapperX; import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; import com.iailab.module.infra.dal.dataobject.codegen.CodegenColumnDO; import org.apache.ibatis.annotations.Mapper; import java.util.List; @Mapper public interface CodegenColumnMapper extends BaseMapperX { default List selectListByTableId(Long tableId) { return selectList(new LambdaQueryWrapperX() .eq(CodegenColumnDO::getTableId, tableId) .orderByAsc(CodegenColumnDO::getId)); } default void deleteListByTableId(Long tableId) { delete(new LambdaQueryWrapperX() .eq(CodegenColumnDO::getTableId, tableId)); } }