|
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="faultTreePath" column="fault_tree_path" />
|
|
|
<result property="faultPicturePath" column="fault_picture_path" />
|
|
|
<result property="troubleshootingMethodPath" column="troubleshooting_method_path" />
|
|
|
+ <result property="viewCount" column="view_count" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -21,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFaultCaseVo">
|
|
|
- select id, aircraft_type_id, aircraft_system_id, aircraft_subsystem_id, fault_phenomenon, fault_cause, fault_tree_path, fault_picture_path, troubleshooting_method_path, create_by, create_time, update_by, update_time from biz_fault_case
|
|
|
+ select id, aircraft_type_id, aircraft_system_id, aircraft_subsystem_id, fault_phenomenon, fault_cause, fault_tree_path, fault_picture_path, troubleshooting_method_path, view_count, create_by, create_time, update_by, update_time from biz_fault_case
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFaultCaseList" parameterType="FaultCase" resultMap="FaultCaseResult">
|
|
@@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="faultTreePath != null and faultTreePath != ''"> and fault_tree_path = #{faultTreePath}</if>
|
|
|
<if test="faultPicturePath != null and faultPicturePath != ''"> and fault_picture_path = #{faultPicturePath}</if>
|
|
|
<if test="troubleshootingMethodPath != null and troubleshootingMethodPath != ''"> and troubleshooting_method_path = #{troubleshootingMethodPath}</if>
|
|
|
+ <if test="viewCount != null "> and view_count = #{viewCount}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -54,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="faultTreePath != null">fault_tree_path,</if>
|
|
|
<if test="faultPicturePath != null">fault_picture_path,</if>
|
|
|
<if test="troubleshootingMethodPath != null">troubleshooting_method_path,</if>
|
|
|
+ <if test="viewCount != null">view_count,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -68,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="faultTreePath != null">#{faultTreePath},</if>
|
|
|
<if test="faultPicturePath != null">#{faultPicturePath},</if>
|
|
|
<if test="troubleshootingMethodPath != null">#{troubleshootingMethodPath},</if>
|
|
|
+ <if test="viewCount != null">#{viewCount},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -86,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="faultTreePath != null">fault_tree_path = #{faultTreePath},</if>
|
|
|
<if test="faultPicturePath != null">fault_picture_path = #{faultPicturePath},</if>
|
|
|
<if test="troubleshootingMethodPath != null">troubleshooting_method_path = #{troubleshootingMethodPath},</if>
|
|
|
+ <if test="viewCount != null">view_count = #{viewCount},</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>
|