Houjie
2025-05-26 7f99e4a369319397c44767b5e8d558fefa049c4e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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.tms.mapper.InboundDetailMapper">
 
    <select id="findPageList" resultType="map" parameterType="String">
        select
            t1.id,
            t3.id toolCodeId,
            t1.in_storage_quantity inStorageQuantity,
            t3.tool_code toolCode,
            t3.chinese_name chineseName,
            t3.tool_model toolModel,
            t5.item_text applicationType
            from tms_inbound_detail t1
            left join tms_inbound_order t2 on t1.in_storehouse_id = t2.id
            left join tms_base_tools t3 on t3.id = t1.tool_code
            left join tms_tools_config_property t4 on t4.tool_code = t1.tool_code
            left join (select * from v_sys_dict where dict_code = 'application_type') t5 on t5.item_value = t4.application_type
            ${ew.customSqlSegment}
    </select>
</mapper>