Skip to content

Commit baa4eeb

Browse files
committed
fix: Modify block group api
1 parent 8a89475 commit baa4eeb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

base/src/main/java/com/tinyengine/it/common/base/HistoryEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@Getter
2626
@Setter
2727
public class HistoryEntity extends BaseEntity {
28-
@Schema(name = "refId", description = "关联主表id")
28+
@Schema(name = "block_id", description = "关联主表id")
2929
@JsonProperty("block_id")
3030
private Integer refId;
3131

base/src/test/java/com/tinyengine/it/controller/BlockGroupControllerTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.tinyengine.it.common.base.Result;
2020
import com.tinyengine.it.mapper.BlockGroupMapper;
21-
import com.tinyengine.it.model.dto.BlockGroupDto;
2221
import com.tinyengine.it.model.entity.BlockGroup;
2322
import com.tinyengine.it.service.material.BlockGroupService;
2423

@@ -67,7 +66,7 @@ void testCreateBlockGroups() {
6766
when(blockGroupService.createBlockGroup(any(BlockGroup.class))).thenReturn(new Result<List<BlockGroup>>());
6867

6968
Result<List<BlockGroup>> result = blockGroupController.createBlockGroups(new BlockGroup());
70-
Assertions.assertEquals(new Result<List<BlockGroupDto>>(), result);
69+
Assertions.assertEquals(new Result<List<BlockGroup>>(), result);
7170
}
7271

7372
@Test
@@ -87,7 +86,7 @@ void testDeleteBlockGroups() {
8786
mockData.setId(1);
8887
when(blockGroupService.findBlockGroupById(anyInt())).thenReturn(mockData);
8988
when(blockGroupService.deleteBlockGroupById(anyInt())).thenReturn(Integer.valueOf(0));
90-
BlockGroupDto resultData = new BlockGroupDto();
89+
BlockGroup resultData = new BlockGroup();
9190

9291
Result<List<BlockGroup>> result = blockGroupController.deleteBlockGroups(1);
9392
Assertions.assertEquals(resultData, result.getData().get(0));

0 commit comments

Comments
 (0)