mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
update comments
This commit is contained in:
parent
01b7fcef9a
commit
ca180e18a4
@ -49,6 +49,7 @@ public @interface Column {
|
||||
|
||||
/**
|
||||
* 是否是逻辑删除字段,一张表中只能存在 1 一个逻辑删除字段
|
||||
* 逻辑删除的字段,被删除时,会设置为 1,正常状态为 0
|
||||
*/
|
||||
boolean isLogicDelete() default false;
|
||||
|
||||
|
||||
@ -66,7 +66,6 @@ public class Row extends HashMap<String, Object> implements ModifyAttrsRecord {
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static Row ofKey(RowKey rowKey, Object value) {
|
||||
Row row = new Row();
|
||||
row.primaryKeys = new RowKey[]{rowKey};
|
||||
|
||||
@ -92,7 +92,6 @@ public interface RowMapper {
|
||||
* @param row id 和 值的数据,可以通过 {@link Row#ofKey(String, Object)} 来创建
|
||||
* @return 执行影响的行数
|
||||
*/
|
||||
|
||||
default int deleteById(@Param(FlexConsts.TABLE_NAME) String tableName, @Param(FlexConsts.ROW) Row row) {
|
||||
return deleteById(tableName, StringUtil.join(",", row.obtainsPrimaryKeyStrings()), row.obtainsPrimaryValues());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user