|
|
@ -438,21 +438,13 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
fieldx222.setType(excelInfo.getType()); |
|
|
|
fieldx222.setType(excelInfo.getType()); |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtil.isBlank(excelInfo.getIsPk())) { |
|
|
|
if (StringUtil.isBlank(excelInfo.getIsPk())) { |
|
|
|
message.put("isError", "true"); |
|
|
|
fieldx222.setIsPk("0"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”是否主键”不能为空"); |
|
|
|
|
|
|
|
message.put("closeable","true"); |
|
|
|
|
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
|
|
|
|
return Result.error("序号为" + (r - 2) + "的是否主键不能为空"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
fieldx222.setIsPk(excelInfo.getIsFk()); |
|
|
|
fieldx222.setIsPk(excelInfo.getIsPk()); |
|
|
|
if (StringUtil.isBlank(excelInfo.getIsFk())) { |
|
|
|
if (StringUtil.isBlank(excelInfo.getIsFk())) { |
|
|
|
message.put("isError", "true"); |
|
|
|
fieldx222.setIsFk("0"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”是否外键”不能为空"); |
|
|
|
|
|
|
|
message.put("closeable","true"); |
|
|
|
|
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
|
|
|
|
return Result.error("序号为" + (r - 2) + "”的是否外键”不能为空"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
fieldx222.setIsFk(excelInfo.getIsNull()); |
|
|
|
fieldx222.setIsFk(excelInfo.getIsFk()); |
|
|
|
if (StringUtil.isBlank(excelInfo.getIsNull())) { |
|
|
|
if (StringUtil.isBlank(excelInfo.getIsNull())) { |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”是否为空”不能为空"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”是否为空”不能为空"); |
|
|
@ -460,7 +452,7 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
return Result.error("序号为" + (r - 2) + "的是否为空不能为空"); |
|
|
|
return Result.error("序号为" + (r - 2) + "的是否为空不能为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
fieldx222.setIsNull(excelInfo.getIsUniqueness()); |
|
|
|
fieldx222.setIsFk(excelInfo.getIsFk()); |
|
|
|
if (StringUtil.isBlank(excelInfo.getIsUniqueness())) { |
|
|
|
if (StringUtil.isBlank(excelInfo.getIsUniqueness())) { |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”是否重复”不能为空"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”是否重复”不能为空"); |
|
|
@ -468,7 +460,7 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
return Result.error("序号为" + (r - 2) + "的是否重复不能为空"); |
|
|
|
return Result.error("序号为" + (r - 2) + "的是否重复不能为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
fieldx222.setStatus(excelInfo.getStatus()); |
|
|
|
fieldx222.setIsUniqueness(excelInfo.getIsUniqueness()); |
|
|
|
if (StringUtil.isBlank(excelInfo.getStatus())) { |
|
|
|
if (StringUtil.isBlank(excelInfo.getStatus())) { |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”字段状态”不能为空"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”字段状态”不能为空"); |
|
|
@ -476,7 +468,7 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
return Result.error("序号为" + (r - 2) + "的”字段状态”不能为空"); |
|
|
|
return Result.error("序号为" + (r - 2) + "的”字段状态”不能为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
fieldx222.setVerisonStatus(excelInfo.getVerisonStatus()); |
|
|
|
fieldx222.setStatus(excelInfo.getStatus()); |
|
|
|
if (StringUtil.isBlank(excelInfo.getVerisonStatus())) { |
|
|
|
if (StringUtil.isBlank(excelInfo.getVerisonStatus())) { |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("isError", "true"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”版本状态”不能为空"); |
|
|
|
message.put("status","序号为" + (r - 2) + "的”版本状态”不能为空"); |
|
|
|