From 9f13a2f6a7f43b1e632a11559716367dd60880b2 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Thu, 26 Sep 2024 16:01:46 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=9A=E7=89=A9=E6=96=99table=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=9C=80=E6=96=B0=E6=8A=A5=E4=BB=B7(RMB)=E3=80=81?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E6=8A=A5=E4=BB=B7(=E7=BE=8E=E5=85=83)?= =?UTF-8?q?=E3=80=81=E5=92=8C=E6=9C=80=E6=96=B0=E6=8A=A5=E4=BB=B7=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E6=8C=89=E9=92=AE=EF=BC=9B=E6=96=B0=E5=A2=9E=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=9C=80=E6=96=B0=E6=8A=A5=E4=BB=B7=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E5=89=8D=E7=AB=AFjs=E6=96=B9=E6=B3=95=20=E9=94=80=E5=94=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=AD=90=E8=A1=A8=E5=AE=9E=E4=BD=93=E7=B1=BB?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=80=E6=96=B0=E6=8A=A5=E4=BB=B7(RMB)?= =?UTF-8?q?=E3=80=81=E6=9C=80=E6=96=B0=E6=8A=A5=E4=BB=B7(=E7=BE=8E?= =?UTF-8?q?=E5=85=83)=E5=AD=97=E6=AE=B5=20=E4=BF=AE=E6=94=B9=E9=94=80?= =?UTF-8?q?=E5=94=AE=E7=AE=A1=E7=90=86mapper.xml=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E5=88=86=E9=A1=B5=E6=9F=A5=E8=AF=A2=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E3=80=81=E4=BF=AE=E6=94=B9=E6=96=B9=E6=B3=95=E3=80=81=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=96=B9=E6=B3=95=EF=BC=9A=E7=BB=9F=E4=B8=80=E5=8A=A0?= =?UTF-8?q?=E4=B8=8ArecentQuotation=5Frmb,=20recentQuotation=5Fusd,?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/domain/SysSalesOrderChild.java | 27 +++++++++++++++++++ .../system/SysSalesOrderChildMapper.xml | 14 ++++++++-- .../templates/system/salesOrder/add.html | 24 +++++++++++++++++ 3 files changed, 63 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderChild.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderChild.java index 270f6a46..97ac7d1b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderChild.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderChild.java @@ -4,6 +4,8 @@ import com.google.common.base.Objects; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; +import java.math.BigDecimal; + /** * 销售订单对象 sys_sales_order * @@ -89,6 +91,13 @@ public class SysSalesOrderChild extends BaseEntity { @Excel(name = "物料的对外售价") private Double materialSole; + @Excel(name = "物料的最新报价(RMB)") + private BigDecimal recentQuotationRMB; + + @Excel(name = "物料的最新报价(RMB)") + private BigDecimal recentQuotationUSD; + + /** 物料的不含税单价(RMB) */ @Excel(name = "物料的不含税单价(RMB) ") private Double materialRmb; @@ -498,6 +507,22 @@ public class SysSalesOrderChild extends BaseEntity { this.hasCheckNum = hasCheckNum; } + public BigDecimal getRecentQuotationRMB() { + return recentQuotationRMB; + } + + public void setRecentQuotationRMB(BigDecimal recentQuotationRMB) { + this.recentQuotationRMB = recentQuotationRMB; + } + + public BigDecimal getRecentQuotationUSD() { + return recentQuotationUSD; + } + + public void setRecentQuotationUSD(BigDecimal recentQuotationUSD) { + this.recentQuotationUSD = recentQuotationUSD; + } + @Override public String toString() { return Objects.toStringHelper(this) @@ -522,6 +547,8 @@ public class SysSalesOrderChild extends BaseEntity { .add("materialSum", materialSum) .add("enterpriseSum", enterpriseSum) .add("materialSole", materialSole) + .add("recentQuotationUSD", recentQuotationUSD) + .add("recentQuotationRMB", recentQuotationRMB) .add("materialRmb", materialRmb) .add("materialNoRmb", materialNoRmb) .add("materialNoUsd", materialNoUsd) diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml index 45bc8c2b..ff34bbff 100644 --- a/ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml @@ -20,6 +20,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + @@ -49,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select a.id, a.quoteId, a.materialId, a.materialCode, a.materialName, a.materialType, a.processMethod, a.brand, a.photoUrl,a.unit, a.`describe`, - a.warehouseDept,a.countTax, a.usdTax, a.materialNum,a.materialSole, a.materialRmb, a.materialNoRmb, a.materialNoUsd, a.materialUsd, a.materialUsdSum, + a.warehouseDept,a.countTax, a.usdTax, a.materialNum,a.materialSole, a.recentQuotation_rmb, a.recentQuotation_usd, a.materialRmb, a.materialNoRmb, a.materialNoUsd, a.materialUsd, a.materialUsdSum, a.materialNoUsdSum, a.materialNoRmbSum, a.materialRmbSum,a.delivery_time, a.expiry_day, a.out_bound_quantity, a.un_bound_quantity, a.create_by, a.create_time, a.update_by, a.update_time, a.remark @@ -72,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"