babyfish-ct / jimmer

A revolutionary ORM framework for both java and kotlin.
Apache License 2.0
882 stars 91 forks source link

[BUG]逻辑删除默认情况下中间表的数据被删除了 #673

Closed LanXa7 closed 2 months ago

LanXa7 commented 2 months ago

c3b6f1b7cb0c31094da7b99f0f9058b1 50b8c2663c70ca15d930efff741e935b fba21ae463ffb4fc7657209427e8824e b6623a7158442873d666961ae57ecb4d b11de33700cb0fa38c32e33d60a16f0a

2024-09-19T21:00:05.786+08:00 INFO 16568 --- [nio-8100-exec-4] o.b.jimmer.sql.runtime.ExecutorForLog : Execute SQL===> Purpose: MUTATE SQL: delete from user_role_mapping where role_id = ? / 6 / Affected row count: 1 JDBC response status: success Time cost: 78ms <===Execute SQL 2024-09-19T21:00:05.849+08:00 INFO 16568 --- [nio-8100-exec-4] o.b.jimmer.sql.runtime.ExecutorForLog : Execute SQL===> Purpose: MUTATE SQL: delete from role_permission_mapping where role_id = ? / 6 / Affected row count: 0 JDBC response status: success Time cost: 63ms <===Execute SQL 2024-09-19T21:00:05.913+08:00 INFO 16568 --- [nio-8100-exec-4] o.b.jimmer.sql.runtime.ExecutorForLog : Execute SQL===> Purpose: COMMAND SQL: update sys_role set DELETED = ? / 1 / where ID = ? / 6 / Affected row count: 1 JDBC response status: success Time cost: 63ms <===Execute SQL

实现逻辑删除了 但是中间表的数据被删除了 按照这里的说法如果不配置的话默认应该是不会被处理的

babyfish-ct commented 2 months ago

Try 0.8,179