122 lines
4.4 KiB
XML
122 lines
4.4 KiB
XML
|
<?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="com.cm.bigdata.dao2.kpi.IReportCaseDao">
|
||
|
|
||
|
<resultMap id="reportCasePO" type="com.cm.bigdata.pojo.pos.kpi.ReportCasePO">
|
||
|
<id column="report_case_id" property="reportCaseId"/>
|
||
|
<result column="area_id" property="areaId"/>
|
||
|
<result column="area_name" property="areaName"/>
|
||
|
<result column="community_id" property="communityId"/>
|
||
|
<result column="community_name" property="communityName"/>
|
||
|
<result column="case_type_id" property="caseTypeId"/>
|
||
|
<result column="case_type_name" property="caseTypeName"/>
|
||
|
<result column="is_self" property="isSelf"/>
|
||
|
<result column="grade" property="grade"/>
|
||
|
<result column="gmt_create" property="gmtCreate"/>
|
||
|
<result column="creator" property="creator"/>
|
||
|
<result column="gmt_modified" property="gmtModified"/>
|
||
|
<result column="modifier" property="modifier"/>
|
||
|
<result column="is_delete" property="isDelete"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<resultMap id="reportCaseAcceptPO" type="com.cm.bigdata.pojo.pos.kpi.ReportCaseAcceptPO">
|
||
|
<id column="case_id" property="caseId"/>
|
||
|
<result column="gmt_create" property="gmtCreate"/>
|
||
|
<result column="creator" property="creator"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<resultMap id="reportCaseAssignPO" type="com.cm.bigdata.pojo.pos.kpi.ReportCaseAssignPO">
|
||
|
<id column="case_id" property="caseId"/>
|
||
|
<result column="handle_user_id" property="handleUserId"/>
|
||
|
<result column="handle_time" property="handleTime"/>
|
||
|
<result column="gmt_create" property="gmtCreate"/>
|
||
|
<result column="creator" property="creator"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<resultMap id="reportCaseHandlePO" type="com.cm.bigdata.pojo.pos.kpi.ReportCaseHandlePO">
|
||
|
<id column="case_id" property="caseId"/>
|
||
|
<result column="handle_time" property="handleTime"/>
|
||
|
<result column="handle_timeout" property="handleTimeout"/>
|
||
|
<result column="is_inspect" property="isInspect"/>
|
||
|
<result column="gmt_create" property="gmtCreate"/>
|
||
|
<result column="creator" property="creator"/>
|
||
|
<result column="gmt_modified" property="gmtModified"/>
|
||
|
<result column="modifier" property="modifier"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<resultMap id="reportCaseInspectPO" type="com.cm.bigdata.pojo.pos.kpi.ReportCaseInspectPO">
|
||
|
<id column="case_id" property="caseId"/>
|
||
|
<result column="is_pass" property="isPass"/>
|
||
|
<result column="gmt_create" property="gmtCreate"/>
|
||
|
<result column="creator" property="creator"/>
|
||
|
<result column="gmt_modified" property="gmtModified"/>
|
||
|
<result column="modifier" property="modifier"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<select id="listPO" parameterType="map" resultMap="reportCasePO">
|
||
|
SELECT
|
||
|
report_case_id,
|
||
|
area_id,
|
||
|
area_name,
|
||
|
community_id,
|
||
|
community_name,
|
||
|
case_type_id,
|
||
|
case_type_name,
|
||
|
is_self,
|
||
|
grade,
|
||
|
gmt_create,
|
||
|
creator,
|
||
|
gmt_modified,
|
||
|
modifier,
|
||
|
is_delete
|
||
|
FROM
|
||
|
city_report_case
|
||
|
</select>
|
||
|
|
||
|
<select id="listAcceptPO" parameterType="map" resultMap="reportCaseAcceptPO">
|
||
|
SELECT
|
||
|
case_id,
|
||
|
gmt_create,
|
||
|
creator
|
||
|
FROM
|
||
|
city_report_case_accept
|
||
|
</select>
|
||
|
|
||
|
<select id="listAssignPO" parameterType="map" resultMap="reportCaseAssignPO">
|
||
|
SELECT
|
||
|
case_id,
|
||
|
handle_user_id,
|
||
|
handle_time,
|
||
|
gmt_create,
|
||
|
creator
|
||
|
FROM
|
||
|
city_report_case_assign
|
||
|
</select>
|
||
|
|
||
|
<select id="listHandlePO" parameterType="map" resultMap="reportCaseHandlePO">
|
||
|
SELECT
|
||
|
case_id,
|
||
|
handle_time,
|
||
|
handle_timeout,
|
||
|
is_inspect,
|
||
|
gmt_create,
|
||
|
creator,
|
||
|
gmt_modified,
|
||
|
modifier
|
||
|
FROM
|
||
|
city_report_case_handle
|
||
|
</select>
|
||
|
|
||
|
<select id="listInspectPO" parameterType="map" resultMap="reportCaseInspectPO">
|
||
|
SELECT
|
||
|
case_id,
|
||
|
is_pass,
|
||
|
gmt_create,
|
||
|
creator,
|
||
|
gmt_modified,
|
||
|
modifier
|
||
|
FROM
|
||
|
city_report_case_inspect
|
||
|
</select>
|
||
|
|
||
|
</mapper>
|