2 changed files with 196 additions and 0 deletions
@ -0,0 +1,28 @@
|
||||
<?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.biutag.supervision.mapper.CountyStreetDeptMapper"> |
||||
|
||||
<resultMap id="BaseResultMap" type="com.biutag.supervision.pojo.entity.CountyStreetDept"> |
||||
<id property="id" column="id" jdbcType="INTEGER"/> |
||||
<result property="deptPidName" column="dept_pid_name" jdbcType="VARCHAR"/> |
||||
<result property="deptPid" column="dept_pid" jdbcType="VARCHAR"/> |
||||
<result property="pid" column="pid" jdbcType="VARCHAR"/> |
||||
<result property="coordinates" column="coordinates" jdbcType="VARCHAR"/> |
||||
<result property="level" column="level" jdbcType="VARCHAR"/> |
||||
<result property="name" column="name" jdbcType="VARCHAR"/> |
||||
<result property="sort" column="sort" jdbcType="INTEGER"/> |
||||
<result property="geometry" column="geometry" jdbcType="VARCHAR"/> |
||||
<result property="areaName" column="area_name" jdbcType="VARCHAR"/> |
||||
<result property="deptId" column="dept_id" jdbcType="VARCHAR"/> |
||||
<result property="deptName" column="dept_name" jdbcType="VARCHAR"/> |
||||
</resultMap> |
||||
|
||||
<sql id="Base_Column_List"> |
||||
id,dept_pid_name,dept_pid, |
||||
pid,coordinates,level, |
||||
name,sort,geometry, |
||||
area_name,dept_id,dept_name |
||||
</sql> |
||||
</mapper> |
||||
@ -0,0 +1,168 @@
|
||||
<?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.biutag.supervision.mapper.DataPetition12337Mapper"> |
||||
|
||||
<resultMap id="BaseResultMap" type="com.biutag.supervision.pojo.entity.DataPetition12337"> |
||||
<id property="onlyId" column="only_id" jdbcType="VARCHAR"/> |
||||
<result property="externalId" column="external_id" jdbcType="VARCHAR"/> |
||||
<result property="innerId" column="inner_id" jdbcType="VARCHAR"/> |
||||
<result property="standAlone" column="stand_alone" jdbcType="VARCHAR"/> |
||||
<result property="discoverTime" column="discover_time" jdbcType="TIMESTAMP"/> |
||||
<result property="letterSource" column="letter_source" jdbcType="VARCHAR"/> |
||||
<result property="name" column="name" jdbcType="VARCHAR"/> |
||||
<result property="phone" column="phone" jdbcType="VARCHAR"/> |
||||
<result property="idCode" column="id_code" jdbcType="VARCHAR"/> |
||||
<result property="reporterProvincial" column="reporter_provincial" jdbcType="VARCHAR"/> |
||||
<result property="reporterCity" column="reporter_city" jdbcType="VARCHAR"/> |
||||
<result property="reporterCounty" column="reporter_county" jdbcType="VARCHAR"/> |
||||
<result property="address" column="address" jdbcType="VARCHAR"/> |
||||
<result property="isLawPolice" column="is_law_police" jdbcType="VARCHAR"/> |
||||
<result property="reportedName" column="reported_name" jdbcType="VARCHAR"/> |
||||
<result property="belongSystem" column="belong_system" jdbcType="VARCHAR"/> |
||||
<result property="personType" column="person_type" jdbcType="VARCHAR"/> |
||||
<result property="reportedProvincial" column="reported_provincial" jdbcType="VARCHAR"/> |
||||
<result property="reportedCity" column="reported_city" jdbcType="VARCHAR"/> |
||||
<result property="reportedCounty" column="reported_county" jdbcType="VARCHAR"/> |
||||
<result property="orgName" column="org_name" jdbcType="VARCHAR"/> |
||||
<result property="orgLevel" column="org_level" jdbcType="VARCHAR"/> |
||||
<result property="jobName" column="job_name" jdbcType="VARCHAR"/> |
||||
<result property="jobLevel" column="job_level" jdbcType="VARCHAR"/> |
||||
<result property="reportedOrgName" column="reported_org_name" jdbcType="VARCHAR"/> |
||||
<result property="reportedOrgBelong" column="reported_org_belong" jdbcType="VARCHAR"/> |
||||
<result property="reportedOrgProvincial" column="reported_org_provincial" jdbcType="VARCHAR"/> |
||||
<result property="reportedOrgCity" column="reported_org_city" jdbcType="VARCHAR"/> |
||||
<result property="reportedOrgCounty" column="reported_org_county" jdbcType="VARCHAR"/> |
||||
<result property="reportedOrgLevel" column="reported_org_level" jdbcType="VARCHAR"/> |
||||
<result property="againstProProject" column="against_pro_project" jdbcType="VARCHAR"/> |
||||
<result property="corruptionGuilt" column="corruption_guilt" jdbcType="VARCHAR"/> |
||||
<result property="omissionGuilt" column="omission_guilt" jdbcType="VARCHAR"/> |
||||
<result property="invadeEntitlementGuilt" column="invade_entitlement_guilt" jdbcType="VARCHAR"/> |
||||
<result property="invadeFinanceGuilt" column="invade_finance_guilt" jdbcType="VARCHAR"/> |
||||
<result property="otherGuilt" column="other_guilt" jdbcType="VARCHAR"/> |
||||
<result property="hardProProject" column="hard_pro_project" jdbcType="VARCHAR"/> |
||||
<result property="wjwfProject" column="wjwf_project" jdbcType="VARCHAR"/> |
||||
<result property="passTime" column="pass_time" jdbcType="VARCHAR"/> |
||||
<result property="passOrg" column="pass_org" jdbcType="VARCHAR"/> |
||||
<result property="reviewTime" column="review_time" jdbcType="VARCHAR"/> |
||||
<result property="reviewOrg" column="review_org" jdbcType="VARCHAR"/> |
||||
<result property="reviewPersonName" column="review_person_name" jdbcType="VARCHAR"/> |
||||
<result property="reviewPersonPhone" column="review_person_phone" jdbcType="VARCHAR"/> |
||||
<result property="reviewedPersonType" column="reviewed_person_type" jdbcType="VARCHAR"/> |
||||
<result property="reviewedPersonIsleader" column="reviewed_person_isleader" jdbcType="VARCHAR"/> |
||||
<result property="reviewedIsover" column="reviewed_isover" jdbcType="VARCHAR"/> |
||||
<result property="reviewDes" column="review_des" jdbcType="VARCHAR"/> |
||||
<result property="processResult" column="process_result" jdbcType="VARCHAR"/> |
||||
<result property="isFirstView" column="is_first_view" jdbcType="VARCHAR"/> |
||||
<result property="reviewLeader" column="review_leader" jdbcType="VARCHAR"/> |
||||
<result property="reviewLeaderPhone" column="review_leader_phone" jdbcType="VARCHAR"/> |
||||
<result property="firstViewDes" column="first_view_des" jdbcType="VARCHAR"/> |
||||
<result property="isRegisterCase" column="is_register_case" jdbcType="VARCHAR"/> |
||||
<result property="registerCaseDes" column="register_case_des" jdbcType="VARCHAR"/> |
||||
<result property="isPunish" column="is_punish" jdbcType="VARCHAR"/> |
||||
<result property="processResType" column="process_res_type" jdbcType="VARCHAR"/> |
||||
<result property="processResDes" column="process_res_des" jdbcType="VARCHAR"/> |
||||
<result property="punishDes" column="punish_des" jdbcType="VARCHAR"/> |
||||
<result property="isTolerant" column="is_tolerant" jdbcType="VARCHAR"/> |
||||
<result property="isOver" column="is_over" jdbcType="VARCHAR"/> |
||||
<result property="contactTime" column="contact_time" jdbcType="VARCHAR"/> |
||||
<result property="contactOrg" column="contact_org" jdbcType="VARCHAR"/> |
||||
<result property="contactPersonName" column="contact_person_name" jdbcType="VARCHAR"/> |
||||
<result property="contactType" column="contact_type" jdbcType="VARCHAR"/> |
||||
<result property="contactReporterDes" column="contact_reporter_des" jdbcType="VARCHAR"/> |
||||
<result property="overtimeReason" column="overtime_reason" jdbcType="VARCHAR"/> |
||||
<result property="isDissent" column="is_dissent" jdbcType="VARCHAR"/> |
||||
<result property="aimProvincial" column="aim_provincial" jdbcType="VARCHAR"/> |
||||
<result property="applyPersonName" column="apply_person_name" jdbcType="VARCHAR"/> |
||||
<result property="applyPersonPhone" column="apply_person_phone" jdbcType="VARCHAR"/> |
||||
<result property="applyReason" column="apply_reason" jdbcType="VARCHAR"/> |
||||
<result property="dissentHandle" column="dissent_handle" jdbcType="VARCHAR"/> |
||||
<result property="dissentHandleExplain" column="dissent_handle_explain" jdbcType="VARCHAR"/> |
||||
<result property="isAnnex" column="is_annex" jdbcType="VARCHAR"/> |
||||
<result property="annexName" column="annex_name" jdbcType="VARCHAR"/> |
||||
<result property="reportTime" column="report_time" jdbcType="VARCHAR"/> |
||||
<result property="enterTime" column="enter_time" jdbcType="VARCHAR"/> |
||||
<result property="distributeTime" column="distribute_time" jdbcType="VARCHAR"/> |
||||
<result property="isAgainstClue" column="is_against_clue" jdbcType="VARCHAR"/> |
||||
<result property="isAppealClue" column="is_appeal_clue" jdbcType="VARCHAR"/> |
||||
<result property="isOverroundClue" column="is_overround_clue" jdbcType="VARCHAR"/> |
||||
<result property="isInvalidClue" column="is_invalid_clue" jdbcType="VARCHAR"/> |
||||
<result property="isImportantClue" column="is_important_clue" jdbcType="VARCHAR"/> |
||||
<result property="isRepeatClue" column="is_repeat_clue" jdbcType="VARCHAR"/> |
||||
<result property="repeatClueType" column="repeat_clue_type" jdbcType="VARCHAR"/> |
||||
<result property="isMachine" column="is_machine" jdbcType="VARCHAR"/> |
||||
<result property="machineTme" column="machine_tme" jdbcType="VARCHAR"/> |
||||
<result property="isPerson" column="is_person" jdbcType="VARCHAR"/> |
||||
<result property="personTime" column="person_time" jdbcType="VARCHAR"/> |
||||
<result property="isCare" column="is_care" jdbcType="VARCHAR"/> |
||||
<result property="careTime" column="care_time" jdbcType="VARCHAR"/> |
||||
<result property="handleTime" column="handle_time" jdbcType="VARCHAR"/> |
||||
<result property="secondDepartId" column="second_depart_id" jdbcType="VARCHAR"/> |
||||
<result property="secondDepartName" column="second_depart_name" jdbcType="VARCHAR"/> |
||||
<result property="thirdDepartId" column="third_depart_id" jdbcType="VARCHAR"/> |
||||
<result property="thirdDepartName" column="third_depart_name" jdbcType="VARCHAR"/> |
||||
<result property="distributionstate" column="distributionState" jdbcType="INTEGER"/> |
||||
<result property="isReal" column="is_real" jdbcType="INTEGER"/> |
||||
</resultMap> |
||||
|
||||
<sql id="Base_Column_List"> |
||||
only_id,external_id,inner_id, |
||||
stand_alone,discover_time,letter_source, |
||||
name,phone,id_code, |
||||
reporter_provincial,reporter_city,reporter_county, |
||||
address,is_law_police,reported_name, |
||||
belong_system,person_type,reported_provincial, |
||||
reported_city,reported_county,org_name, |
||||
org_level,job_name,job_level, |
||||
reported_org_name,reported_org_belong,reported_org_provincial, |
||||
reported_org_city,reported_org_county,reported_org_level, |
||||
against_pro_project,corruption_guilt,omission_guilt, |
||||
invade_entitlement_guilt,invade_finance_guilt,other_guilt, |
||||
hard_pro_project,wjwf_project,pass_time, |
||||
pass_org,review_time,review_org, |
||||
review_person_name,review_person_phone,reviewed_person_type, |
||||
reviewed_person_isleader,reviewed_isover,review_des, |
||||
process_result,is_first_view,review_leader, |
||||
review_leader_phone,first_view_des,is_register_case, |
||||
register_case_des,is_punish,process_res_type, |
||||
process_res_des,punish_des,is_tolerant, |
||||
is_over,contact_time,contact_org, |
||||
contact_person_name,contact_type,contact_reporter_des, |
||||
overtime_reason,is_dissent,aim_provincial, |
||||
apply_person_name,apply_person_phone,apply_reason, |
||||
dissent_handle,dissent_handle_explain,is_annex, |
||||
annex_name,report_time,enter_time, |
||||
distribute_time,is_against_clue,is_appeal_clue, |
||||
is_overround_clue,is_invalid_clue,is_important_clue, |
||||
is_repeat_clue,repeat_clue_type,is_machine, |
||||
machine_tme,is_person,person_time, |
||||
is_care,care_time,handle_time, |
||||
second_depart_id,second_depart_name,third_depart_id, |
||||
third_depart_name,distributionState,is_real |
||||
</sql> |
||||
<select id="getMailTrend12337" resultType="com.biutag.supervision.pojo.vo.EchartsVo"> |
||||
SELECT |
||||
m.monthName AS `name`, |
||||
IFNULL(COUNT(dpc.discover_time), 0) AS `value` |
||||
FROM ( |
||||
SELECT '01' AS month, '1月' AS monthName UNION ALL |
||||
SELECT '02', '2月' UNION ALL |
||||
SELECT '03', '3月' UNION ALL |
||||
SELECT '04', '4月' UNION ALL |
||||
SELECT '05', '5月' UNION ALL |
||||
SELECT '06', '6月' UNION ALL |
||||
SELECT '07', '7月' UNION ALL |
||||
SELECT '08', '8月' UNION ALL |
||||
SELECT '09', '9月' UNION ALL |
||||
SELECT '10', '10月' UNION ALL |
||||
SELECT '11', '11月' UNION ALL |
||||
SELECT '12', '12月' |
||||
) m |
||||
LEFT JOIN |
||||
data_petition_12337 dpc on DATE_FORMAT(dpc.discover_time, '%m')=m.month |
||||
AND YEAR(dpc.discover_time)=#{year} |
||||
GROUP BY m.monthName |
||||
ORDER BY m.month ASC; |
||||
</select> |
||||
</mapper> |
||||
Loading…
Reference in new issue