| | |
| | | ) |
| | | ) 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> |