From 555fdbae1f338a404da8d5f4c52c0afb8003bce6 Mon Sep 17 00:00:00 2001 From: lixiangyu <lixiangyu@xalxzn.com> Date: 星期二, 09 九月 2025 17:54:38 +0800 Subject: [PATCH] feat(cms): 添加库存刀具列表接口并优化相关功能 --- src/main/java/org/jeecg/modules/cms/mapper/xml/CuttingReceiveMapper.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/main/java/org/jeecg/modules/cms/mapper/xml/CuttingReceiveMapper.xml b/src/main/java/org/jeecg/modules/cms/mapper/xml/CuttingReceiveMapper.xml index cfc1730..57a8969 100644 --- a/src/main/java/org/jeecg/modules/cms/mapper/xml/CuttingReceiveMapper.xml +++ b/src/main/java/org/jeecg/modules/cms/mapper/xml/CuttingReceiveMapper.xml @@ -2,4 +2,21 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.jeecg.modules.cms.mapper.CuttingReceiveMapper"> + <select id="getInventoryToolList" parameterType="Map" resultType="Map"> + SELECT + t1.cutting_id cuttingId, + t1.id, + t1.cutting_barcode cuttingBarcode, + t1.current_life currentLife, + t2.cutting_code cuttingCode, + t2.cutting_name cuttingName, + t2.cutting_category, + t3.item_text cuttingCategory + FROM cms_cutting_inventory t1 + LEFT JOIN cms_cutting_tool t2 ON t1.cutting_id = t2.id + LEFT JOIN (select * from v_sys_dict where dict_code = 'cutting_category') t3 on t3.item_value = t2.cutting_category + WHERE t1.inventory_status = '姝e父' + AND t2.del_flag = 0 + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3