linwe
2024-05-15 047ced202f052d70c50f4365b2d86810de076489
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.eCallEventTwo.mapper.EcCallEventTwoMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="eCallEventTwoResultMap" type="org.springblade.modules.eCallEventTwo.vo.ECallEventTwoVO">
    </resultMap>
 
 
    <select id="selectECallEventTwoPage" resultMap="eCallEventTwoResultMap">
        select * from jczz_e_call_event_two
        <where>
            <if test="eCallEventTwo.orderId != null "> and order_id = #{orderId}</if>
            <if test="eCallEventTwo.orderCode != null  and eCallEventTwo.orderCode != ''"> and order_code = #{orderCode}</if>
            <if test="eCallEventTwo.issueOrigin != null  and eCallEventTwo.issueOrigin != ''"> and issue_origin = #{issueOrigin}</if>
            <if test="eCallEventTwo.issueTitle != null  and eCallEventTwo.issueTitle != ''"> and issue_title = #{issueTitle}</if>
            <if test="eCallEventTwo.issueContent != null  and eCallEventTwo.issueContent != ''"> and issue_content = #{issueContent}</if>
            <if test="eCallEventTwo.applicantType != null  and eCallEventTwo.applicantType != ''"> and applicant_type = #{applicantType}</if>
            <if test="eCallEventTwo.applicantName != null  and eCallEventTwo.applicantName != ''"> and applicant_name = #{applicantName}</if>
            <if test="eCallEventTwo.applicantGender != null  and eCallEventTwo.applicantGender != ''"> and applicant_gender = #{applicantGender}</if>
            <if test="eCallEventTwo.applicantHomeaddr != null  and eCallEventTwo.applicantHomeaddr != ''"> and applicant_homeaddr = #{applicantHomeaddr}</if>
            <if test="eCallEventTwo.applicantPhone != null  and eCallEventTwo.applicantPhone != ''"> and applicant_phone = #{applicantPhone}</if>
            <if test="eCallEventTwo.applicantGrid != null  and eCallEventTwo.applicantGrid != ''"> and applicant_grid = #{applicantGrid}</if>
            <if test="eCallEventTwo.applicantDistrict != null  and eCallEventTwo.applicantDistrict != ''"> and applicant_district = #{applicantDistrict}</if>
            <if test="eCallEventTwo.sceneAddr != null  and eCallEventTwo.sceneAddr != ''"> and scene_addr = #{sceneAddr}</if>
            <if test="eCallEventTwo.sceneAddrGrid != null  and eCallEventTwo.sceneAddrGrid != ''"> and scene_addr_grid = #{sceneAddrGrid}</if>
            <if test="eCallEventTwo.sceneDistrict != null  and eCallEventTwo.sceneDistrict != ''"> and scene_district = #{sceneDistrict}</if>
            <if test="eCallEventTwo.scenePlace != null  and eCallEventTwo.scenePlace != ''"> and scene_place = #{scenePlace}</if>
            <if test="eCallEventTwo.sceneGeoLat != null "> and scene_geo_lat = #{sceneGeoLat}</if>
            <if test="eCallEventTwo.sceneGeoLng != null "> and scene_geo_lng = #{sceneGeoLng}</if>
            <if test="eCallEventTwo.isSecret != null  and eCallEventTwo.isSecret != ''"> and is_secret = #{isSecret}</if>
            <if test="eCallEventTwo.isRepeat != null  and eCallEventTwo.isRepeat != ''"> and is_repeat = #{isRepeat}</if>
            <if test="eCallEventTwo.issueType != null  and eCallEventTwo.issueType != ''"> and issue_type = #{issueType}</if>
            <if test="eCallEventTwo.issueClazz != null  and eCallEventTwo.issueClazz != ''"> and issue_clazz = #{issueClazz}</if>
            <if test="eCallEventTwo.issueLevel != null  and eCallEventTwo.issueLevel != ''"> and issue_level = #{issueLevel}</if>
            <if test="eCallEventTwo.deadline != null "> and deadline = #{deadline}</if>
            <if test="eCallEventTwo.linkOrders != null  and eCallEventTwo.linkOrders != ''"> and link_orders = #{linkOrders}</if>
            <if test="eCallEventTwo.linkOrdersCode != null  and eCallEventTwo.linkOrdersCode != ''"> and link_orders_code = #{linkOrdersCode}</if>
            <if test="eCallEventTwo.wikiRef != null  and eCallEventTwo.wikiRef != ''"> and wiki_ref = #{wikiRef}</if>
            <if test="eCallEventTwo.acptOrgCode != null  and eCallEventTwo.acptOrgCode != ''"> and acpt_org_code = #{acptOrgCode}</if>
            <if test="eCallEventTwo.acptOrgName != null  and eCallEventTwo.acptOrgName != ''"> and acpt_org_name = #{acptOrgName}</if>
            <if test="eCallEventTwo.handleWay != null  and eCallEventTwo.handleWay != ''"> and handle_way = #{handleWay}</if>
            <if test="eCallEventTwo.externalHandleWay != null  and eCallEventTwo.externalHandleWay != ''"> and external_handle_way = #{externalHandleWay}</if>
            <if test="eCallEventTwo.directFeed != null  and eCallEventTwo.directFeed != ''"> and direct_feed = #{directFeed}</if>
            <if test="eCallEventTwo.directFeedHandler != null  and eCallEventTwo.directFeedHandler != ''"> and direct_feed_handler = #{directFeedHandler}</if>
            <if test="eCallEventTwo.directFeedTime != null "> and direct_feed_time = #{directFeedTime}</if>
            <if test="eCallEventTwo.images != null  and eCallEventTwo.images != ''"> and images = #{images}</if>
            <if test="eCallEventTwo.status != null  and eCallEventTwo.status != ''"> and status = #{status}</if>
            <if test="eCallEventTwo.tagApply != null  and eCallEventTwo.tagApply != ''"> and tag_apply = #{tagApply}</if>
            <if test="eCallEventTwo.tagDelay != null  and eCallEventTwo.tagDelay != ''"> and tag_delay = #{tagDelay}</if>
            <if test="eCallEventTwo.tagDoing != null  and eCallEventTwo.tagDoing != ''"> and tag_doing = #{tagDoing}</if>
            <if test="eCallEventTwo.tagResp != null  and eCallEventTwo.tagResp != ''"> and tag_resp = #{tagResp}</if>
            <if test="eCallEventTwo.tagDone != null  and eCallEventTwo.tagDone != ''"> and tag_done = #{tagDone}</if>
            <if test="eCallEventTwo.tagCheck != null  and eCallEventTwo.tagCheck != ''"> and tag_check = #{tagCheck}</if>
            <if test="eCallEventTwo.tagChkTel != null  and eCallEventTwo.tagChkTel != ''"> and tag_chk_tel = #{tagChkTel}</if>
            <if test="eCallEventTwo.tagRedo != null  and eCallEventTwo.tagRedo != ''"> and tag_redo = #{tagRedo}</if>
        </where>
    </select>
 
 
    <resultMap type="org.springblade.modules.eCallEventTwo.dto.ECallEventTwoDTO" id="ECallEventTwoDTOResult">
        <result property="orderId"    column="order_id"    />
        <result property="orderCode"    column="order_code"    />
        <result property="issueOrigin"    column="issue_origin"    />
        <result property="issueTitle"    column="issue_title"    />
        <result property="issueContent"    column="issue_content"    />
        <result property="applicantType"    column="applicant_type"    />
        <result property="applicantName"    column="applicant_name"    />
        <result property="applicantGender"    column="applicant_gender"    />
        <result property="applicantHomeaddr"    column="applicant_homeaddr"    />
        <result property="applicantPhone"    column="applicant_phone"    />
        <result property="applicantGrid"    column="applicant_grid"    />
        <result property="applicantDistrict"    column="applicant_district"    />
        <result property="sceneAddr"    column="scene_addr"    />
        <result property="sceneAddrGrid"    column="scene_addr_grid"    />
        <result property="sceneDistrict"    column="scene_district"    />
        <result property="scenePlace"    column="scene_place"    />
        <result property="sceneGeoLat"    column="scene_geo_lat"    />
        <result property="sceneGeoLng"    column="scene_geo_lng"    />
        <result property="isSecret"    column="is_secret"    />
        <result property="isRepeat"    column="is_repeat"    />
        <result property="issueType"    column="issue_type"    />
        <result property="issueClazz"    column="issue_clazz"    />
        <result property="issueLevel"    column="issue_level"    />
        <result property="deadline"    column="deadline"    />
        <result property="linkOrders"    column="link_orders"    />
        <result property="linkOrdersCode"    column="link_orders_code"    />
        <result property="wikiRef"    column="wiki_ref"    />
        <result property="acptOrgCode"    column="acpt_org_code"    />
        <result property="acptOrgName"    column="acpt_org_name"    />
        <result property="handleWay"    column="handle_way"    />
        <result property="externalHandleWay"    column="external_handle_way"    />
        <result property="directFeed"    column="direct_feed"    />
        <result property="directFeedHandler"    column="direct_feed_handler"    />
        <result property="directFeedTime"    column="direct_feed_time"    />
        <result property="images"    column="images"    />
        <result property="status"    column="status"    />
        <result property="tagApply"    column="tag_apply"    />
        <result property="tagDelay"    column="tag_delay"    />
        <result property="tagDoing"    column="tag_doing"    />
        <result property="tagResp"    column="tag_resp"    />
        <result property="tagDone"    column="tag_done"    />
        <result property="tagCheck"    column="tag_check"    />
        <result property="tagChkTel"    column="tag_chk_tel"    />
        <result property="tagRedo"    column="tag_redo"    />
    </resultMap>
 
    <sql id="selectECallEventTwo">
        select
            order_id,
            order_code,
            issue_origin,
            issue_title,
            issue_content,
            applicant_type,
            applicant_name,
            applicant_gender,
            applicant_homeaddr,
            applicant_phone,
            applicant_grid,
            applicant_district,
            scene_addr,
            scene_addr_grid,
            scene_district,
            scene_place,
            scene_geo_lat,
            scene_geo_lng,
            is_secret,
            is_repeat,
            issue_type,
            issue_clazz,
            issue_level,
            deadline,
            link_orders,
            link_orders_code,
            wiki_ref,
            acpt_org_code,
            acpt_org_name,
            handle_way,
            external_handle_way,
            direct_feed,
            direct_feed_handler,
            direct_feed_time,
            images,
            status,
            tag_apply,
            tag_delay,
            tag_doing,
            tag_resp,
            tag_done,
            tag_check,
            tag_chk_tel,
            tag_redo
        from
            jczz_e_call_event_two
    </sql>
 
    <select id="selectECallEventTwoById" parameterType="long" resultMap="ECallEventTwoDTOResult">
        <include refid="selectECallEventTwo"/>
        where
        order_id = #{orderId}
    </select>
 
    <select id="selectECallEventTwoList" parameterType="org.springblade.modules.eCallEventTwo.dto.ECallEventTwoDTO" resultMap="ECallEventTwoDTOResult">
        <include refid="selectECallEventTwo"/>
        <where>
            <if test="orderId != null "> and order_id = #{orderId}</if>
            <if test="orderCode != null  and orderCode != ''"> and order_code = #{orderCode}</if>
            <if test="issueOrigin != null  and issueOrigin != ''"> and issue_origin = #{issueOrigin}</if>
            <if test="issueTitle != null  and issueTitle != ''"> and issue_title = #{issueTitle}</if>
            <if test="issueContent != null  and issueContent != ''"> and issue_content = #{issueContent}</if>
            <if test="applicantType != null  and applicantType != ''"> and applicant_type = #{applicantType}</if>
            <if test="applicantName != null  and applicantName != ''"> and applicant_name = #{applicantName}</if>
            <if test="applicantGender != null  and applicantGender != ''"> and applicant_gender = #{applicantGender}</if>
            <if test="applicantHomeaddr != null  and applicantHomeaddr != ''"> and applicant_homeaddr = #{applicantHomeaddr}</if>
            <if test="applicantPhone != null  and applicantPhone != ''"> and applicant_phone = #{applicantPhone}</if>
            <if test="applicantGrid != null  and applicantGrid != ''"> and applicant_grid = #{applicantGrid}</if>
            <if test="applicantDistrict != null  and applicantDistrict != ''"> and applicant_district = #{applicantDistrict}</if>
            <if test="sceneAddr != null  and sceneAddr != ''"> and scene_addr = #{sceneAddr}</if>
            <if test="sceneAddrGrid != null  and sceneAddrGrid != ''"> and scene_addr_grid = #{sceneAddrGrid}</if>
            <if test="sceneDistrict != null  and sceneDistrict != ''"> and scene_district = #{sceneDistrict}</if>
            <if test="scenePlace != null  and scenePlace != ''"> and scene_place = #{scenePlace}</if>
            <if test="sceneGeoLat != null "> and scene_geo_lat = #{sceneGeoLat}</if>
            <if test="sceneGeoLng != null "> and scene_geo_lng = #{sceneGeoLng}</if>
            <if test="isSecret != null  and isSecret != ''"> and is_secret = #{isSecret}</if>
            <if test="isRepeat != null  and isRepeat != ''"> and is_repeat = #{isRepeat}</if>
            <if test="issueType != null  and issueType != ''"> and issue_type = #{issueType}</if>
            <if test="issueClazz != null  and issueClazz != ''"> and issue_clazz = #{issueClazz}</if>
            <if test="issueLevel != null  and issueLevel != ''"> and issue_level = #{issueLevel}</if>
            <if test="deadline != null "> and deadline = #{deadline}</if>
            <if test="linkOrders != null  and linkOrders != ''"> and link_orders = #{linkOrders}</if>
            <if test="linkOrdersCode != null  and linkOrdersCode != ''"> and link_orders_code = #{linkOrdersCode}</if>
            <if test="wikiRef != null  and wikiRef != ''"> and wiki_ref = #{wikiRef}</if>
            <if test="acptOrgCode != null  and acptOrgCode != ''"> and acpt_org_code = #{acptOrgCode}</if>
            <if test="acptOrgName != null  and acptOrgName != ''"> and acpt_org_name = #{acptOrgName}</if>
            <if test="handleWay != null  and handleWay != ''"> and handle_way = #{handleWay}</if>
            <if test="externalHandleWay != null  and externalHandleWay != ''"> and external_handle_way = #{externalHandleWay}</if>
            <if test="directFeed != null  and directFeed != ''"> and direct_feed = #{directFeed}</if>
            <if test="directFeedHandler != null  and directFeedHandler != ''"> and direct_feed_handler = #{directFeedHandler}</if>
            <if test="directFeedTime != null "> and direct_feed_time = #{directFeedTime}</if>
            <if test="images != null  and images != ''"> and images = #{images}</if>
            <if test="status != null  and status != ''"> and status = #{status}</if>
            <if test="tagApply != null  and tagApply != ''"> and tag_apply = #{tagApply}</if>
            <if test="tagDelay != null  and tagDelay != ''"> and tag_delay = #{tagDelay}</if>
            <if test="tagDoing != null  and tagDoing != ''"> and tag_doing = #{tagDoing}</if>
            <if test="tagResp != null  and tagResp != ''"> and tag_resp = #{tagResp}</if>
            <if test="tagDone != null  and tagDone != ''"> and tag_done = #{tagDone}</if>
            <if test="tagCheck != null  and tagCheck != ''"> and tag_check = #{tagCheck}</if>
            <if test="tagChkTel != null  and tagChkTel != ''"> and tag_chk_tel = #{tagChkTel}</if>
            <if test="tagRedo != null  and tagRedo != ''"> and tag_redo = #{tagRedo}</if>
        </where>
    </select>
 
</mapper>