From 051414acd3a8c3e761d1010b14014d6b9bddd7fb Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 15 十月 2024 15:52:06 +0800
Subject: [PATCH] statistic workload change
---
pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
index 05fdb15..39c17fd 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
@@ -18,6 +18,8 @@
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<association property="instruction"
column="id" javaType="java.lang.Long" select="com.dy.pmsGlobal.daoPr.PrWorkingInstructionMapper.selectByNodeId" fetchType="eager" />
+ <association property="bill"
+ column="id" javaType="java.lang.Long" select="com.dy.pmsGlobal.daoPr.PrBillOfMaterialMapper.selectByNodeId" fetchType="eager" />
</resultMap>
<sql id="Base_Column_List">
@@ -38,6 +40,12 @@
from pr_production_node
where id = #{id,jdbcType=BIGINT}
</select>
+ <select id="selectNodeBySort" resultMap="BaseResultMap">
+ select
+ <include refid="Base_Column_List" />
+ from pr_production_node
+ where process_id = #{processId,jdbcType=BIGINT} and sort = #{sort,jdbcType=INTEGER}
+ </select>
<select id="selectNameByNodeId" parameterType="java.lang.Long" resultType="String">
select content from pr_production_node where id = #{id}
</select>
--
Gitblit v1.8.0