From 7af9ce0cde405ff7a48012b03bedf2884c09ab15 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期一, 12 五月 2025 15:48:09 +0800
Subject: [PATCH] 钣金计划:从Redis中读取库存信息
---
aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteLineMapper.xml | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteLineMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteLineMapper.xml
index 3b6e3b8..1965e12 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteLineMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteLineMapper.xml
@@ -20,15 +20,20 @@
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
+ <result property="routeCode" column="route_code" />
+ <result property="standardTime" column="standard_time" />
</resultMap>
<sql id="selectApsStandardProcessRouteLineVo">
- select id, route_id, route_num, route_name, start_date, end_date, create_time, org_code, shop_code, productivity_model, design_capacity, del_flag, create_by, update_by, update_time from aps_standard_process_route_line
+ select id, route_id, route_num, route_name, start_date, end_date, create_time, org_code,
+ shop_code, productivity_model, design_capacity, del_flag, create_by, update_by,
+ update_time, route_code, standard_time
+ from aps_standard_process_route_line
</sql>
<select id="selectApsStandardProcessRouteLineList" parameterType="ApsStandardProcessRouteLine" resultMap="ApsStandardProcessRouteLineResult">
<include refid="selectApsStandardProcessRouteLineVo"/>
- <where>
+ <where>
<if test="routeId != null and routeId != ''"> and route_id = #{routeId}</if>
<if test="routeNum != null and routeNum != ''"> and route_num = #{routeNum}</if>
<if test="routeName != null and routeName != ''"> and route_name = #{routeName}</if>
@@ -38,7 +43,9 @@
<if test="shopCode != null and shopCode != ''"> and shop_code = #{shopCode}</if>
<if test="productivityModel != null and productivityModel != ''"> and productivity_model = #{productivityModel}</if>
<if test="designCapacity != null and designCapacity != ''"> and design_capacity = #{designCapacity}</if>
+ and del_flag = '0'
</where>
+
</select>
<select id="selectApsStandardProcessRouteLineById" parameterType="Long" resultMap="ApsStandardProcessRouteLineResult">
@@ -115,4 +122,11 @@
#{id}
</foreach>
</delete>
+
+ <select id="selectTotalStandTime" parameterType="String" resultMap="ApsStandardProcessRouteLineResult">
+ select sum(standard_time) as standard_time
+ from aps_standard_process_route_line
+ where route_id = #{routeId}
+ ;
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3