<?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.ParaTurningToolsMapper">
|
|
<select id="selectByClassifyAndDiameter" resultType="org.jeecg.modules.tms.entity.vo.ParaTurningToolsVo">
|
SELECT
|
t.id AS 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,
|
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.head_specifications AS headSpecifications,
|
t.matching_number AS matchingNumber,
|
t.lead_angle AS leadAngle,
|
t.cross_sectional_size AS crossSectionalSize,
|
t.total_length AS totalLength,
|
t.cutting_direction AS cuttingDirection,
|
t.tool_material AS toolMaterial,
|
t.part_material AS partMaterial,
|
t.tool_pattern AS toolPattern,
|
t.paintcoat_flag AS paintcoatFlag,
|
t.technical_conditions AS technicalConditions,
|
t.conditions_info AS conditionsInfo,
|
t.brand AS brand,
|
t.types AS types,
|
t.knife_size AS knifeSize,
|
t.cooling_method AS coolingMethod,
|
t.holder_category AS holderCategory,
|
t.tool_diameter AS toolDiameter,
|
t.fastening_form AS fasteningForm,
|
t.boring_bar_diameter AS boringBarDiameter,
|
t.blade_length AS bladeLength,
|
t.blade_shape AS bladeShape,
|
t.blade_posterior AS bladePosterior,
|
t.bar_direction AS barDirection,
|
t.blade_height AS bladeHeight,
|
t.blade_wide AS bladeWide,
|
t.blade_size AS bladeSize,
|
t.knife_clip_model AS knifeClipModel,
|
t.clamping_method AS clampingMethod,
|
t.slot_width AS slotWidth,
|
t.small_diameter AS smallDiameter,
|
t.max_diameter AS maxDiameter,
|
t.max_depth AS maxDepth,
|
t.knife_bar_form AS knifeBarForm,
|
t.blade_thickness AS bladeThickness,
|
t.min_diameter AS minDiameter
|
FROM tms_para_turning_tools 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>
|