From 3b90056cc6068e0586f65f7bd8a79d717ed3c69d Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期四, 12 六月 2025 14:57:12 +0800
Subject: [PATCH] 拆分停机列表排序规则调整,程序呼叫字典调增
---
lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/ToolLedgerDetailMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/ToolLedgerDetailMapper.xml b/lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/ToolLedgerDetailMapper.xml
index cd683ee..78cb6cf 100644
--- a/lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/ToolLedgerDetailMapper.xml
+++ b/lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/ToolLedgerDetailMapper.xml
@@ -5,6 +5,7 @@
<select id="queryPageList" resultType="org.jeecg.modules.tms.entity.ToolLedgerDetail">
SELECT
t.id,
+ t.id toolLedgerDetailId,
t.tool_code toolCode,
p.tool_code toolNum,
t.tool_id toolId,
@@ -171,4 +172,24 @@
)
) temp
</select>
+ <select id="queryToolLedgerDetailList" resultType="map" parameterType="String">
+ SELECT
+ t1.id,
+ t1.tool_code toolCodeId,
+ t2.tool_code toolCode,
+ t1.tool_id onlyCode,
+ t2.chinese_name chineseName,
+ t2.tool_model toolModel,
+ t1.quantity,
+ t1.warehouse_id warehouseId,
+ ISNULL(t3.warehouse_id, '') + '/' + ISNULL(t3.warehouse_name, '') warehouseName,
+ t1.position_code positionCode,
+ t5.item_text applicationType
+ FROM tms_tool_ledger_detail t1
+ LEFT JOIN tms_base_tools t2 on t1.tool_code = t2.id
+ LEFT JOIN tms_warehouse t3 on t1.warehouse_id = t3.id
+ left join tms_tools_config_property t4 on t4.tool_code = t2.id
+ left join (select * from v_sys_dict where dict_code ='application_type') t5 on t5.item_value = t4.application_type
+ ${ew.customSqlSegment}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3