Commit dad2c9f
authored
[Hotfix][ams] Fix ResourceMapper.selectResourcesByGroup result mapping (#4194)
The @Result property names did not match the fields on Resource:
- group -> groupName
- container -> containerName
- totalMemory -> memoryMb
The start_time column and its @Result mapping were removed because
Resource has no startTime field; MyBatis would silently drop it anyway.
This method is currently only declared/implemented via
DefaultOptimizerManager.listResourcesByGroup with no caller on master,
so no behavioral change is observable. Fixing it now unblocks any future
caller (e.g. auto-restart feature) from getting back empty-field Resource
objects.1 parent d6b2cda commit dad2c9f
1 file changed
Lines changed: 4 additions & 5 deletions
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
69 | 68 | | |
70 | | - | |
| 69 | + | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
0 commit comments