Mybatis 一对一?一对多?多对多

Mybatis 一对一?一对多?多对多_第1张图片
Mybatis 一对一?一对多?多对多_第2张图片
Mybatis 一对一?一对多?多对多_第3张图片
Mybatis 一对一?一对多?多对多_第4张图片

返回结果为
RollBackDevice [deviceId=561, device=Device [deviceId=561, nodeId=9, deviceCategoryId=6, deviceName=172.30.254.254, deviceIP=, deviceInnerId=], deviceGroupDevice=DeviceGroupDevice [deviceGroupId=55, deviceId=561, deviceIndex=99], bandDeviceMonitorIds=[BandDeviceMonitorId [cityId=9, deviceId=561, monitorItemId=237], BandDeviceMonitorId [cityId=9, deviceId=561, monitorItemId=238]]]


{

"meta": {

"httpStatus": "OK",

"bizStatus": "SUCCESS",

"message": null,

"devMessage": null

},

"data": {

"deviceId": 561,

"device": {

"deviceId": 561,

"nodeId": 9,

"deviceCategoryId": 6,

"deviceName": "172.30.254.254",

"deviceIP": "",

"deviceInnerId": ""

},

"deviceGroupDevice": {

"deviceGroupId": 55,

"deviceId": 561,

"deviceIndex": 99

},

"bandDeviceMonitorIds": [

{

"cityId": 9,

"deviceId": 561,

"monitorItemId": 237

},

{

"cityId": 9,

"deviceId": 561,

"monitorItemId": 238

}

]

},

"pagination": null

}

你可能感兴趣的:(Mybatis 一对一?一对多?多对多)