|
@@ -60,13 +60,13 @@
|
|
|
FROM rectification
|
|
|
<where>
|
|
|
rectification.isdel = 0
|
|
|
- <if test="type != null and type != 0">
|
|
|
+ <if test="type != null">
|
|
|
AND question_type = #{type}
|
|
|
</if>
|
|
|
<if test="url != null and url != ''">
|
|
|
AND error_url LIKE CONCAT('%', #{url}, '%')
|
|
|
</if>
|
|
|
- <if test="status != null and status != 0">
|
|
|
+ <if test="status != null">
|
|
|
AND status = #{status}
|
|
|
</if>
|
|
|
<if test="submitter != null and submitter != ''">
|
|
@@ -78,7 +78,7 @@
|
|
|
<if test="phone != null and phone != ''">
|
|
|
AND phone LIKE CONCAT('%', #{phone}, '%')
|
|
|
</if>
|
|
|
- <if test="equipment != null and equipment != 0">
|
|
|
+ <if test="equipment != null">
|
|
|
AND equipment = #{equipment}
|
|
|
</if>
|
|
|
</where>
|
|
@@ -103,13 +103,13 @@
|
|
|
FROM rectification
|
|
|
<where>
|
|
|
rectification.isdel = 0
|
|
|
- <if test="type != null and type != 0">
|
|
|
+ <if test="type != null">
|
|
|
AND question_type = #{type}
|
|
|
</if>
|
|
|
<if test="url != null and url != ''">
|
|
|
AND error_url LIKE CONCAT('%', #{url}, '%')
|
|
|
</if>
|
|
|
- <if test="status != null and status != 0">
|
|
|
+ <if test="status != null">
|
|
|
AND status = #{status}
|
|
|
</if>
|
|
|
<if test="submitter != null and submitter != ''">
|
|
@@ -121,10 +121,11 @@
|
|
|
<if test="phone != null and phone != ''">
|
|
|
AND phone LIKE CONCAT('%', #{phone}, '%')
|
|
|
</if>
|
|
|
- <if test="equipment != null and equipment != 0">
|
|
|
+ <if test="equipment != null">
|
|
|
AND equipment = #{equipment}
|
|
|
</if>
|
|
|
</where>
|
|
|
+ ORDER BY status, create_time DESC
|
|
|
LIMIT #{startRows}, #{limit}
|
|
|
</select>
|
|
|
|
|
@@ -188,4 +189,18 @@
|
|
|
WHERE id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
+ <!--通过主键受理-->
|
|
|
+ <delete id="work">
|
|
|
+ UPDATE rectification
|
|
|
+ SET rectification.status = 1
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <!--通过主键办结-->
|
|
|
+ <delete id="finish">
|
|
|
+ UPDATE rectification
|
|
|
+ SET rectification.status = 2
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
</mapper>
|