|
@@ -253,32 +253,32 @@ public class ThingsModelController extends BaseController { |
|
@@ -253,32 +253,32 @@ public class ThingsModelController extends BaseController { |
253
|
String functionName = row.getCell(0).toString();//功能名称
|
253
|
String functionName = row.getCell(0).toString();//功能名称
|
254
|
if(StringUtils.isEmpty(functionName)){
|
254
|
if(StringUtils.isEmpty(functionName)){
|
255
|
failed++;
|
255
|
failed++;
|
256
|
- failedString.append("第"+i+"条,功能名称未填\r\n");
|
256
|
+ failedString.append("第"+i+"条,功能名称未填;");
|
257
|
continue;
|
257
|
continue;
|
258
|
}
|
258
|
}
|
259
|
String identifier = row.getCell(1).toString();//标识符*
|
259
|
String identifier = row.getCell(1).toString();//标识符*
|
260
|
if(StringUtils.isEmpty(identifier)){
|
260
|
if(StringUtils.isEmpty(identifier)){
|
261
|
failed++;
|
261
|
failed++;
|
262
|
- failedString.append("第"+i+"条,标识符未填\r\n");
|
262
|
+ failedString.append("第"+i+"条,标识符未填;");
|
263
|
continue;
|
263
|
continue;
|
264
|
}
|
264
|
}
|
265
|
String dataType = row.getCell(2).toString();//数据类型*
|
265
|
String dataType = row.getCell(2).toString();//数据类型*
|
266
|
if(StringUtils.isEmpty(dataType)){
|
266
|
if(StringUtils.isEmpty(dataType)){
|
267
|
failed++;
|
267
|
failed++;
|
268
|
- failedString.append("第"+i+"条,数据类型未填\r\n");
|
268
|
+ failedString.append("第"+i+"条,数据类型未填;");
|
269
|
continue;
|
269
|
continue;
|
270
|
}
|
270
|
}
|
271
|
String accessMode = row.getCell(7).toString();//读写类型*
|
271
|
String accessMode = row.getCell(7).toString();//读写类型*
|
272
|
if(StringUtils.isEmpty(accessMode)){
|
272
|
if(StringUtils.isEmpty(accessMode)){
|
273
|
failed++;
|
273
|
failed++;
|
274
|
- failedString.append("第"+i+"条,读写类型未填\r\n");
|
274
|
+ failedString.append("第"+i+"条,读写类型未填;");
|
275
|
continue;
|
275
|
continue;
|
276
|
}
|
276
|
}
|
277
|
Cell dataJons = row.getCell(9);//Josn对象
|
277
|
Cell dataJons = row.getCell(9);//Josn对象
|
278
|
if(dataType.equals("struct(结构体)")){
|
278
|
if(dataType.equals("struct(结构体)")){
|
279
|
if(StringUtils.isEmpty(dataJons.toString())){
|
279
|
if(StringUtils.isEmpty(dataJons.toString())){
|
280
|
failed++;
|
280
|
failed++;
|
281
|
- failedString.append("第"+i+"条,如果数据类型选为结构体则必填Json对象,请填入\r\n");
|
281
|
+ failedString.append("第"+i+"条,如果数据类型选为结构体则必填Json对象,请填入;");
|
282
|
continue;
|
282
|
continue;
|
283
|
}
|
283
|
}
|
284
|
}
|
284
|
}
|
|
@@ -287,7 +287,7 @@ public class ThingsModelController extends BaseController { |
|
@@ -287,7 +287,7 @@ public class ThingsModelController extends BaseController { |
287
|
Boolean identifierState = thingsModelService.getByIdentifier(tenantId,deviceProfileId,categoryId,identifier);
|
287
|
Boolean identifierState = thingsModelService.getByIdentifier(tenantId,deviceProfileId,categoryId,identifier);
|
288
|
if(!identifierState){
|
288
|
if(!identifierState){
|
289
|
failed++;
|
289
|
failed++;
|
290
|
- failedString.append("第"+i+"条,标识符已存在\r\n");
|
290
|
+ failedString.append("第"+i+"条,标识符已存在;");
|
291
|
continue;
|
291
|
continue;
|
292
|
}
|
292
|
}
|
293
|
ThingsModelDTO dto = new ThingsModelDTO();
|
293
|
ThingsModelDTO dto = new ThingsModelDTO();
|