<?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>
|