|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="Model3d" id="Model3dResult">
|
|
<resultMap type="Model3d" id="Model3dResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="name" column="name" />
|
|
<result property="name" column="name" />
|
|
|
|
+ <result property="aircraftType" column="aircraft_type"/>
|
|
<result property="model3dFile" column="model_3d_file" />
|
|
<result property="model3dFile" column="model_3d_file" />
|
|
<result property="model3dFilePath" column="model_3d_file_path" />
|
|
<result property="model3dFilePath" column="model_3d_file_path" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
@@ -16,13 +17,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectModel3dVo">
|
|
<sql id="selectModel3dVo">
|
|
- select id, name, model_3d_file, model_3d_file_path, create_by, create_time, update_by, update_time from bz_model_3d_t
|
|
|
|
|
|
+ select id, name, aircraft_type,model_3d_file, model_3d_file_path, create_by, create_time, update_by, update_time from bz_model_3d_t
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectModel3dList" parameterType="Model3d" resultMap="Model3dResult">
|
|
<select id="selectModel3dList" parameterType="Model3d" resultMap="Model3dResult">
|
|
<include refid="selectModel3dVo"/>
|
|
<include refid="selectModel3dVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
+ <if test="aircraftType!= null and aircraftType!=''">and aircraft_type = #{aircraftType}</if>
|
|
<if test="model3dFile != null and model3dFile != ''"> and model_3d_file = #{model3dFile}</if>
|
|
<if test="model3dFile != null and model3dFile != ''"> and model_3d_file = #{model3dFile}</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''"> and model_3d_file_path = #{model3dFilePath}</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''"> and model_3d_file_path = #{model3dFilePath}</if>
|
|
</where>
|
|
</where>
|
|
@@ -37,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into bz_model_3d_t
|
|
insert into bz_model_3d_t
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
|
|
+ <if test="aircraftType != null and aircraftType!=''">aircraft_type,</if>
|
|
<if test="model3dFile != null and model3dFile != ''">model_3d_file,</if>
|
|
<if test="model3dFile != null and model3dFile != ''">model_3d_file,</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''">model_3d_file_path,</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''">model_3d_file_path,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -46,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
|
+ <if test="aircraftType!=null and aircraftType!=''">#{aircraftType},</if>
|
|
<if test="model3dFile != null and model3dFile != ''">#{model3dFile},</if>
|
|
<if test="model3dFile != null and model3dFile != ''">#{model3dFile},</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''">#{model3dFilePath},</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''">#{model3dFilePath},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -59,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update bz_model_3d_t
|
|
update bz_model_3d_t
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
|
|
+ <if test="aircraftType!=null and aircraftType!=''">aircraft_type=#{aircraftType},</if>
|
|
<if test="model3dFile != null and model3dFile != ''">model_3d_file = #{model3dFile},</if>
|
|
<if test="model3dFile != null and model3dFile != ''">model_3d_file = #{model3dFile},</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''">model_3d_file_path = #{model3dFilePath},</if>
|
|
<if test="model3dFilePath != null and model3dFilePath != ''">model_3d_file_path = #{model3dFilePath},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|