From 1eb60ea4d711a0ec6ce58ced24bb8e1ef49f8815 Mon Sep 17 00:00:00 2001 From: gudaoxuri Date: Thu, 11 Apr 2024 17:36:41 +0800 Subject: [PATCH] Pass unit tests. --- backend/basic/src/rbum/dto/rbum_item_attr_dto.rs | 2 -- backend/basic/src/rbum/serv/rbum_item_serv.rs | 5 ----- backend/basic/src/spi.rs | 4 +++- backend/basic/tests/test_rbum_item.rs | 1 - 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/backend/basic/src/rbum/dto/rbum_item_attr_dto.rs b/backend/basic/src/rbum/dto/rbum_item_attr_dto.rs index 805caf405..ed3e1677a 100644 --- a/backend/basic/src/rbum/dto/rbum_item_attr_dto.rs +++ b/backend/basic/src/rbum/dto/rbum_item_attr_dto.rs @@ -42,7 +42,6 @@ pub struct RbumItemAttrSummaryResp { pub id: String, pub value: String, pub rel_rbum_item_id: String, - pub rel_rbum_item_name: String, pub rel_rbum_kind_attr_id: String, pub rel_rbum_kind_attr_name: String, @@ -58,7 +57,6 @@ pub struct RbumItemAttrDetailResp { pub id: String, pub value: String, pub rel_rbum_item_id: String, - pub rel_rbum_item_name: String, pub rel_rbum_kind_attr_id: String, pub rel_rbum_kind_attr_name: String, diff --git a/backend/basic/src/rbum/serv/rbum_item_serv.rs b/backend/basic/src/rbum/serv/rbum_item_serv.rs index dd761380e..ef76c3e9f 100644 --- a/backend/basic/src/rbum/serv/rbum_item_serv.rs +++ b/backend/basic/src/rbum/serv/rbum_item_serv.rs @@ -1100,13 +1100,8 @@ impl RbumCrudOperation TardisResult<()> { assert_eq!(rbum.id, item_attr_id); assert_eq!(rbum.value, "数据1"); assert_eq!(rbum.rel_rbum_item_id, item_id.to_string()); - assert_eq!(rbum.rel_rbum_item_name, "实例1".to_string()); assert_eq!(rbum.rel_rbum_kind_attr_id, kind_attr_id.to_string()); assert_eq!(rbum.rel_rbum_kind_attr_name, "db_type".to_string());