| | |
| | | ${ew.customSqlSegment} |
| | | |
| | | </select> |
| | | |
| | | <select id="toolsStocktakingList" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.tool_id onlyCode, |
| | | t1.book_quantity bookQuantity, |
| | | t1.available_quantity availableQuantity, |
| | | t1.practical_quantity practicalQuantity, |
| | | t1.surplus_deficit surplusDeficit, |
| | | t1.stocktaking_date stocktakingDate, |
| | | t2.order_code orderCode, |
| | | t2.stocktaking_type stocktakingType, |
| | | t2.stocktaking_name stocktakingName, |
| | | t3.tool_code toolCode, |
| | | t3.chinese_name chineseName, |
| | | t3.tool_model toolModel, |
| | | t4.classify_id classifyNum, |
| | | t5.item_text handler |
| | | FROM |
| | | tms_stocktaking_bound_detail t1 |
| | | LEFT JOIN tms_stocktaking_bound t2 ON t2.id = t1.stocktaking_bound_id |
| | | LEFT JOIN tms_base_tools t3 ON t3.id = t1.tool_code |
| | | LEFT JOIN tms_tools_classify t4 ON t4.id = t3.classify_id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'sys_user' ) t5 ON t5.item_value = t2.handler |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |