|
|
|
@ -449,7 +449,7 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
|
fieldx222.setTableId(excelInfo.getTableId()); |
|
|
|
|
if (StringUtil.isBlank(excelInfo.getFieldName())) { |
|
|
|
|
message.put("isError", "true"); |
|
|
|
|
message.put("status","序号为 + (r - 2) + 的”中文名称”不能为空"); |
|
|
|
|
message.put("status","序号为 "+ (r - 2) + "的”中文名称”不能为空"); |
|
|
|
|
message.put("closeable","true"); |
|
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
|
return Result.error("序号为" + (r - 2) + "的中文名称不能为空"); |
|
|
|
@ -457,14 +457,14 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
|
String fieldname= String.valueOf(fieldx222Service.query().eq("field_name",excelInfo.getFieldName()).one()); |
|
|
|
|
if(!StringUtil.isBlank(fieldname)){ |
|
|
|
|
message.put("isError", "true"); |
|
|
|
|
message.put("status","序号为 + (r - 2) + 的”中文名称”与表中数据已重复"); |
|
|
|
|
message.put("status","序号为 "+ (r - 2) + "的”中文名称”与表中数据已重复"); |
|
|
|
|
message.put("closeable","true"); |
|
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
|
return Result.error("序号为" + (r - 2) + "的中文名称与表中数据已重复"); |
|
|
|
|
} |
|
|
|
|
if (StringUtil.isBlank(excelInfo.getFieldName())) { |
|
|
|
|
message.put("isError", "true"); |
|
|
|
|
message.put("status","序号为 + (r - 2) + 的”中文名称”不能为空"); |
|
|
|
|
message.put("status","序号为 "+ (r - 2) +" 的”中文名称”不能为空"); |
|
|
|
|
message.put("closeable","true"); |
|
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
|
return Result.error("序号为" + (r - 2) + "的中文名称不能为空"); |
|
|
|
|