|
|
|
@ -203,14 +203,22 @@ public class PartExtExcelService implements IExcelImportExtService {
|
|
|
|
|
} catch (Exception var70) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//包装编码匹配类型
|
|
|
|
|
String packageMatchType = null;
|
|
|
|
|
//产品编码匹配类型
|
|
|
|
|
String productMatchType = null;
|
|
|
|
|
try {
|
|
|
|
|
row.getCell(8).setCellType(CellType.STRING);
|
|
|
|
|
packageMatchType = row.getCell(8, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).getStringCellValue().trim();
|
|
|
|
|
productMatchType = row.getCell(8, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).getStringCellValue().trim();
|
|
|
|
|
} catch (Exception var68) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// //包装编码匹配类型
|
|
|
|
|
// String packageMatchType = null;
|
|
|
|
|
// try {
|
|
|
|
|
// row.getCell(8).setCellType(CellType.STRING);
|
|
|
|
|
// packageMatchType = row.getCell(8, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).getStringCellValue().trim();
|
|
|
|
|
// } catch (Exception var68) {
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//包装数量
|
|
|
|
|
String qty2 = null;
|
|
|
|
|
try {
|
|
|
|
@ -489,12 +497,12 @@ public class PartExtExcelService implements IExcelImportExtService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isEmpty(packageMatchType)) {
|
|
|
|
|
if (StringUtils.isEmpty(productMatchType)) {
|
|
|
|
|
++errorNum;
|
|
|
|
|
cellNum = cellNum + "I;";
|
|
|
|
|
errorInfo = errorInfo + "第I列数据必填;";
|
|
|
|
|
} else {
|
|
|
|
|
if (StringUtils.isEmpty(MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(packageMatchType))) {
|
|
|
|
|
if (StringUtils.isEmpty(MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(productMatchType))) {
|
|
|
|
|
++errorNum;
|
|
|
|
|
cellNum = cellNum + "I;";
|
|
|
|
|
errorInfo = errorInfo + "第I列数据无效;";
|
|
|
|
@ -711,7 +719,8 @@ public class PartExtExcelService implements IExcelImportExtService {
|
|
|
|
|
newPartExt.setCategoryCode2(StringUtils.isEmpty(categoryCode2) ? null : categoryCode2);
|
|
|
|
|
newPartExt.setCategoryCode3(StringUtils.isEmpty(categoryCode3) ? null : categoryCode3);
|
|
|
|
|
newPartExt.setProcessMatchType(StringUtils.isEmpty(processMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(processMatchType));
|
|
|
|
|
newPartExt.setPackageMatchType(StringUtils.isEmpty(packageMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(packageMatchType));
|
|
|
|
|
newPartExt.setProductMatchType(StringUtils.isEmpty(productMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(productMatchType));
|
|
|
|
|
// newPartExt.setPackageMatchType(StringUtils.isEmpty(packageMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(packageMatchType));
|
|
|
|
|
newPartExt.setQty2(StringUtils.isEmpty(qty2) ? null : Double.parseDouble(qty2));
|
|
|
|
|
newPartExt.setPptCode(pptCode);
|
|
|
|
|
newPartExt.setColorCode(colorCode);
|
|
|
|
@ -757,7 +766,8 @@ public class PartExtExcelService implements IExcelImportExtService {
|
|
|
|
|
mesPart.setCategoryCode2(StringUtils.isEmpty(categoryCode2) ? null : categoryCode2);
|
|
|
|
|
mesPart.setCategoryCode3(StringUtils.isEmpty(categoryCode3) ? null : categoryCode3);
|
|
|
|
|
mesPart.setProcessMatchType(StringUtils.isEmpty(processMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(processMatchType));
|
|
|
|
|
mesPart.setPackageMatchType(StringUtils.isEmpty(packageMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(packageMatchType));
|
|
|
|
|
mesPart.setProductMatchType(StringUtils.isEmpty(productMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(productMatchType));
|
|
|
|
|
// mesPart.setPackageMatchType(StringUtils.isEmpty(packageMatchType) ? null : MesExtEnumUtil.ENCODE_MATCH_TYPE.descriptionOfValue(packageMatchType));
|
|
|
|
|
mesPart.setQty2(StringUtils.isEmpty(qty2) ? null : Double.parseDouble(qty2));
|
|
|
|
|
mesPart.setPptCode(pptCode);
|
|
|
|
|
mesPart.setColorCode(colorCode);
|
|
|
|
|