cuilei
2025-06-13 830c1077107f50c7dfc747b98bf1960f14353661
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?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.ParaThreadingToolMapper">
 
    <select id="selectByClassifyAndParam" resultType="org.jeecg.modules.tms.entity.vo.ParaThreadingToolVo">
        SELECT
            t.id,
            t.classify_id AS classifyId,
            t2.classify_id AS classifyNum,
            t2.type_name AS classifyName,
            t1.id AS toolId,
            t1.tool_code AS toolCode,
            t1.parama_table_name AS paramaTableName,
            t.sign_code AS signCode,
            t.chinese_name AS chineseName,
            t.foreign_language_name AS foreignLanguageName,
            t.standard_level AS standardLevel,
            t.standard_code AS standardCode,
            t.position_code AS positionCode,
            t.tool_model AS toolModel,
            t.edge_length AS edgeLength,
            t.total_length AS totalLength,
            t.tool_material AS toolMaterial,
            t.part_material AS partMaterial,
            t.paintcoat_flag AS paintcoatFlag,
            t.handle_specifications AS handleSpecifications,
            t.cooling_method AS coolingMethod,
            t.technical_conditions AS technicalConditions,
            t.conditions_info AS conditionsInfo,
            t.brand,
            t.types,
            <!-- 螺纹刀具特有字段 -->
            t.thread_code AS threadCode,
            t.rotation_direction AS rotationDirection,
            t.tolerancezone_level AS tolerancezoneLevel,
            t.external_dimensions AS externalDimensions,
            t.handle_specifications AS handleSpecifications,
            t.screw_hole_type AS screwHoleType,
            t.thread_standard AS threadStandard,
            t.flute_solt_type AS fluteSoltType,
            t.thread_type AS threadType,
            t.guiding_size AS guidingSize,
            t.connection_aperture AS connectionAperture,
            t.connecting_keyway AS connectingKeyway
        FROM tms_para_threading_tool t
        LEFT JOIN tms_base_tools t1 ON t.tool_code = t1.id
        LEFT JOIN tms_tools_classify t2 ON t.classify_id = t2.id
        ${ew.customSqlSegment}
    </select>
</mapper>