|
@@ -122,7 +122,7 @@ public class TableContext {
|
|
|
// 新增
|
|
|
if (ActionType.INSERT.equals(context.getActionType())) {
|
|
|
// 新增可可见, 并且新增修改,把新增的字段单独拿出来
|
|
|
- if (/*INSERT_CAN_EDIT.equals(insertCanEdit) &&*/ INSERT_VISIBLE.equals(insertVisible)) {
|
|
|
+ if (INSERT_CAN_EDIT.equals(insertCanEdit) /*&& INSERT_VISIBLE.equals(insertVisible)*/) {
|
|
|
commitData.put(entry.getKey(), entry.getValue());
|
|
|
} else {
|
|
|
// 如果新增不可见,新增也不可以修改,但是你是外键的话或者是计算以后的值,就可以修改
|
|
@@ -132,7 +132,7 @@ public class TableContext {
|
|
|
}
|
|
|
} else {
|
|
|
// 编辑可见, 并且编辑可修改
|
|
|
- if (/*UPDATE_CAN_EDIT.equals(updateCanEdit) &&*/ UPDATE_VISIBLE.equals(updateVisible)) {
|
|
|
+ if (UPDATE_CAN_EDIT.equals(updateCanEdit) /*&& UPDATE_VISIBLE.equals(updateVisible)*/) {
|
|
|
commitData.put(entry.getKey(), entry.getValue());
|
|
|
} else {
|
|
|
// 如果编辑不可见,编辑也不可以修改,但是你是外键的话或者是计算以后的值,就可以修改
|