feat(inventory): 添加 SAP 工序字段并更新相关逻辑
- 在 InventoryRecord 模型中添加 sapOperation 字段 - 在数据导入服务中处理 SAP 工序数据 - 更新相关 DTO 类以支持 SAP 工序字段 - 增加 SAP 工序的校验逻辑
This commit is contained in:
parent
16d8527c36
commit
11ff568fde
@ -317,6 +317,8 @@ public class InventoryRecordDTO extends InventoryRecord {
|
||||
|
||||
private String isSap;
|
||||
|
||||
private String sapOperation;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -61,6 +61,9 @@ public class InventoryRecordImportantDTO {
|
||||
@ExcelProperty(value = "工序", index = 14)
|
||||
private String operation;
|
||||
|
||||
@ExcelProperty(value = "SAP工序", index = 15)
|
||||
private String sapOperation;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -351,17 +351,14 @@ public class InventoryRecord extends Model<InventoryRecord> {
|
||||
@ApiModelProperty(value = "是否走已SAP")
|
||||
private String isSap;
|
||||
|
||||
@ApiModelProperty(value = "Sap工序")
|
||||
private String sapOperation;
|
||||
|
||||
|
||||
public static String genHandle(String site, String barcode) {
|
||||
return HandleBoProcessor.genHandle(KW_WMS_INVENTORY_BO, site, barcode);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public InventoryRecord() {
|
||||
}
|
||||
|
||||
|
||||
@ -669,6 +669,7 @@ public class DataImportServiceImpl implements DataImportService {
|
||||
data.setUom(StrUtil.trim(data.getUom() != null ? data.getUom().replace(" ", "") : ""));
|
||||
data.setOperation(StrUtil.trim(data.getOperation() != null ? data.getOperation().replace(" ", "") : ""));
|
||||
data.setDateOfManufacture(StrUtil.trim(data.getDateOfManufacture() != null ? data.getDateOfManufacture().replace(" ", "") : ""));
|
||||
data.setSapOperation(StrUtil.trim(data.getSapOperation() != null ? data.getSapOperation().replace(" ", "") : ""));
|
||||
|
||||
|
||||
|
||||
@ -713,6 +714,9 @@ public class DataImportServiceImpl implements DataImportService {
|
||||
errorMessage.append(MessageFormat.format("第{0}行;库存状态不能为空 \n", row));
|
||||
}
|
||||
|
||||
if (StrUtil.isBlank(data.getSapOperation())){
|
||||
errorMessage.append(MessageFormat.format("第{0}行;末工序不能为空 \n", row));
|
||||
}
|
||||
|
||||
|
||||
if (StrUtil.isBlank(data.getShopOrder())) {
|
||||
@ -803,6 +807,7 @@ public class DataImportServiceImpl implements DataImportService {
|
||||
inventoryRecord.setSubUom(data.getSubUom());
|
||||
inventoryRecord.setMainUom(data.getMainUon());
|
||||
inventoryRecord.setUom(data.getUom());
|
||||
inventoryRecord.setSapOperation(data.getSapOperation());
|
||||
|
||||
inventoryRecord.setMainUom(data.getMainUon());
|
||||
inventoryRecord.setType("0");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user