From a7da72128c49f9ce675373cc5cb763967165dad1 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期二, 23 十二月 2025 17:53:56 +0800
Subject: [PATCH] feat(production): 接口修改

---
 src/main/resources/mapper/production/ProcessRouteItemMapper.xml |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/production/ProcessRouteItemMapper.xml b/src/main/resources/mapper/production/ProcessRouteItemMapper.xml
new file mode 100644
index 0000000..c62b6e0
--- /dev/null
+++ b/src/main/resources/mapper/production/ProcessRouteItemMapper.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.production.mapper.ProcessRouteItemMapper">
+
+    <resultMap id="basicMap" type="com.ruoyi.production.pojo.ProcessRouteItem">
+        <id property="id" column="id"/>
+        <result property="routeId" column="route_id"/>
+        <result property="processId" column="process_id"/>
+        <result property="productModelId" column="product_model_id"/>
+        <result property="tenantId" column="tenant_id"/>
+        <result property="createTime" column="create_time"/>
+        <result property="updateTime" column="update_time"/>
+    </resultMap>
+
+    <select id="listProcessRouteItemDto" resultType="com.ruoyi.production.dto.ProcessRouteItemDto">
+        select pri.*,
+               pr.description ,
+               pp.name as process_name,
+               pm.speculative_trading_name,
+               pm.product_id,
+               pm.model
+        from
+            process_route_item pri
+                left join product_model pm on pri.product_model_id = pm.id
+                left join product_process pp on pp.id = pri.process_id
+                left join process_route pr on pr.id = pri.route_id
+        where
+            pri.route_id = #{c.routeId}
+        order by pri.id
+    </select>
+</mapper>

--
Gitblit v1.9.3