|
@@ -35,6 +35,7 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c |
|
@@ -35,6 +35,7 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c |
|
35
|
StartupStatus: createDeviceCollectionCommand.StartupStatus,
|
35
|
StartupStatus: createDeviceCollectionCommand.StartupStatus,
|
|
36
|
DeviceSn: createDeviceCollectionCommand.DeviceSn,
|
36
|
DeviceSn: createDeviceCollectionCommand.DeviceSn,
|
|
37
|
ComStatus: createDeviceCollectionCommand.ComStatus,
|
37
|
ComStatus: createDeviceCollectionCommand.ComStatus,
|
|
|
|
38
|
+ CollectionTime: createDeviceCollectionCommand.CollectionTime,
|
|
38
|
Values: createDeviceCollectionCommand.Values,
|
39
|
Values: createDeviceCollectionCommand.Values,
|
|
39
|
}
|
40
|
}
|
|
40
|
var deviceCollectionRepository domain.DeviceCollectionRepository
|
41
|
var deviceCollectionRepository domain.DeviceCollectionRepository
|
|
@@ -52,7 +53,7 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c |
|
@@ -52,7 +53,7 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c |
|
52
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
53
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
53
|
}
|
54
|
}
|
|
54
|
return map[string]interface{}{
|
55
|
return map[string]interface{}{
|
|
55
|
- "deviceCollection":deviceCollection,
|
56
|
+ "deviceCollection": deviceCollection,
|
|
56
|
}, nil
|
57
|
}, nil
|
|
57
|
}
|
58
|
}
|
|
58
|
}
|
59
|
}
|
|
@@ -123,7 +124,7 @@ func (deviceCollectionService *DeviceCollectionService) ListDeviceCollection(lis |
|
@@ -123,7 +124,7 @@ func (deviceCollectionService *DeviceCollectionService) ListDeviceCollection(lis |
|
123
|
if err := transactionContext.CommitTransaction(); err != nil {
|
124
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
124
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
125
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
125
|
}
|
126
|
}
|
|
126
|
- return tool_funs.SimpleWrapGridMap(count,deviceCollections), nil
|
127
|
+ return tool_funs.SimpleWrapGridMap(count, deviceCollections), nil
|
|
127
|
}
|
128
|
}
|
|
128
|
}
|
129
|
}
|
|
129
|
|
130
|
|
|
@@ -164,7 +165,7 @@ func (deviceCollectionService *DeviceCollectionService) RemoveDeviceCollection(r |
|
@@ -164,7 +165,7 @@ func (deviceCollectionService *DeviceCollectionService) RemoveDeviceCollection(r |
|
164
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
165
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
165
|
}
|
166
|
}
|
|
166
|
return map[string]interface{}{
|
167
|
return map[string]interface{}{
|
|
167
|
- "deviceCollection":deviceCollection,
|
168
|
+ "deviceCollection": deviceCollection,
|
|
168
|
}, nil
|
169
|
}, nil
|
|
169
|
}
|
170
|
}
|
|
170
|
}
|
171
|
}
|
|
@@ -209,7 +210,7 @@ func (deviceCollectionService *DeviceCollectionService) UpdateDeviceCollection(u |
|
@@ -209,7 +210,7 @@ func (deviceCollectionService *DeviceCollectionService) UpdateDeviceCollection(u |
|
209
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
210
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
210
|
}
|
211
|
}
|
|
211
|
return map[string]interface{}{
|
212
|
return map[string]interface{}{
|
|
212
|
- "deviceCollection":deviceCollection,
|
213
|
+ "deviceCollection": deviceCollection,
|
|
213
|
}, nil
|
214
|
}, nil
|
|
214
|
}
|
215
|
}
|
|
215
|
}
|
216
|
}
|