|
|
@@ -316,6 +316,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
private int convertValueToSeekPurchase(Row row, SeekPurchaseByBatch seekPurchaseByBatch, int rowNum) {
|
|
|
// 统计为空的个数
|
|
|
int result = 0;
|
|
|
+ // 型号
|
|
|
Object codeValue = readWorkBookCell(row.getCell(0), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 0);
|
|
|
if (StringUtils.isEmpty(codeValue)) {
|
|
|
@@ -323,6 +324,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
}
|
|
|
seekPurchaseByBatch.setCode(StringUtilB2C.replaceLineBreak(StringUtilB2C.getStr(codeValue)));
|
|
|
|
|
|
+ // 品牌
|
|
|
Object brandValue = readWorkBookCell(row.getCell(1), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 1);
|
|
|
if (StringUtils.isEmpty(brandValue)) {
|
|
|
@@ -330,6 +332,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
}
|
|
|
seekPurchaseByBatch.setBrand(StringUtilB2C.replaceLineBreak(StringUtilB2C.getStr(brandValue)));
|
|
|
|
|
|
+ // 截止日期
|
|
|
Object deadlineValue = readWorkBookCell(row.getCell(2), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 2);
|
|
|
if (StringUtils.isEmpty(deadlineValue)) {
|
|
|
@@ -337,6 +340,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
}
|
|
|
seekPurchaseByBatch.setDeadline(StringUtilB2C.replaceLineBreak(StringUtilB2C.getStr(deadlineValue)));
|
|
|
|
|
|
+ // 求购数量
|
|
|
Object amountValue = readWorkBookCell(row.getCell(3), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 3);
|
|
|
if (!StringUtils.isEmpty(amountValue)) {
|
|
|
@@ -344,6 +348,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
seekPurchaseByBatch.setAmount(amount);
|
|
|
}
|
|
|
|
|
|
+ // 币别
|
|
|
Object currencyValue = readWorkBookCell(row.getCell(4), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 4);
|
|
|
if (!StringUtils.isEmpty(currencyValue)) {
|
|
|
@@ -351,6 +356,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
seekPurchaseByBatch.setCurrency(currency);
|
|
|
}
|
|
|
|
|
|
+ // 单价
|
|
|
Object unitPriceValue = readWorkBookCell(row.getCell(5), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 5);
|
|
|
if (!StringUtils.isEmpty(unitPriceValue)) {
|
|
|
@@ -358,6 +364,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
seekPurchaseByBatch.setUnitPrice(unitPrice);
|
|
|
}
|
|
|
|
|
|
+ // 封装
|
|
|
Object encapsulationValue = readWorkBookCell(row.getCell(7), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 7);
|
|
|
if (!StringUtils.isEmpty(encapsulationValue)) {
|
|
|
@@ -365,6 +372,7 @@ public class SeekPurchaseServiceImpl implements SeekPurchaseService {
|
|
|
seekPurchaseByBatch.setEncapsulation(encapsulation);
|
|
|
}
|
|
|
|
|
|
+ // 生产日期
|
|
|
Object produceDateValue = readWorkBookCell(row.getCell(8), Cell.CELL_TYPE_STRING,
|
|
|
rowNum, 8);
|
|
|
if (!StringUtils.isEmpty(produceDateValue)) {
|