src/main/resources/mapper/technology/TechnologyOperationParamMapper.xml
@@ -10,4 +10,24 @@
        <result column="standard_value" property="standardValue" />
    </resultMap>
    <select id="listOperationParam" resultType="com.ruoyi.technology.bean.vo.TechnologyOperationParamVo">
        select top1.*,
               tp.param_code as paramCode,
               tp.param_name as paramName,
               tp.param_type as paramType,
               tp.param_format as paramFormat,
               tp.unit,
               tp.is_required as isRequired
        from technology_operation_param top1
        left join technology_param tp on top1.technology_param_id = tp.id
        <where>
            <if test="technologyOperationId != null">
                and top1.technology_operation_id = #{technologyOperationId}
            </if>
            <if test="paramId != null">
                and top1.technology_param_id = #{paramId}
            </if>
        </where>
        order by top1.id asc
    </select>
</mapper>