|
@@ -9,6 +9,7 @@
|
|
|
<result property="name" column="name" />
|
|
|
<result property="number" column="number" />
|
|
|
<result property="fleetId" column="fleet_id" />
|
|
|
+ <result property="aircraftTypeId" column="aircraft_type_id" />
|
|
|
<result property="isDelete" column="is_delete" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
@@ -17,7 +18,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAircraftVo">
|
|
|
- select id, name, number, fleet_id, is_delete, create_by, create_time, update_by, update_time from phm_aircraft
|
|
|
+ select id, name, number, fleet_id, aircraft_type_id, is_delete, create_by, create_time, update_by, update_time from phm_aircraft
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectAircraftList" parameterType="Aircraft" resultMap="AircraftResult">
|
|
@@ -26,6 +27,7 @@
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
<if test="number != null and number != ''"> and number like concat('%', #{number}, '%')</if>
|
|
|
<if test="fleetId != null and fleetId != ''"> and fleet_id = #{fleetId}</if>
|
|
|
+ <if test="aircraftTypeId != null and aircraftTypeId != ''"> and aircraft_type_id = #{aircraftTypeId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -40,6 +42,7 @@
|
|
|
<if test="name != null">name,</if>
|
|
|
<if test="number != null">number,</if>
|
|
|
<if test="fleetId != null">fleet_id,</if>
|
|
|
+ <if test="aircraftTypeId != null">aircraft_type_id,</if>
|
|
|
<if test="isDelete != null">is_delete,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
@@ -50,6 +53,7 @@
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="number != null">#{number},</if>
|
|
|
<if test="fleetId != null">#{fleetId},</if>
|
|
|
+ <if test="aircraftTypeId != null">#{aircraftTypeId},</if>
|
|
|
<if test="isDelete != null">#{isDelete},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
@@ -64,6 +68,7 @@
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
<if test="number != null">number = #{number},</if>
|
|
|
<if test="fleetId != null">fleet_id = #{fleetId},</if>
|
|
|
+ <if test="aircraftTypeId != null">aircraft_type_id = #{aircraftTypeId},</if>
|
|
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|