|
@@ -2,18 +2,24 @@
|
2
|
2
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
3
|
3
|
|
4
|
4
|
<mapper namespace="com.example.civilizedcity.mapper.TaIssueApplyMapper">
|
|
5
|
+ <update id="removeByIssueId">
|
|
6
|
+ UPDATE ta_issue_apply t
|
|
7
|
+ SET t.status =-1
|
|
8
|
+ WHERE
|
|
9
|
+ t.issue_id = #{issueId};
|
|
10
|
+ </update>
|
5
|
11
|
|
6
|
12
|
<select id="getPageBy" resultType="com.example.civilizedcity.entity.TaIssueApply">
|
7
|
13
|
SELECT
|
8
|
|
- t.*,
|
9
|
|
- s.content AS issue_content,
|
10
|
|
- s.addr AS issue_addr
|
|
14
|
+ t.*,
|
|
15
|
+ s.content AS issue_content,
|
|
16
|
+ s.addr AS issue_addr
|
11
|
17
|
FROM
|
12
|
|
- ta_issue_apply t
|
13
|
|
- INNER JOIN ta_issue s ON t.issue_id = s.issue_id
|
|
18
|
+ ta_issue_apply t
|
|
19
|
+ INNER JOIN ta_issue s ON t.issue_id = s.issue_id
|
14
|
20
|
WHERE
|
15
|
|
- t.`status` > -1
|
16
|
|
- AND s.`status` > -1
|
|
21
|
+ t.`status` > -1
|
|
22
|
+ <!-- AND s.`status` > -1-->
|
17
|
23
|
<if test="issueId != null">
|
18
|
24
|
AND t.issue_id = #{issueId}
|
19
|
25
|
</if>
|
|
@@ -21,7 +27,7 @@
|
21
|
27
|
AND t.apply_type = #{applyType}
|
22
|
28
|
</if>
|
23
|
29
|
<if test="orgId != null and orgId != ''">
|
24
|
|
- AND t.org_id = #{orgId}
|
|
30
|
+ AND t.org_id = #{orgId}
|
25
|
31
|
</if>
|
26
|
32
|
<if test="sourceType != null and sourceType == 'feedback'">
|
27
|
33
|
AND s.source_type = 'feedback'
|
|
@@ -33,7 +39,7 @@
|
33
|
39
|
AND t.verify_date is null
|
34
|
40
|
</if>
|
35
|
41
|
ORDER BY
|
36
|
|
- IFNULL(t.verify_status, -1) ASC,
|
37
|
|
- t.create_date DESC
|
|
42
|
+ IFNULL(t.verify_status, -1) ASC,
|
|
43
|
+ t.create_date DESC
|
38
|
44
|
</select>
|
39
|
45
|
</mapper>
|