保存关务推送内容;
This commit is contained in:
+16
@@ -377,4 +377,20 @@ public class ReservationInMaterialDetail extends BaseVOEntity {
|
||||
private Date drinkDate;
|
||||
@ApiModelProperty("火险保费")
|
||||
private BigDecimal fireInsureFee;
|
||||
|
||||
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
}
|
||||
+15
@@ -479,4 +479,19 @@ public class ReservationInMaterialDetailPO extends ReservationStockInOrderBasePO
|
||||
private String lotNumber;
|
||||
@ApiModelProperty("火险保费")
|
||||
private BigDecimal fireInsureFee;
|
||||
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
}
|
||||
+15
@@ -444,4 +444,19 @@ public class ReservationInMaterialDetailDO extends ReservationStockInOrderBaseDO
|
||||
private BigDecimal unitPrice;
|
||||
@ApiModelProperty("火险保费")
|
||||
private BigDecimal fireInsureFee;
|
||||
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
}
|
||||
+15
@@ -451,4 +451,19 @@ public class ReservationInMaterialDetailDTO extends BaseVOEntity {
|
||||
private String productionDate;
|
||||
@ApiModelProperty("火险保费")
|
||||
private BigDecimal fireInsureFee;
|
||||
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
}
|
||||
+20
@@ -498,4 +498,24 @@ public class ReservationOutMaterialDetail extends BaseVOEntity {
|
||||
@ApiModelProperty("库存数量")
|
||||
@Excel(name = "库存数量")
|
||||
private BigDecimal stockQuantity;
|
||||
|
||||
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
private String inOrderNumberGw;
|
||||
private String inLineNumGw;
|
||||
private String opWhLocGw;
|
||||
private String warehouseGw;
|
||||
}
|
||||
+16
-1
@@ -586,5 +586,20 @@ public class ReservationOutMaterialDetailPO extends ReservationStockOutOrderBase
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
private String inOrderNumberGw;
|
||||
private String inLineNumGw;
|
||||
}
|
||||
+16
@@ -532,4 +532,20 @@ public class ReservationOutMaterialDetailDO extends BaseVOEntity {
|
||||
@ApiModelProperty("调整后面积")
|
||||
@Excel(name = "调整后面积")
|
||||
private BigDecimal adjustedArea;
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
private String inOrderNumberGw;
|
||||
private String inLineNumGw;
|
||||
}
|
||||
+16
@@ -524,4 +524,20 @@ public class ReservationOutMaterialDetailDTO extends BaseVOEntity {
|
||||
@ApiModelProperty("调整后面积")
|
||||
@Excel(name = "调整后面积")
|
||||
private BigDecimal adjustedArea;
|
||||
//订单行号
|
||||
private String lineNumGw;
|
||||
//物料规格
|
||||
private String specGw;
|
||||
//计量单位
|
||||
private String unitGw;
|
||||
//数量
|
||||
private BigDecimal qtyGw;
|
||||
//企业币制
|
||||
private String erpCurrGw;
|
||||
//企业单价
|
||||
private BigDecimal erpPriceGw;
|
||||
//申报总价
|
||||
private BigDecimal amountGw;
|
||||
private String inOrderNumberGw;
|
||||
private String inLineNumGw;
|
||||
}
|
||||
+14
-1
@@ -2006,9 +2006,14 @@ public class ReservationStockInOrderApplicationService {
|
||||
String[] split = lotNo.split("-");
|
||||
if (split.length == 2) {
|
||||
gwInDetail.setLineNum(split[1]);
|
||||
reservationInMaterialDetail.setLineNumGw(split[1]);
|
||||
} else {
|
||||
gwInDetail.setLineNum("");
|
||||
gwInDetail.setLineNum("1");
|
||||
reservationInMaterialDetail.setLineNumGw("1");
|
||||
}
|
||||
} else {
|
||||
gwInDetail.setLineNum("1");
|
||||
reservationInMaterialDetail.setLineNumGw("1");
|
||||
}
|
||||
gwInDetail.setItemName(reservationInMaterialDetail.getMaterialName());
|
||||
MaterialBaseInfoPO materialBaseInfoPO = reservationStockInOrderMapper.getinfo(materialBaseInfoId);
|
||||
@@ -2023,8 +2028,16 @@ public class ReservationStockInOrderApplicationService {
|
||||
if (unitPrice != null && quantity != null && unitPrice.compareTo(BigDecimal.ZERO) != 0&&quantity.compareTo(BigDecimal.ZERO) != 0) {
|
||||
BigDecimal Amount = unitPrice.multiply(quantity).setScale(2, BigDecimal.ROUND_HALF_UP);
|
||||
gwInDetail.setAmount(Amount);
|
||||
reservationInMaterialDetail.setAmountGw(Amount);
|
||||
}
|
||||
reservationInMaterialDetail.setQtyGw(quantity);
|
||||
reservationInMaterialDetail.setSpecGw(materialBaseInfoPO.getSpecificationModel());
|
||||
reservationInMaterialDetail.setUnitGw(materialBaseInfoPO.getDeclarationUnit());
|
||||
reservationInMaterialDetail.setErpPriceGw(unitPrice);
|
||||
reservationInMaterialDetail.setErpCurrGw(materialBaseInfoPO.getCurrency());
|
||||
reservationInMaterialDetailMapper.updateById(reservationInMaterialDetail);
|
||||
orderList.add(gwInDetail);
|
||||
|
||||
}
|
||||
gwStockInOrder.setOrderList(orderList);
|
||||
List<GwStockInOrder> list = new LinkedList<>();
|
||||
|
||||
+16
@@ -1371,11 +1371,14 @@ public class ReservationStockOutOrderApplicationService {
|
||||
String[] split = lotNo.split("-");
|
||||
if (split.length == 2) {
|
||||
item.put("lineNum", split[1]);
|
||||
detail.setLineNumGw(split[1]);
|
||||
} else {
|
||||
item.put("lineNum", 1);
|
||||
detail.setLineNumGw("1");
|
||||
}
|
||||
} else {
|
||||
item.put("lineNum", 1);
|
||||
detail.setLineNumGw("1");
|
||||
}
|
||||
item.put("qty", detail.getQuantity());
|
||||
|
||||
@@ -1392,9 +1395,15 @@ public class ReservationStockOutOrderApplicationService {
|
||||
// 计算金额
|
||||
BigDecimal unitPrice = materialBaseInfoPO.getUnitPrice();
|
||||
BigDecimal quantity = detail.getQuantity();
|
||||
detail.setQtyGw(quantity);
|
||||
detail.setErpPriceGw(unitPrice);
|
||||
detail.setErpCurrGw(materialBaseInfoPO.getCurrency());
|
||||
detail.setUnitGw(materialBaseInfoPO.getDeclarationUnit());
|
||||
detail.setSpecGw(materialBaseInfoPO.getSpecificationModel());
|
||||
if (unitPrice != null && quantity != null && unitPrice.compareTo(BigDecimal.ZERO) != 0 && quantity.compareTo(BigDecimal.ZERO) != 0) {
|
||||
BigDecimal amount = unitPrice.multiply(quantity).setScale(2, BigDecimal.ROUND_HALF_UP);
|
||||
item.put("amount", amount);
|
||||
detail.setAmountGw(amount);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1409,12 +1418,15 @@ public class ReservationStockOutOrderApplicationService {
|
||||
|
||||
if (inOrderNumber != null) {
|
||||
item.put("orderINo", inOrderNumber);
|
||||
detail.setInOrderNumberGw(inOrderNumber);
|
||||
}
|
||||
if (warehouseCode != null) {
|
||||
item.put("warehouse", warehouseCode);
|
||||
detail.setWarehouseGw(warehouseCode);
|
||||
}
|
||||
if (opWhLoc != null) {
|
||||
item.put("opWhLoc", opWhLoc);
|
||||
detail.setOpWhLocGw(opWhLoc);
|
||||
}
|
||||
// billI = 入库单号
|
||||
if (inOrderNumber != null) {
|
||||
@@ -1425,15 +1437,19 @@ public class ReservationStockOutOrderApplicationService {
|
||||
if (split.length == 2) {
|
||||
item.put("orderIRow", split[1]);
|
||||
item.put("billIRow", split[1]);
|
||||
detail.setInLineNumGw(split[1]);
|
||||
} else {
|
||||
item.put("orderIRow", 1);
|
||||
item.put("billIRow", 1);
|
||||
detail.setInLineNumGw("1");
|
||||
}
|
||||
} else {
|
||||
item.put("orderIRow", 1);
|
||||
item.put("billIRow", 1);
|
||||
detail.setInLineNumGw("1");
|
||||
}
|
||||
}
|
||||
reservationOutMaterialDetailMapper.updateById(detail);
|
||||
orderList.add(item);
|
||||
}
|
||||
order.put("orderList", orderList);
|
||||
|
||||
Reference in New Issue
Block a user