zhangherong
2025-07-01 02ae7138146e6964c4b5875930cbb8896ad840fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.eam.mapper.EamSparePartRequisitionMapper">
 
    <select id="getSparePartRequisitionDetailList" resultType="Map">
        SELECT
            t2.id,
            t2.part_code AS partCode,
            t2.part_name as partName,
            t2.part_model as partModel,
            t2.part_specification as partSpecification,
            t3.item_text as partCategory,
            t1.requisition_num as quantity
        FROM
            eam_spare_part_requisition_detail t1
            LEFT JOIN eam_spare_parts t2 ON t1.part_id = t2.id
            LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'spare_part_category' ) t3 ON t3.item_value = t2.part_category
        ${ew.customSqlSegment}
    </select>
</mapper>