|
@@ -87,22 +87,22 @@ public class EquFrockTestRecordServiceImpl extends ServiceImpl<EquFrockTestRecor
|
|
|
String state = row.getCell(17) == null ? "" : row.getCell(17).toString().trim();
|
|
|
String remark = row.getCell(18) == null ? "" : row.getCell(18).toString().trim();
|
|
|
if (StringUtils.isBlank(ownedfactory)) {
|
|
|
- stringBuilder.append("所属工厂不能为空 ");
|
|
|
+ stringBuilder.append("所属工厂必填 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(frockname)) {
|
|
|
- stringBuilder.append("工装名称不能为空 ");
|
|
|
+ stringBuilder.append("工装名称必填 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(usedept)) {
|
|
|
- stringBuilder.append("使用车间不能为空 ");
|
|
|
+ stringBuilder.append("使用车间必填 ");
|
|
|
}
|
|
|
String testdate = "";
|
|
|
if (StringUtils.isBlank(exctestdate)) {
|
|
|
- stringBuilder.append("检定日期不能为空 ");
|
|
|
+ stringBuilder.append("检定日期必填 ");
|
|
|
} else {
|
|
|
testdate = dateFormat.format(DateUtils.importExcelFormatExcel((XSSFCell) row.getCell(6))).split(" ")[0];
|
|
|
}
|
|
|
if (StringUtils.isBlank(frocknum)) {
|
|
|
- stringBuilder.append("工装编号不能为空 ");
|
|
|
+ stringBuilder.append("工装编号必填 ");
|
|
|
} else {
|
|
|
if (equFrockListDoList.stream().anyMatch(item -> item.getFrocknum().equals(frocknum))) {
|
|
|
if (equFrockTestRecordDoList.stream().anyMatch(item -> item.getFrocknum().equals(frocknum) && item.getTestdate().toString().equals(exctestdate))) {
|
|
@@ -113,40 +113,40 @@ public class EquFrockTestRecordServiceImpl extends ServiceImpl<EquFrockTestRecor
|
|
|
}
|
|
|
}
|
|
|
if (StringUtils.isBlank(belongequname)) {
|
|
|
- stringBuilder.append("工装所属不能为空 ");
|
|
|
+ stringBuilder.append("工装所属必填 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(state)) {
|
|
|
- stringBuilder.append("状态不能为空 ");
|
|
|
+ stringBuilder.append("状态必填 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(diameter) || !pattern.matcher(diameter).matches()) {
|
|
|
- stringBuilder.append("直径mm不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("直径mm必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs1) || !pattern.matcher(hs1).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS1)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS1)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs2) || !pattern.matcher(hs2).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS2)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS2)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs3) || !pattern.matcher(hs3).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS3)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS3)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs4) || !pattern.matcher(hs4).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS4)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS4)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs5) || !pattern.matcher(hs5).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS5)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS5)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs6) || !pattern.matcher(hs6).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS6)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS6)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs7) || !pattern.matcher(hs7).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS7)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS7)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs8) || !pattern.matcher(hs8).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS8)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS8)必填且只能为数字 ");
|
|
|
}
|
|
|
if (StringUtils.isBlank(hs9) || !pattern.matcher(hs9).matches()) {
|
|
|
- stringBuilder.append("检测硬度值(HS9)不能为空且只能为数字 ");
|
|
|
+ stringBuilder.append("检测硬度值(HS9)必填且只能为数字 ");
|
|
|
}
|
|
|
if (equFrockTestRecordDos.stream().anyMatch(item -> item.getFrocknum().equals(frocknum) && item.getTestdate().toString().equals(exctestdate))) {
|
|
|
stringBuilder.append("工装编号" + frocknum + "、检定日期" + testdate + "数据重复");
|