Skip to content

一个主表,多个付表。1对多。保存后,某些从表行项目内容保存成功,单重新打开数据表现丢失。 #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bill74s opened this issue Mar 10, 2020 · 12 comments

Comments

@bill74s
Copy link

bill74s commented Mar 10, 2020

版本号:

2.1.4

问题描述:

1、有些从表填写行项目内容的时候,保存成功。
2、重新打开编辑,第一个从表内容在页面还可以看到。
3、但后面有些从表,在页面发现数据丢失,但数据库表(直接查看数据库物理biao)有内容,但外键中的关联主表名、主表字段中的内容为:UUID4个字符;而不是真正的UUID36位字符串。
第一个从表的UUID内容是正常的。

截图&代码:

主表名
主表字段
image
image
下面这个是正常的:
image

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

有重新步骤吗或者录个视频

@bill74s
Copy link
Author

bill74s commented Mar 11, 2020

您操作的是3个以内的从表,还是达到5个?

@bill74s
Copy link
Author

bill74s commented Mar 11, 2020

感觉不是从表个数的问题。而是自动删除数据!
image
另外如果从表文件名长,多个加起来是否有关系?字段长度

@553036892
Copy link

好像是JEditableTable的数据每行前台不是会自动生成id嘛,这个id回传到后台,导致后台的id不是空的,就没重新生成id,也遇到过

@zhangdaiscott
Copy link
Member

怎么重现呢?

@bill74s
Copy link
Author

bill74s commented Mar 11, 2020

这个bug应该比较大了。试想下如果很多业务数据,整个清掉,想想有点恐怖。为什么有删除语句呢?

@bill74s
Copy link
Author

bill74s commented Mar 11, 2020

id弄上了,但只保留id(uuid)的值,但把其他字段进行清零了。所有记录
image

@bill74s
Copy link
Author

bill74s commented Mar 11, 2020

原来是这样的:
1、2个从表。一个A从表2行,一个B从表1行记录。
2、现在编辑A从表,保存。
3、A和B的记录数进行交换。

@bill74s
Copy link
Author

bill74s commented Mar 11, 2020

1前面:
image
2:修改一个表
image
3:数据交换了(两个从表之间)
image

@zhangdaiscott
Copy link
Member

这是你自己写的代码还是用的online?还是生成的代码

@bill74s
Copy link
Author

bill74s commented Mar 11, 2020

online

@zhangdaiscott
Copy link
Member

已经重新 子表数据串位问题,下个版本修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants