|
@@ -18,6 +18,66 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="useScene" column="use_scene"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+
|
|
|
+ <resultMap type="TElectronComponent" id="TElectronComponentResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="componentCategory" column="component_category" />
|
|
|
+ <result property="componentCategoryCode" column="component_category_code" />
|
|
|
+ <result property="componentName" column="component_name" />
|
|
|
+ <result property="manufacturer" column="manufacturer" />
|
|
|
+ <result property="componentModel" column="component_model" />
|
|
|
+ <result property="replaceDomesticModel" column="replace_domestic_model" />
|
|
|
+ <result property="qualityGrade" column="quality_grade" />
|
|
|
+ <result property="qualityProblem" column="quality_problem" />
|
|
|
+ <result property="deliveryCycle" column="delivery_cycle" />
|
|
|
+ <result property="supplyQuantity" column="supply_quantity" />
|
|
|
+ <result property="unitPrice" column="unit_price" />
|
|
|
+ <result property="zzkkLevel" column="zzkk_level" />
|
|
|
+ <result property="wkbInfo" column="wkb_info" />
|
|
|
+ <result property="inPreference" column="in_preference" />
|
|
|
+ <result property="qualityInspection" column="quality_inspection" />
|
|
|
+ <result property="shutdownDate" column="shutdown_date" />
|
|
|
+ <result property="forbidden" column="forbidden" />
|
|
|
+ <result property="appValidationData" column="app_validation_data" />
|
|
|
+ <result property="riskEvaluationIndex" column="risk_evaluation_index" />
|
|
|
+ <result property="resistanceValue" column="resistance_value" />
|
|
|
+ <result property="resistancePrecision" column="resistance_precision" />
|
|
|
+ <result property="resistanceTemperature" column="resistance_temperature" />
|
|
|
+ <result property="resistancePower" column="resistance_power" />
|
|
|
+ <result property="encapsulationMode" column="encapsulation_mode" />
|
|
|
+ <result property="capacitanceValue" column="capacitance_value" />
|
|
|
+ <result property="capacitanceLoss" column="capacitance_loss" />
|
|
|
+ <result property="temperatureCoefficient" column="temperature_coefficient" />
|
|
|
+ <result property="ratedVoltage" column="rated_voltage" />
|
|
|
+ <result property="inductance" column="inductance" />
|
|
|
+ <result property="qualityFactor" column="quality_factor" />
|
|
|
+ <result property="dcResistance" column="dc_resistance" />
|
|
|
+ <result property="ratedCurrent" column="rated_current" />
|
|
|
+ <result property="paramIfm" column="param_ifm" />
|
|
|
+ <result property="paramVrrm" column="param_vrrm" />
|
|
|
+ <result property="paramIfsm" column="param_ifsm" />
|
|
|
+ <result property="paramZz" column="param_zz" />
|
|
|
+ <result property="paramPcm" column="param_pcm" />
|
|
|
+ <result property="paramIcm" column="param_icm" />
|
|
|
+ <result property="paramVcbo" column="param_vcbo" />
|
|
|
+ <result property="paramVceo" column="param_vceo" />
|
|
|
+ <result property="paramVebo" column="param_vebo" />
|
|
|
+ <result property="paramVdss" column="param_vdss" />
|
|
|
+ <result property="paramId" column="param_id" />
|
|
|
+ <result property="paramRdsOn" column="param_RDS_on" />
|
|
|
+ <result property="boundaryDimension" column="boundary_dimension" />
|
|
|
+ <result property="antistaticCapacity" column="antistatic_capacity" />
|
|
|
+ <result property="radiationResistance" column="radiation_resistance" />
|
|
|
+ <result property="materials" column="materials" />
|
|
|
+ <result property="craft" column="craft" />
|
|
|
+ <result property="weight" column="weight" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<sql id="selectTEvaluationVo">
|
|
|
select id, search_condition, component_id, mark, used_by, create_by, create_time, update_by, update_time, remark,use_scene from t_evaluation
|
|
|
</sql>
|
|
@@ -35,7 +95,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="selectTEvaluationListbymark" parameterType="TEvaluation" resultType="java.lang.Long">
|
|
|
+
|
|
|
+ <select id="selectTEvaluationListbymark" parameterType="TEvaluation" resultMap="TElectronComponentResult">
|
|
|
+ select * from t_electron_component where id in (
|
|
|
SELECT DISTINCT component_id
|
|
|
FROM (
|
|
|
SELECT component_id
|
|
@@ -47,8 +109,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="useScene != null"> and use_scene = #{useScene}</if>
|
|
|
</where>
|
|
|
ORDER BY create_time DESC
|
|
|
- )AS subquery
|
|
|
-
|
|
|
+ ) AS evaluation
|
|
|
+ )
|
|
|
</select>
|
|
|
|
|
|
|