<?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.BaseToolsMapper">
|
<select id="paraHolesToolsList" resultType="org.jeecg.modules.tms.entity.vo.ParaHolesToolsVo">
|
select
|
t.id,
|
t.classify_id classifyId,
|
t.tool_code toolCode,
|
t.sign_code signCode,
|
t.chinese_name chineseName,
|
t.foreign_language_name foreignLanguageName,
|
t.standard_level standardLevel,
|
t.standard_code standardCode,
|
t.tool_model toolModel,
|
t.parama_table_name paramaTableName,
|
t1.application_type applicationType,
|
t1.supplier_id supplierId,
|
t1.province_city provinceCity,
|
t1.position_code positionCode,
|
t1.storage_location storageLocation,
|
t1.main_unit mainUnit,
|
t1.auxiliary_unit auxiliaryUnit,
|
t1.auxiliary_unit_flag auxiliaryUnitFlag,
|
t1.price,
|
t1.lower_inventory lowerInventory,
|
t1.highest_inventory highestInventory,
|
t2.diameter,
|
t2.cone_angle coneAngle,
|
t2.edge_length edgeLength,
|
t2.total_length totalLength,
|
t2.tool_material toolMaterial,
|
t2.part_material partMaterial,
|
t2.paintcoat_flag paintcoatFlag,
|
t2.tool_pattern toolPattern,
|
t2.handle_specifications handleSpecifications,
|
t2.cooling_method coolingMethod,
|
t2.technical_conditions technicalConditions,
|
t2.conditions_info conditionsInfo,
|
t2.brand,
|
t2.types,
|
t2.tolerance_class toleranceClass,
|
t2.flute_form fluteForm,
|
t2.handle_form handleForm,
|
t2.blade_count bladeCount,
|
t2.small_diameter smallDiameter,
|
t2.chamfer_angle chamferAngle,
|
t2.fitter_part fitterPart,
|
t2.effective_length effectiveLength,
|
t2.drill_diameter_range drillDiameterRange,
|
t2.knife_diameter knifeDiameter,
|
t2.bore_diameter boreDiameter,
|
t2.connector_type connectorType,
|
t2.slot_specification slotSpecification,
|
t2.scope_of_application scopeOfApplication,
|
t2.latest_boring_diameter latestBoringDiameter,
|
t2.max_boring_diameter maxBoringDiameter,
|
t2.processingmethod processingmethod,
|
t2.heads_number headsNumber,
|
t2.adapt_holder adaptHolder,
|
t2.remark,
|
t3.classify_id classifyNum,
|
t3.type_name classifyName
|
from tms_base_tools t
|
left join tms_tools_config_property t1 on t1.tool_code = t.id
|
left join tms_para_hole_tools t2 on t2.tool_code = t.id
|
left join tms_tools_classify t3 on t3.id = t.classify_id
|
${ew.customSqlSegment}
|
</select>
|
<select id="paraCommonToolList" resultType="org.jeecg.modules.tms.entity.vo.ParaCommonToolVo">
|
select
|
t.id,
|
t.classify_id classifyId,
|
t.tool_code toolCode,
|
t.sign_code signCode,
|
t.chinese_name chineseName,
|
t.foreign_language_name foreignLanguageName,
|
t.standard_level standardLevel,
|
t.standard_code standardCode,
|
t.tool_model toolModel,
|
t.parama_table_name paramaTableName,
|
t1.application_type applicationType,
|
t1.supplier_id supplierId,
|
t1.province_city provinceCity,
|
t1.position_code positionCode,
|
t1.storage_location storageLocation,
|
t1.main_unit mainUnit,
|
t1.auxiliary_unit auxiliaryUnit,
|
t1.auxiliary_unit_flag auxiliaryUnitFlag,
|
t1.price,
|
t1.lower_inventory lowerInventory,
|
t1.highest_inventory highestInventory,
|
t3.classify_id classifyNum,
|
t3.type_name classifyName
|
from tms_base_tools t
|
left join tms_tools_config_property t1 on t1.tool_code = t.id
|
left join tms_tools_classify t3 on t3.id = t.classify_id
|
${ew.customSqlSegment}
|
</select>
|
<select id="paraThreadingToolList" resultType="org.jeecg.modules.tms.entity.vo.ParaThreadingToolVo">
|
SELECT
|
t.id,
|
t.classify_id classifyId,
|
t.tool_code toolCode,
|
t.sign_code signCode,
|
t.chinese_name chineseName,
|
t.foreign_language_name foreignLanguageName,
|
t.standard_level standardLevel,
|
t.standard_code standardCode,
|
t.tool_model toolModel,
|
t.parama_table_name paramaTableName,
|
t1.application_type applicationType,
|
t1.supplier_id supplierId,
|
t1.province_city provinceCity,
|
t1.position_code positionCode,
|
t1.storage_location storageLocation,
|
t1.main_unit mainUnit,
|
t1.auxiliary_unit auxiliaryUnit,
|
t1.auxiliary_unit_flag auxiliaryUnitFlag,
|
t1.price,
|
t1.lower_inventory lowerInventory,
|
t1.highest_inventory highestInventory,
|
t1.remark,
|
t2.thread_code threadCode,
|
t2.pitch,
|
t2.rotation_direction rotationDirection,
|
t2.tolerancezone_level tolerancezoneLevel,
|
t2.edge_length edgeLength,
|
t2.total_length totalLength,
|
t2.tool_material toolMaterial,
|
t2.part_material partMaterial,
|
t2.paintcoat_flag paintcoatFlag,
|
t2.external_dimensions externalDimensions,
|
t2.handle_specifications handleSpecifications,
|
t2.technical_conditions technicalConditions,
|
t2.conditions_info conditionsInfo,
|
t2.brand,
|
t2.types,
|
t2.screw_hole_type screwHoleType,
|
t2.cooling_method coolingMethod,
|
t2.thread_standard threadStandard,
|
t2.flute_solt_type fluteSoltType,
|
t2.guiding_size guidingSize,
|
t2.thread_type threadType,
|
t2.connection_aperture connectionAperture,
|
t2.connecting_keyway connectingKeyway,
|
t3.classify_id classifyNum,
|
t3.type_name classifyName
|
FROM
|
tms_base_tools t
|
LEFT JOIN tms_tools_config_property t1 ON t1.tool_code = t.id
|
LEFT JOIN tms_para_threading_tool t2 ON t2.tool_code = t.id
|
LEFT JOIN tms_tools_classify t3 ON t3.id = t.classify_id
|
${ew.customSqlSegment}
|
</select>
|
<select id="paraMillToolList" resultType="org.jeecg.modules.tms.entity.vo.ParaMillToolVo">
|
SELECT
|
t.id,
|
t.classify_id classifyId,
|
t.tool_code toolCode,
|
t.sign_code signCode,
|
t.chinese_name chineseName,
|
t.foreign_language_name foreignLanguageName,
|
t.standard_level standardLevel,
|
t.standard_code standardCode,
|
t.tool_model toolModel,
|
t.parama_table_name paramaTableName,
|
t1.application_type applicationType,
|
t1.supplier_id supplierId,
|
t1.province_city provinceCity,
|
t1.position_code positionCode,
|
t1.storage_location storageLocation,
|
t1.main_unit mainUnit,
|
t1.auxiliary_unit auxiliaryUnit,
|
t1.auxiliary_unit_flag auxiliaryUnitFlag,
|
t1.price,
|
t1.lower_inventory lowerInventory,
|
t1.highest_inventory highestInventory,
|
t2.diameter,
|
t2.nose_angle_r noseAngleR,
|
t2.number_of_teeth numberOfTeeth,
|
t2.edge_length edgeLength,
|
t2.total_length totalLength,
|
t2.tool_material toolMaterial,
|
t2.part_material partMaterial,
|
t2.paintcoat_flag paintcoatFlag,
|
t2.tool_pattern toolPattern,
|
t2.clamping_specifications clampingSpecifications,
|
t2.cooling_method coolingMethod,
|
t2.technical_conditions technicalConditions,
|
t2.conditions_info conditionsInfo,
|
t2.brand,
|
t2.neck_diameter neckDiameter,
|
t2.handle_form handleForm,
|
t2.nose_angle_c noseAngleC,
|
t2.angle_inside_r angleInsideR,
|
t2.small_diameter smallDiameter,
|
t2.tool_angle toolAngle,
|
t2.handle_length handleLength,
|
t2.main_angle_k mainAngleK,
|
t2.deepest_depth deepestDepth,
|
t2.adapt_blade adaptBlade,
|
t2.handle_neck_form handleNeckForm,
|
t2.handle_neck_length handleNeckLength,
|
t2.size_specifications sizeSpecifications,
|
t2.milling_head_form millingHeadForm,
|
t2.overhanging_length overhangingLength,
|
t2.cutting_edge_form cuttingEdgeForm,
|
t2.number_patterns numberPatterns,
|
t2.pitch,
|
t2.recently_diameter recentlyDiameter,
|
t3.classify_id classifyNum,
|
t3.type_name classifyName
|
FROM
|
tms_base_tools t
|
LEFT JOIN tms_tools_config_property t1 ON t1.tool_code = t.id
|
LEFT JOIN tms_para_mill_tool t2 ON t2.tool_code = t.id
|
LEFT JOIN tms_tools_classify t3 ON t3.id = t.classify_id
|
${ew.customSqlSegment}
|
</select>
|
<select id="paraTurningToolsList" resultType="org.jeecg.modules.tms.entity.vo.ParaTurningToolsVo">
|
SELECT
|
t.id,
|
t.classify_id classifyId,
|
t.tool_code toolCode,
|
t.sign_code signCode,
|
t.chinese_name chineseName,
|
t.foreign_language_name foreignLanguageName,
|
t.standard_level standardLevel,
|
t.standard_code standardCode,
|
t.tool_model toolModel,
|
t.parama_table_name paramaTableName,
|
t1.application_type applicationType,
|
t1.supplier_id supplierId,
|
t1.province_city provinceCity,
|
t1.position_code positionCode,
|
t1.storage_location storageLocation,
|
t1.main_unit mainUnit,
|
t1.auxiliary_unit auxiliaryUnit,
|
t1.auxiliary_unit_flag auxiliaryUnitFlag,
|
t1.price,
|
t1.lower_inventory lowerInventory,
|
t1.highest_inventory highestInventory,
|
t2.head_specifications headSpecifications,
|
t2.matching_number matchingNumber,
|
t2.lead_angle leadAngle,
|
t2.cross_sectional_size crossSectionalSize,
|
t2.total_length totalLength,
|
t2.cutting_direction cuttingDirection,
|
t2.tool_material toolMaterial,
|
t2.part_material partMaterial,
|
t2.tool_pattern toolPattern,
|
t2.paintcoat_flag paintcoatFlag,
|
t2.technical_conditions technicalConditions,
|
t2.conditions_info conditionsInfo,
|
t2.brand,
|
t2.conditions_info,
|
t2.types,
|
t2.knife_size knifeSize,
|
t2.cooling_method coolingMethod,
|
t2.holder_category holderCategory,
|
t2.tool_diameter toolDiameter,
|
t2.fastening_form fasteningForm,
|
t2.boring_bar_diameter boringBarDiameter,
|
t2.blade_length bladeLength,
|
t2.blade_shape bladeShape,
|
t2.blade_posterior bladePosterior,
|
t2.bar_direction barDirection,
|
t2.blade_height bladeHeight,
|
t2.blade_wide bladeWide,
|
t2.blade_size bladeSize,
|
t2.knife_clip_model knifeClipModel,
|
t2.clamping_method clampingMethod,
|
t2.slot_width slotWidth,
|
t2.small_diameter smallDiameter,
|
t2.max_diameter maxDiameter,
|
t2.max_depth maxDepth,
|
t2.knife_bar_form knifeBarForm,
|
t2.blade_thickness bladeThickness,
|
t2.min_diameter minDiameter,
|
t3.classify_id classifyNum,
|
t3.type_name classifyName
|
FROM
|
tms_base_tools t
|
LEFT JOIN tms_tools_config_property t1 ON t1.tool_code = t.id
|
LEFT JOIN tms_para_turning_tools t2 ON t2.tool_code = t.id
|
LEFT JOIN tms_tools_classify t3 ON t3.id = t.classify_id
|
${ew.customSqlSegment}
|
</select>
|
<select id="paraBladeList" resultType="org.jeecg.modules.tms.entity.vo.ParaBladeVo">
|
SELECT
|
t.id,
|
t.classify_id classifyId,
|
t.tool_code toolCode,
|
t.sign_code signCode,
|
t.chinese_name chineseName,
|
t.foreign_language_name foreignLanguageName,
|
t.standard_level standardLevel,
|
t.standard_code standardCode,
|
t.tool_model toolModel,
|
t.parama_table_name paramaTableName,
|
t1.application_type applicationType,
|
t1.supplier_id supplierId,
|
t1.province_city provinceCity,
|
t1.position_code positionCode,
|
t1.storage_location storageLocation,
|
t1.main_unit mainUnit,
|
t1.auxiliary_unit auxiliaryUnit,
|
t1.auxiliary_unit_flag auxiliaryUnitFlag,
|
t1.price,
|
t1.lower_inventory lowerInventory,
|
t1.highest_inventory highestInventory,
|
t1.remark,
|
t2.blade_shape bladeShape,
|
t2.blade_length bladeLength,
|
t2.cutting_edge_count cuttingEdgeCount,
|
t2.blade_thickness bladeThickness,
|
t2.clamping_type clampingType,
|
t2.nose_angle_r noseAngleR,
|
t2.tool_material toolMaterial,
|
t2.part_material partMaterial,
|
t2.paintcoat_flag paintcoatFlag,
|
t2.technical_conditions technicalConditions,
|
t2.conditions_info conditionsInfo,
|
t2.brand,
|
t2.types,
|
t2.coating_material coatingMaterial,
|
t2.processing_classify processingClassify,
|
t2.blade_posterior bladePosterior,
|
t2.cutting_direction cuttingDirection,
|
t2.blade_wide bladeWide,
|
t2.blade_size bladeSize,
|
t2.in_out_thread inOutThread,
|
t2.thread_standard threadStandard,
|
t2.dental_angle dentalAngle,
|
t2.pitch,
|
t2.min_internal_thread minInternalThread,
|
t3.classify_id classifyNum,
|
t3.type_name classifyName
|
FROM
|
tms_base_tools t
|
LEFT JOIN tms_tools_config_property t1 ON t1.tool_code = t.id
|
LEFT JOIN tms_para_blade t2 ON t2.tool_code = t.id
|
LEFT JOIN tms_tools_classify t3 ON t3.id = t.classify_id
|
${ew.customSqlSegment}
|
</select>
|
</mapper>
|