cuijian
2025-06-06 35d9446131124e12616c7b6b9dfd79e23d20e1c9
lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/ToolLedgerDetailMapper.xml
@@ -172,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>