| | |
| | | t1.tool_code toolCode, |
| | | t1.tool_id toolId, |
| | | t2.tool_code toolNum, |
| | | t2.accuracy_class accuracyClass, |
| | | t1.outbound_quantity outboundQuantity, |
| | | t1.out_actual_count outActualCount, |
| | | t1.outbound_time outboundTime, |
| | |
| | | t3.supplier_id supplierId, |
| | | t11.id toolLedgerDetailId, |
| | | t11.quantity, |
| | | t13.id toolSharpeningId, |
| | | ISNULL(t12.warehouse_id, '') + '/' + ISNULL(t12.warehouse_name, '') warehouseName, |
| | | <choose> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '1'"> |
| | |
| | | LEFT JOIN tms_base_tools t2 on t1.tool_code = t2.id |
| | | LEFT JOIN tms_tools_config_property t3 on t3.tool_code = t2.id |
| | | LEFT JOIN tms_tool_ledger_detail t11 on t1.tool_code = t11.tool_code and t1.tool_id = t11.tool_id |
| | | LEFT JOIN tms_tool_sharpening t13 on t1.tool_code = t13.tool_code and t1.tool_id = t13.tool_id |
| | | LEFT JOIN tms_warehouse t12 on t1.storage_location = t12.id |
| | | <choose> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '1'"> |