root 2 yıl önce
ebeveyn
işleme
7a4a3c5581

+ 102 - 27
simulation-resource-server/src/main/resources/mapper/model/VehicleMapper.xml

@@ -213,7 +213,7 @@
                 #{createUserId,jdbcType=VARCHAR},
                 #{modifyUserId,jdbcType=VARCHAR},
                 #{isDeleted,jdbcType=VARCHAR},
-                #{parameter_type},
+                #{parameterType},
                 #{wheelCenterToGround},
                 #{centroidToFrontWheelCenter},
                 #{centroidToGround},
@@ -293,32 +293,107 @@
 
     <update id="update" parameterType="api.common.pojo.po.model.VehiclePO">
         update model_vehicle
-        set vehicle_name                   = #{vehicleName,jdbcType=VARCHAR},
-            description                    = #{description,jdbcType=VARCHAR},
-            vehicle_type                   = #{vehicleType,jdbcType=VARCHAR},
-            model_label                    = #{modelLabel,jdbcType=VARCHAR},
-            vehicle_front_view             = #{vehicleFrontView,jdbcType=VARCHAR},
-            vehicle_top_view               = #{vehicleTopView,jdbcType=VARCHAR},
-            max_speed                      = #{maxSpeed,jdbcType=DECIMAL},
-            engine_power                   = #{enginePower,jdbcType=DECIMAL},
-            max_deceleration               = #{maxDeceleration,jdbcType=DECIMAL},
-            max_steering_angle             = #{maxSteeringAngle,jdbcType=DECIMAL},
-            mass                           = #{mass,jdbcType=DECIMAL},
-            front_surface_effective        = #{frontSurfaceEffective,jdbcType=DECIMAL},
-            air_drag_coefficient           = #{airDragCoefficient,jdbcType=DECIMAL},
-            rolling_resistance_coefficient = #{rollingResistanceCoefficient,jdbcType=DECIMAL},
-            wheel_diameter                 = #{wheelDiameter,jdbcType=DECIMAL},
-            wheel_drive                    = #{wheelDrive,jdbcType=VARCHAR},
-            overall_efficiency             = #{overallEfficiency,jdbcType=DECIMAL},
-            front_distance                 = #{frontDistance,jdbcType=DECIMAL},
-            rear_distance                  = #{rearDistance,jdbcType=DECIMAL},
-            left_distance                  = #{leftDistance,jdbcType=DECIMAL},
-            right_distance                 = #{rightDistance,jdbcType=DECIMAL},
-            height_distance                = #{heightDistance,jdbcType=DECIMAL},
-            wheelbase                      = #{wheelbase,jdbcType=DECIMAL},
-
-            modify_time                    = #{modifyTime,jdbcType=TIMESTAMP},
-            modify_user_id                 = #{modifyUserId,jdbcType=VARCHAR}
+        set vehicle_name                                                      = #{vehicleName,jdbcType=VARCHAR},
+            description                                                       = #{description,jdbcType=VARCHAR},
+            vehicle_type                                                      = #{vehicleType,jdbcType=VARCHAR},
+            model_label                                                       = #{modelLabel,jdbcType=VARCHAR},
+            vehicle_front_view                                                = #{vehicleFrontView,jdbcType=VARCHAR},
+            vehicle_top_view                                                  = #{vehicleTopView,jdbcType=VARCHAR},
+            max_speed                                                         = #{maxSpeed,jdbcType=DECIMAL},
+            engine_power                                                      = #{enginePower,jdbcType=DECIMAL},
+            max_deceleration                                                  = #{maxDeceleration,jdbcType=DECIMAL},
+            max_steering_angle                                                = #{maxSteeringAngle,jdbcType=DECIMAL},
+            mass                                                              = #{mass,jdbcType=DECIMAL},
+            front_surface_effective                                           = #{frontSurfaceEffective,jdbcType=DECIMAL},
+            air_drag_coefficient                                              = #{airDragCoefficient,jdbcType=DECIMAL},
+            rolling_resistance_coefficient                                    = #{rollingResistanceCoefficient,jdbcType=DECIMAL},
+            wheel_diameter                                                    = #{wheelDiameter,jdbcType=DECIMAL},
+            wheel_drive                                                       = #{wheelDrive,jdbcType=VARCHAR},
+            overall_efficiency                                                = #{overallEfficiency,jdbcType=DECIMAL},
+            front_distance                                                    = #{frontDistance,jdbcType=DECIMAL},
+            rear_distance                                                     = #{rearDistance,jdbcType=DECIMAL},
+            left_distance                                                     = #{leftDistance,jdbcType=DECIMAL},
+            right_distance                                                    = #{rightDistance,jdbcType=DECIMAL},
+            height_distance                                                   = #{heightDistance,jdbcType=DECIMAL},
+            wheelbase                                                         = #{wheelbase,jdbcType=DECIMAL},
+            modify_time                                                       = #{modifyTime,jdbcType=TIMESTAMP},
+            modify_user_id                                                    = #{modifyUserId,jdbcType=VARCHAR},
+            parameterType                                                     = #{parameterType},
+            wheelCenterToGround                                               = #{wheelCenterToGround},
+            centroidToFrontWheelCenter                                        = #{centroidToFrontWheelCenter},
+            centroidToGround                                                  = #{centroidToGround},
+            sprungMass                                                        = #{sprungMass},
+            vehicleWidth                                                      = #{vehicleWidth},
+            rotationalInertiaX                                                = #{rotationalInertiaX},
+            rotationalInertiaY                                                = #{rotationalInertiaY},
+            rotationalInertiaZ                                                = #{rotationalInertiaZ},
+            frontLeftWheelEffectiveRollingRadius                              = #{frontLeftWheelEffectiveRollingRadius},
+            frontLeftWheelRollingResistanceCoefficient                        = #{frontLeftWheelRollingResistanceCoefficient},
+            frontLeftWheelFreeRadius                                          = #{frontLeftWheelFreeRadius},
+            frontLeftWheelRelationCurvePositiveMomentAndSideslipAngle     = #{frontLeftWheelRelationCurvePositiveMomentAndSideslipAngleJson},
+            frontLeftWheelRelationCurveLateralForceAndSideslipAngle       = #{frontLeftWheelRelationCurveLateralForceAndSideslipAngleJson},
+            frontLeftWheelRelationCurveLongitudinalForceAndSideslipAngle  = #{frontLeftWheelRelationCurveLongitudinalForceAndSideslipAngleJson},
+            rearLeftWheelEffectiveRollingRadius                               = #{rearLeftWheelEffectiveRollingRadius},
+            rearLeftWheelRollingResistanceCoefficient                         = #{rearLeftWheelRollingResistanceCoefficient},
+            rearLeftWheelFreeRadius                                           = #{rearLeftWheelFreeRadius},
+            rearLeftWheelRelationCurvePositiveMomentAndSideslipAngle      = #{rearLeftWheelRelationCurvePositiveMomentAndSideslipAngleJson},
+            rearLeftWheelRelationCurveLateralForceAndSideslipAngle        = #{rearLeftWheelRelationCurveLateralForceAndSideslipAngleJson},
+            rearLeftWheelRelationCurveLongitudinalForceAndSideslipAngle   = #{rearLeftWheelRelationCurveLongitudinalForceAndSideslipAngleJson},
+            frontRightWheelEffectiveRollingRadius                             = #{frontRightWheelEffectiveRollingRadius},
+            frontRightWheelRollingResistanceCoefficient                       = #{frontRightWheelRollingResistanceCoefficient},
+            frontRightWheelFreeRadius                                         = #{frontRightWheelFreeRadius},
+            frontRightWheelRelationCurvePositiveMomentAndSideslipAngle    = #{frontRightWheelRelationCurvePositiveMomentAndSideslipAngleJson},
+            frontRightWheelRelationCurveLateralForceAndSideslipAngle      = #{frontRightWheelRelationCurveLateralForceAndSideslipAngleJson},
+            frontRightWheelRelationCurveLongitudinalForceAndSideslipAngle = #{frontRightWheelRelationCurveLongitudinalForceAndSideslipAngleJson},
+            rearRightWheelEffectiveRollingRadius                              = #{rearRightWheelEffectiveRollingRadius},
+            rearRightWheelRollingResistanceCoefficient                        = #{rearRightWheelRollingResistanceCoefficient},
+            rearRightWheelFreeRadius                                          = #{rearRightWheelFreeRadius},
+            rearRightWheelRelationCurvePositiveMomentAndSideslipAngle     = #{rearRightWheelRelationCurvePositiveMomentAndSideslipAngleJson},
+            rearRightWheelRelationCurveLateralForceAndSideslipAngle       = #{rearRightWheelRelationCurveLateralForceAndSideslipAngleJson},
+            rearRightWheelRelationCurveLongitudinalForceAndSideslipAngle  = #{rearRightWheelRelationCurveLongitudinalForceAndSideslipAngleJson},
+            frontWheelSuspensionType                                          = #{frontWheelSuspensionType},
+            frontWheelSuspensionKinematicsCoefficient                         = #{frontWheelSuspensionKinematicsCoefficient},
+            frontWheelUnsprungMass                                            = #{frontWheelUnsprungMass},
+            frontWheelTrackWidth                                              = #{frontWheelTrackWidth},
+            rearWheelSuspensionType                                           = #{rearWheelSuspensionType},
+            rearWheelSuspensionKinematicsCoefficient                          = #{rearWheelSuspensionKinematicsCoefficient},
+            rearWheelUnsprungMass                                             = #{rearWheelUnsprungMass},
+            rearWheelTrackWidth                                               = #{rearWheelTrackWidth},
+            windwardArea                                                      = #{windwardArea},
+            airDensity                                                        = #{airDensity},
+            engineCrankshaftMomentInertia                                     = #{engineCrankshaftMomentInertia},
+            idleSpeed                                                         = #{idleSpeed},
+            relationCurveEngineTorqueSpeedAndThrottleOpening              = #{relationCurveEngineTorqueSpeedAndThrottleOpeningJson},
+            momentInertiaInputShaft                                           = #{momentInertiaInputShaft},
+            momentInertiaOutputShaft                                          = #{momentInertiaOutputShaft},
+            finalDriveRatio                                                   = #{finalDriveRatio},
+            transmissionEfficiency                                            = #{transmissionEfficiency},
+            gearRatio                                                     = #{gearRatioJson},
+            inertia                                                       = #{inertiaJson},
+            driving                                                       = #{drivingJson},
+            coasting                                                      = #{coastingJson},
+            shiftTime                                                         = #{shiftTime},
+            shiftTimeUp12                                                 = #{shiftTimeUp12Json},
+            shiftTimeDown12                                               = #{shiftTimeDown12Json},
+            shiftTimeUp23                                                 = #{shiftTimeUp23Json},
+            shiftTimeDown23                                               = #{shiftTimeDown23Json},
+            shiftTimeUp34                                                 = #{shiftTimeUp34Json},
+            shiftTimeDown34                                               = #{shiftTimeDown34Json},
+            shiftTimeUp45                                                 = #{shiftTimeUp45Json},
+            shiftTimeDown45                                               = #{shiftTimeDown45Json},
+            shiftTimeUp56                                                 = #{shiftTimeUp56Json},
+            shiftTimeDown56                                               = #{shiftTimeDown56Json},
+            brakeType                                                         = #{brakeType},
+            frontLeftWheelBrakingTorque                                       = #{frontLeftWheelBrakingTorque},
+            rearLeftWheelBrakingTorque                                        = #{rearLeftWheelBrakingTorque},
+            frontRightWheelBrakingTorque                                      = #{frontRightWheelBrakingTorque},
+            rearRightWheelBrakingTorque                                       = #{rearRightWheelBrakingTorque},
+            steeringType                                                      = #{steeringType},
+            steeringGearType                                                  = #{steeringGearType},
+            steeringGearRatio                                                 = #{steeringGearRatio},
+            relationCurveRightWheelAngleAndSteeringGearOutput                 = #{relationCurveRightWheelAngleAndSteeringGearOutput},
+            relationCurveLeftWheelAngleAndSteeringGearOutput                  = #{relationCurveLeftWheelAngleAndSteeringGearOutput},
+            wheelCenterToTop                                                  = #{wheelCenterToTop}
         where id = #{id,jdbcType=VARCHAR}
     </update>