|
@@ -9,6 +9,7 @@
|
|
<result property="parentFaultId" column="parent_fault_id"/>
|
|
<result property="parentFaultId" column="parent_fault_id"/>
|
|
<result property="simType" column="sim_type"/>
|
|
<result property="simType" column="sim_type"/>
|
|
<result property="faultType" column="fault_type"/>
|
|
<result property="faultType" column="fault_type"/>
|
|
|
|
+ <result property="faultState" column="fault_state"/>
|
|
<result property="conflictFaultIds" column="conflict_fault_ids"/>
|
|
<result property="conflictFaultIds" column="conflict_fault_ids"/>
|
|
<result property="replacePart" column="replace_part"/>
|
|
<result property="replacePart" column="replace_part"/>
|
|
<result property="replaceName" column="replace_name"/>
|
|
<result property="replaceName" column="replace_name"/>
|
|
@@ -27,6 +28,7 @@
|
|
parent_fault_id,
|
|
parent_fault_id,
|
|
sim_type,
|
|
sim_type,
|
|
fault_type,
|
|
fault_type,
|
|
|
|
+ fault_state,
|
|
conflict_fault_ids,
|
|
conflict_fault_ids,
|
|
replace_part,
|
|
replace_part,
|
|
replace_name,
|
|
replace_name,
|
|
@@ -47,6 +49,7 @@
|
|
<if test="parentFaultId != null and parentFaultId != ''">and parent_fault_id = #{parentFaultId}</if>
|
|
<if test="parentFaultId != null and parentFaultId != ''">and parent_fault_id = #{parentFaultId}</if>
|
|
<if test="simType != null and simType != ''">and sim_type = #{simType}</if>
|
|
<if test="simType != null and simType != ''">and sim_type = #{simType}</if>
|
|
<if test="faultType != null and faultType != ''">and fault_type = #{faultType}</if>
|
|
<if test="faultType != null and faultType != ''">and fault_type = #{faultType}</if>
|
|
|
|
+ <if test="faultState != null and faultState != ''">and fault_state = #{faultState}</if>
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">and conflict_fault_ids =
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">and conflict_fault_ids =
|
|
#{conflictFaultIds}
|
|
#{conflictFaultIds}
|
|
</if>
|
|
</if>
|
|
@@ -67,12 +70,16 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insertFault" parameterType="Fault">
|
|
<insert id="insertFault" parameterType="Fault">
|
|
|
|
+ <selectKey keyProperty="faultId" order="AFTER" resultType="java.lang.String">
|
|
|
|
+ select LAST_INSERT_ID()
|
|
|
|
+ </selectKey>
|
|
insert into sim_fault
|
|
insert into sim_fault
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="faultId != null">fault_id,</if>
|
|
<if test="faultId != null">fault_id,</if>
|
|
<if test="parentFaultId != null and parentFaultId != ''">parent_fault_id,</if>
|
|
<if test="parentFaultId != null and parentFaultId != ''">parent_fault_id,</if>
|
|
<if test="simType != null and simType != ''">sim_type,</if>
|
|
<if test="simType != null and simType != ''">sim_type,</if>
|
|
<if test="faultType != null">fault_type,</if>
|
|
<if test="faultType != null">fault_type,</if>
|
|
|
|
+ <if test="faultState != null">fault_state,</if>
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">conflict_fault_ids,</if>
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">conflict_fault_ids,</if>
|
|
<if test="replacePart != null">replace_part,</if>
|
|
<if test="replacePart != null">replace_part,</if>
|
|
<if test="replaceName != null">replace_name,</if>
|
|
<if test="replaceName != null">replace_name,</if>
|
|
@@ -90,6 +97,7 @@
|
|
<if test="parentFaultId != null and parentFaultId != ''">#{parentFaultId},</if>
|
|
<if test="parentFaultId != null and parentFaultId != ''">#{parentFaultId},</if>
|
|
<if test="simType != null and simType != ''">#{simType},</if>
|
|
<if test="simType != null and simType != ''">#{simType},</if>
|
|
<if test="faultType != null">#{faultType},</if>
|
|
<if test="faultType != null">#{faultType},</if>
|
|
|
|
+ <if test="faultState != null">#{faultState},</if>
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">#{conflictFaultIds},</if>
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">#{conflictFaultIds},</if>
|
|
<if test="replacePart != null">#{replacePart},</if>
|
|
<if test="replacePart != null">#{replacePart},</if>
|
|
<if test="replaceName != null">#{replaceName},</if>
|
|
<if test="replaceName != null">#{replaceName},</if>
|
|
@@ -110,6 +118,7 @@
|
|
<if test="parentFaultId != null and parentFaultId != ''">parent_fault_id = #{parentFaultId},</if>
|
|
<if test="parentFaultId != null and parentFaultId != ''">parent_fault_id = #{parentFaultId},</if>
|
|
<if test="simType != null and simType != ''">sim_type = #{simType},</if>
|
|
<if test="simType != null and simType != ''">sim_type = #{simType},</if>
|
|
<if test="faultType != null">fault_type = #{faultType},</if>
|
|
<if test="faultType != null">fault_type = #{faultType},</if>
|
|
|
|
+ <if test="faultState != null">fault_state = #{faultState},</if>
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">conflict_fault_ids = #{conflictFaultIds},
|
|
<if test="conflictFaultIds != null and conflictFaultIds != ''">conflict_fault_ids = #{conflictFaultIds},
|
|
</if>
|
|
</if>
|
|
<if test="replacePart != null">replace_part = #{replacePart},</if>
|
|
<if test="replacePart != null">replace_part = #{replacePart},</if>
|