| | |
| | | <!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.ParaMillToolMapper"> |
| | | |
| | | <select id="selectByClassifyAndDiameter" resultType="org.jeecg.modules.tms.entity.vo.ParaMillToolVo"> |
| | | SELECT |
| | | t.id AS id, |
| | | t.classify_id AS classifyId, |
| | | t2.classify_id AS classifyNum, |
| | | t2.type_name AS classifyName, |
| | | t1.id AS toolId, |
| | | t.tool_code AS toolCode, |
| | | 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.diameter AS diameter, |
| | | t.nose_angle_r AS noseAngleR, |
| | | t.number_of_teeth AS numberOfTeeth, |
| | | 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.tool_pattern AS toolPattern, |
| | | t.clamping_specifications AS clampingSpecifications, |
| | | t.cooling_method AS coolingMethod, |
| | | t.technical_conditions AS technicalConditions, |
| | | t.conditions_info AS conditionsInfo, |
| | | t.brand AS brand, |
| | | t.neck_diameter AS neckDiameter, |
| | | t.handle_form AS handleForm, |
| | | t.nose_angle_c AS noseAngleC, |
| | | t.angle_inside_r AS angleInsideR, |
| | | t.small_diameter AS smallDiameter, |
| | | t.tool_angle AS toolAngle, |
| | | t.handle_length AS handleLength, |
| | | t.main_angle_k AS mainAngleK, |
| | | t.deepest_depth AS deepestDepth, |
| | | t.adapt_blade AS adaptBlade, |
| | | t.handle_neck_form AS handleNeckForm, |
| | | t.handle_neck_length AS handleNeckLength, |
| | | t.size_specifications AS sizeSpecifications, |
| | | t.milling_head_form AS millingHeadForm, |
| | | t.overhanging_length AS overhangingLength, |
| | | t.cutting_edge_form AS cuttingEdgeForm, |
| | | t.number_patterns AS numberPatterns, |
| | | t.pitch AS pitch, |
| | | t.recently_diameter AS recentlyDiameter |
| | | FROM tms_para_mill_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 |
| | | <where> |
| | | <if test="classifyId != null and classifyId != ''"> |
| | | AND t.classify_id = #{classifyId} |
| | | </if> |
| | | <if test="diameter != null and diameter != ''"> |
| | | AND t.diameter = #{diameter} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |