linwe
2024-05-27 0fe85a3190a98b30b4d562bae4af16323be0ef5b
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
<?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.EcOrderMapper">
 
    <resultMap type="org.springblade.modules.eCallEventTwo.dto.EcOrderDTO" id="EcOrderDTOResult">
        <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="sceneAddrCor"    column="scene_addr_cor"    />
        <result property="sceneGeoLatCor"    column="scene_geo_lat_cor"    />
        <result property="sceneGeoLngCor"    column="scene_geo_lng_cor"    />
        <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="flagVaild"    column="flag_vaild"    />
        <result property="invalidNote"    column="invalid_note"    />
        <result property="invalidTime"    column="invalid_time"    />
        <result property="invalidUserName"    column="invalid_user_name"    />
        <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="selectEcOrder">
        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,
            scene_addr_cor,
            scene_geo_lat_cor,
            scene_geo_lng_cor,
            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,
            flag_vaild,
            invalid_note,
            invalid_time,
            invalid_user_name,
            status,
            tag_apply,
            tag_delay,
            tag_doing,
            tag_resp,
            tag_done,
            tag_check,
            tag_chk_tel,
            tag_redo
        from
            ec_order
    </sql>
 
    <select id="selectEcOrderById" parameterType="long" resultMap="EcOrderDTOResult">
        <include refid="selectEcOrder"/>
        where
            order_id = #{orderId}
    </select>
 
    <select id="selectEcOrderList" parameterType="org.springblade.modules.eCallEventTwo.dto.EcOrderDTO" resultMap="EcOrderDTOResult">
        <include refid="selectEcOrder"/>
        <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="sceneAddrCor != null  and sceneAddrCor != ''"> and scene_addr_cor = #{sceneAddrCor}</if>
        <if test="sceneGeoLatCor != null "> and scene_geo_lat_cor = #{sceneGeoLatCor}</if>
        <if test="sceneGeoLngCor != null "> and scene_geo_lng_cor = #{sceneGeoLngCor}</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="flagVaild != null  and flagVaild != ''"> and flag_vaild = #{flagVaild}</if>
        <if test="invalidNote != null  and invalidNote != ''"> and invalid_note = #{invalidNote}</if>
        <if test="invalidTime != null "> and invalid_time = #{invalidTime}</if>
        <if test="invalidUserName != null  and invalidUserName != ''"> and invalid_user_name = #{invalidUserName}</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>