作者 庄敏学

+时间

@@ -30,12 +30,13 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c @@ -30,12 +30,13 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c
30 }() 30 }()
31 newDeviceCollection := &domain.DeviceCollection{ 31 newDeviceCollection := &domain.DeviceCollection{
32 //DeviceCollectionId: createDeviceCollectionCommand.DeviceCollectionId, 32 //DeviceCollectionId: createDeviceCollectionCommand.DeviceCollectionId,
33 - WorkShopName: createDeviceCollectionCommand.WorkShopName,  
34 - DeviceType: createDeviceCollectionCommand.DeviceType,  
35 - StartupStatus: createDeviceCollectionCommand.StartupStatus,  
36 - DeviceSn: createDeviceCollectionCommand.DeviceSn,  
37 - ComStatus: createDeviceCollectionCommand.ComStatus,  
38 - Values: createDeviceCollectionCommand.Values, 33 + WorkShopName: createDeviceCollectionCommand.WorkShopName,
  34 + DeviceType: createDeviceCollectionCommand.DeviceType,
  35 + StartupStatus: createDeviceCollectionCommand.StartupStatus,
  36 + DeviceSn: createDeviceCollectionCommand.DeviceSn,
  37 + ComStatus: createDeviceCollectionCommand.ComStatus,
  38 + CollectionTime: createDeviceCollectionCommand.CollectionTime,
  39 + Values: createDeviceCollectionCommand.Values,
39 } 40 }
40 var deviceCollectionRepository domain.DeviceCollectionRepository 41 var deviceCollectionRepository domain.DeviceCollectionRepository
41 if value, err := factory.CreateDeviceCollectionRepository(map[string]interface{}{ 42 if value, err := factory.CreateDeviceCollectionRepository(map[string]interface{}{
@@ -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 }
@@ -101,7 +101,7 @@ func Start() { @@ -101,7 +101,7 @@ func Start() {
101 } 101 }
102 deviceCollection.Values = tool_funs.SimpleStructToMap(deviceFengXiangJi) 102 deviceCollection.Values = tool_funs.SimpleStructToMap(deviceFengXiangJi)
103 break 103 break
104 - //打浆机 104 + //打浆机 //面包屑机
105 case domain.DeviceTypeDaJiangJi: 105 case domain.DeviceTypeDaJiangJi:
106 default: 106 default:
107 } 107 }