From 4b4d849042cbee7d55de3b474316b0c88da0112e Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 12 Mar 2026 14:57:22 +0800 Subject: [PATCH] =?UTF-8?q?2026-03-12=20=E9=A1=B9=E7=9B=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=A2=9E=E5=8A=A0=E2=80=9C=E9=A1=B9=E7=9B=AE=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E2=80=9D=E3=80=81=E2=80=9C=E7=9B=B4=E6=8E=A5=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/project/entity/PlmProjectInfo.java | 14 ++++++++++++++ src/main/resources/mapper/project/ProjectDao.xml | 16 ++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/spring/modules/project/entity/PlmProjectInfo.java b/src/main/java/com/spring/modules/project/entity/PlmProjectInfo.java index 61b4e310..842696e5 100644 --- a/src/main/java/com/spring/modules/project/entity/PlmProjectInfo.java +++ b/src/main/java/com/spring/modules/project/entity/PlmProjectInfo.java @@ -7,6 +7,7 @@ import com.spring.common.utils.PageUtils; import com.spring.common.utils.QueryPage; import org.springframework.format.annotation.DateTimeFormat; +import java.math.BigDecimal; import java.util.Date; @TableName("plm_project_info") @@ -113,6 +114,11 @@ public class PlmProjectInfo extends QueryPage { */ private String parentProjectNo; + /** + * 项目金额 + */ + private BigDecimal projectAmount; + public String getProjectId() { return projectId; } @@ -297,5 +303,13 @@ public class PlmProjectInfo extends QueryPage { public void setProductSet(String productSet) { this.productSet = productSet; } + + public BigDecimal getProjectAmount() { + return projectAmount; + } + + public void setProjectAmount(BigDecimal projectAmount) { + this.projectAmount = projectAmount; + } } diff --git a/src/main/resources/mapper/project/ProjectDao.xml b/src/main/resources/mapper/project/ProjectDao.xml index 77be5511..5003f9e7 100644 --- a/src/main/resources/mapper/project/ProjectDao.xml +++ b/src/main/resources/mapper/project/ProjectDao.xml @@ -32,8 +32,8 @@ dbo.get_projectUserRoleName(a.site, a.project_id) userRoleName, a.parent_project_no, a.final_customer_id, - dbo.plm_get_dictDataLabel('finalCustomer', a.final_customer_id, a.site) finalCustomerName, - a.productSet + a.productSet, + a.project_amount FROM plm_project_info as a left outer join view_Project_Part as b on a.project_id = b.project_id and a.site = b.site @@ -88,8 +88,8 @@ parent_project_no, customer_project_no, final_customer_id, - dbo.plm_get_dictDataLabel('finalCustomer', final_customer_id, site) finalCustomerName, - productSet + productSet, + project_amount FROM plm_project_info @@ -221,17 +221,17 @@ insert into plm_project_info (project_id, ori_project_id, project_type_db, project_name, status, project_source, customer_id, create_by, create_date, priority, site, project_desc, customer_remark, remark, need_date, parent_project_no, final_customer_id, - customer_Project_No, productSet) + customer_Project_No, productSet, project_amount) values (#{projectId}, #{projectId}, #{projectTypeDb}, #{projectName}, #{status}, #{projectSource}, #{customerId}, #{createBy}, GetDate(), #{priority}, #{site}, #{projectDesc}, #{customerRemark}, #{remark}, #{needDate}, #{parentProjectNo}, #{finalCustomerId}, - #{customerProjectNo}, #{productSet}) + #{customerProjectNo}, #{productSet}, #{projectAmount}) update plm_project_info set project_type_db=#{projectTypeDb},project_name=#{projectName},project_source=#{projectSource},status=#{status}, customer_id=#{customerId},priority=#{priority},project_desc=#{projectDesc},customer_remark=#{customerRemark},remark=#{remark},need_date=#{needDate}, - update_by=#{updateBy},update_date=GetDate(),parent_project_no = #{parentProjectNo},final_customer_id=#{finalCustomerId},productSet=#{productSet} - ,customer_Project_No=#{customerProjectNo} where id=#{id} + update_by=#{updateBy},update_date=GetDate(),parent_project_no = #{parentProjectNo},final_customer_id=#{finalCustomerId},productSet=#{productSet}, + customer_Project_No=#{customerProjectNo},project_amount=#{projectAmount} where id=#{id} delete from plm_project_team where site=#{site} and project_id=#{projectId}