在一段业务逻辑中,交叉查询得出数组如下,现在前端需要返回同一provinceCode下usingCount累加的数组
response = {ResponseDTO@12996}
status = 0
code = null
message = null
object = {ArrayList@13069} size = 7
0 = {DeviceAllProvinceResponseDTO@13071} "DeviceAllProvinceResponseDTO(provinceCode=12, usingCount=2, merchantNo=30628122578623)"
1 = {DeviceAllProvinceResponseDTO@13072} "DeviceAllProvinceResponseDTO(provinceCode=12, usingCount=1, merchantNo=30628122578624)"
2 = {DeviceAllProvinceResponseDTO@13073} "DeviceAllProvinceResponseDTO(provinceCode=13, usingCount=1, merchantNo=30628122578625)"
3 = {DeviceAllProvinceResponseDTO@13074} "DeviceAllProvinceResponseDTO(provinceCode=35, usingCount=1, merchantNo=30628122578626)"
4 = {DeviceAllProvinceResponseDTO