|
@@ -0,0 +1,173 @@
|
|
|
+<?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="com.kgraph.graph.aircraftparameters.mapper.AircraftParameterManagementMapper">
|
|
|
+ <resultMap type="AircraftParameterManagement" id="AircraftParameterManagementResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="typeId" column="type_id" />
|
|
|
+ <result property="aircraftId" column="aircraft_id" />
|
|
|
+ <result property="sortie" column="sortie" />
|
|
|
+ <result property="flyDate" column="fly_date" />
|
|
|
+ <result property="airparaPath" column="airpara_path" />
|
|
|
+ <result property="airparaState" column="airpara_state" />
|
|
|
+ <result property="airparaStarttime" column="airpara_starttime" />
|
|
|
+ <result property="airparaEndtime" column="airpara_endtime" />
|
|
|
+ <result property="airparaTime" column="airpara_time" />
|
|
|
+ <result property="pretreatmentPath" column="pretreatment_path" />
|
|
|
+ <result property="pretreatmentState" column="pretreatment_state" />
|
|
|
+ <result property="pretreatmentStarttime" column="pretreatment_starttime" />
|
|
|
+ <result property="pretreatmentEndtime" column="pretreatment_endtime" />
|
|
|
+ <result property="pretreatmentTime" column="pretreatment_time" />
|
|
|
+ <result property="healthfactorsPath" column="healthfactors_path" />
|
|
|
+ <result property="healthfactorsState" column="healthfactors_state" />
|
|
|
+ <result property="healthfactorsStarttime" column="healthfactors_starttime" />
|
|
|
+ <result property="healthfactorsEndtime" column="healthfactors_endtime" />
|
|
|
+ <result property="healthfactorsTime" column="healthfactors_time" />
|
|
|
+ <result property="systemhealthPath" column="systemhealth_path" />
|
|
|
+ <result property="systemhealthState" column="systemhealth_state" />
|
|
|
+ <result property="systemhealthStarttime" column="systemhealth_starttime" />
|
|
|
+ <result property="systemhealthEndtime" column="systemhealth_endtime" />
|
|
|
+ <result property="systemhealthTime" column="systemhealth_time" />
|
|
|
+ <result property="state" column="state" />
|
|
|
+ <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="selectAircraftParameterManagementVo">
|
|
|
+ select id, type_id, aircraft_id, sortie, fly_date, airpara_path, airpara_state, airpara_starttime, airpara_endtime, airpara_time, pretreatment_path, pretreatment_state, pretreatment_starttime, pretreatment_endtime, pretreatment_time, healthfactors_path, healthfactors_state, healthfactors_starttime, healthfactors_endtime, healthfactors_time, systemhealth_path, systemhealth_state, systemhealth_starttime, systemhealth_endtime, systemhealth_time, state, create_by, create_time, update_by, update_time, remark from aircraft_parameter_management
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectAircraftParameterManagementList" parameterType="AircraftParameterManagement" resultMap="AircraftParameterManagementResult">
|
|
|
+ <include refid="selectAircraftParameterManagementVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="typeId != null and typeId != ''"> and type_id like concat('%', #{typeId}, '%')</if>
|
|
|
+ <if test="aircraftId != null and aircraftId != ''"> and aircraft_id like concat('%', #{aircraftId}, '%')</if>
|
|
|
+ <if test="sortie != null and sortie != ''"> and sortie like concat('%', #{sortie}, '%')</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectAircraftParameterManagementById" parameterType="Long" resultMap="AircraftParameterManagementResult">
|
|
|
+ <include refid="selectAircraftParameterManagementVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertAircraftParameterManagement" parameterType="AircraftParameterManagement" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into aircraft_parameter_management
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="typeId != null">type_id,</if>
|
|
|
+ <if test="aircraftId != null">aircraft_id,</if>
|
|
|
+ <if test="sortie != null">sortie,</if>
|
|
|
+ <if test="flyDate != null">fly_date,</if>
|
|
|
+ <if test="airparaPath != null">airpara_path,</if>
|
|
|
+ <if test="airparaState != null">airpara_state,</if>
|
|
|
+ <if test="airparaStarttime != null">airpara_starttime,</if>
|
|
|
+ <if test="airparaEndtime != null">airpara_endtime,</if>
|
|
|
+ <if test="airparaTime != null">airpara_time,</if>
|
|
|
+ <if test="pretreatmentPath != null">pretreatment_path,</if>
|
|
|
+ <if test="pretreatmentState != null">pretreatment_state,</if>
|
|
|
+ <if test="pretreatmentStarttime != null">pretreatment_starttime,</if>
|
|
|
+ <if test="pretreatmentEndtime != null">pretreatment_endtime,</if>
|
|
|
+ <if test="pretreatmentTime != null">pretreatment_time,</if>
|
|
|
+ <if test="healthfactorsPath != null">healthfactors_path,</if>
|
|
|
+ <if test="healthfactorsState != null">healthfactors_state,</if>
|
|
|
+ <if test="healthfactorsStarttime != null">healthfactors_starttime,</if>
|
|
|
+ <if test="healthfactorsEndtime != null">healthfactors_endtime,</if>
|
|
|
+ <if test="healthfactorsTime != null">healthfactors_time,</if>
|
|
|
+ <if test="systemhealthPath != null">systemhealth_path,</if>
|
|
|
+ <if test="systemhealthState != null">systemhealth_state,</if>
|
|
|
+ <if test="systemhealthStarttime != null">systemhealth_starttime,</if>
|
|
|
+ <if test="systemhealthEndtime != null">systemhealth_endtime,</if>
|
|
|
+ <if test="systemhealthTime != null">systemhealth_time,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
+ <if test="state != null">state,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="typeId != null">#{typeId},</if>
|
|
|
+ <if test="aircraftId != null">#{aircraftId},</if>
|
|
|
+ <if test="sortie != null">#{sortie},</if>
|
|
|
+ <if test="flyDate != null">#{flyDate},</if>
|
|
|
+ <if test="airparaPath != null">#{airparaPath},</if>
|
|
|
+ <if test="airparaState != null">#{airparaState},</if>
|
|
|
+ <if test="airparaStarttime != null">#{airparaStarttime},</if>
|
|
|
+ <if test="airparaEndtime != null">#{airparaEndtime},</if>
|
|
|
+ <if test="airparaTime != null">#{airparaTime},</if>
|
|
|
+ <if test="pretreatmentPath != null">#{pretreatmentPath},</if>
|
|
|
+ <if test="pretreatmentState != null">#{pretreatmentState},</if>
|
|
|
+ <if test="pretreatmentStarttime != null">#{pretreatmentStarttime},</if>
|
|
|
+ <if test="pretreatmentEndtime != null">#{pretreatmentEndtime},</if>
|
|
|
+ <if test="pretreatmentTime != null">#{pretreatmentTime},</if>
|
|
|
+ <if test="healthfactorsPath != null">#{healthfactorsPath},</if>
|
|
|
+ <if test="healthfactorsState != null">#{healthfactorsState},</if>
|
|
|
+ <if test="healthfactorsStarttime != null">#{healthfactorsStarttime},</if>
|
|
|
+ <if test="healthfactorsEndtime != null">#{healthfactorsEndtime},</if>
|
|
|
+ <if test="healthfactorsTime != null">#{healthfactorsTime},</if>
|
|
|
+ <if test="systemhealthPath != null">#{systemhealthPath},</if>
|
|
|
+ <if test="systemhealthState != null">#{systemhealthState},</if>
|
|
|
+ <if test="systemhealthStarttime != null">#{systemhealthStarttime},</if>
|
|
|
+ <if test="systemhealthEndtime != null">#{systemhealthEndtime},</if>
|
|
|
+ <if test="systemhealthTime != null">#{systemhealthTime},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
+ <if test="state != null">#{state},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateAircraftParameterManagement" parameterType="AircraftParameterManagement">
|
|
|
+ update aircraft_parameter_management
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="typeId != null">type_id = #{typeId},</if>
|
|
|
+ <if test="aircraftId != null">aircraft_id = #{aircraftId},</if>
|
|
|
+ <if test="sortie != null">sortie = #{sortie},</if>
|
|
|
+ <if test="flyDate != null">fly_date = #{flyDate},</if>
|
|
|
+ <if test="airparaPath != null">airpara_path = #{airparaPath},</if>
|
|
|
+ <if test="airparaState != null">airpara_state = #{airparaState},</if>
|
|
|
+ <if test="airparaStarttime != null">airpara_starttime = #{airparaStarttime},</if>
|
|
|
+ <if test="airparaEndtime != null">airpara_endtime = #{airparaEndtime},</if>
|
|
|
+ <if test="airparaTime != null">airpara_time = #{airparaTime},</if>
|
|
|
+ <if test="pretreatmentPath != null">pretreatment_path = #{pretreatmentPath},</if>
|
|
|
+ <if test="pretreatmentState != null">pretreatment_state = #{pretreatmentState},</if>
|
|
|
+ <if test="pretreatmentStarttime != null">pretreatment_starttime = #{pretreatmentStarttime},</if>
|
|
|
+ <if test="pretreatmentEndtime != null">pretreatment_endtime = #{pretreatmentEndtime},</if>
|
|
|
+ <if test="pretreatmentTime != null">pretreatment_time = #{pretreatmentTime},</if>
|
|
|
+ <if test="healthfactorsPath != null">healthfactors_path = #{healthfactorsPath},</if>
|
|
|
+ <if test="healthfactorsState != null">healthfactors_state = #{healthfactorsState},</if>
|
|
|
+ <if test="healthfactorsStarttime != null">healthfactors_starttime = #{healthfactorsStarttime},</if>
|
|
|
+ <if test="healthfactorsEndtime != null">healthfactors_endtime = #{healthfactorsEndtime},</if>
|
|
|
+ <if test="healthfactorsTime != null">healthfactors_time = #{healthfactorsTime},</if>
|
|
|
+ <if test="systemhealthPath != null">systemhealth_path = #{systemhealthPath},</if>
|
|
|
+ <if test="systemhealthState != null">systemhealth_state = #{systemhealthState},</if>
|
|
|
+ <if test="systemhealthStarttime != null">systemhealth_starttime = #{systemhealthStarttime},</if>
|
|
|
+ <if test="systemhealthEndtime != null">systemhealth_endtime = #{systemhealthEndtime},</if>
|
|
|
+ <if test="systemhealthTime != null">systemhealth_time = #{systemhealthTime},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="state != null">state= #{state},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteAircraftParameterManagementById" parameterType="Long">
|
|
|
+ delete from aircraft_parameter_management where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteAircraftParameterManagementByIds" parameterType="String">
|
|
|
+ delete from aircraft_parameter_management where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|