1104 lines
40 KiB
XML
1104 lines
40 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.population.dao.dispute.IDisputeDao">
|
|
|
|
<resultMap id="disputeDTO" type="com.cm.population.pojo.dtos.dispute.DisputeDTO">
|
|
<result column="dispute_id" property="disputeId"/>
|
|
<result column="case_name" property="caseName"/>
|
|
<result column="case_title" property="caseTitle"/>
|
|
<result column="case_time" property="caseTime"/>
|
|
<result column="case_address" property="caseAddress"/>
|
|
<result column="case_area_code" property="caseAreaCode"/>
|
|
<result column="case_area_name" property="caseAreaName"/>
|
|
<result column="case_lng" property="caseLng"/>
|
|
<result column="case_lat" property="caseLat"/>
|
|
<result column="case_map_address" property="caseMapAddress"/>
|
|
<result column="case_scale" property="caseScale"/>
|
|
<result column="case_scale_name" property="caseScaleName"/>
|
|
<result column="case_type" property="caseType"/>
|
|
<result column="case_type_name" property="caseTypeName"/>
|
|
<result column="case_estimate" property="caseEstimate"/>
|
|
<result column="case_estimate_name" property="caseEstimateName"/>
|
|
<result column="case_degree" property="caseDegree"/>
|
|
<result column="case_degree_name" property="caseDegreeName"/>
|
|
<result column="case_level" property="caseLevel"/>
|
|
<result column="case_level_name" property="caseLevelName"/>
|
|
<result column="dispute_type" property="disputeType"/>
|
|
<result column="dispute_type_name" property="disputeTypeName"/>
|
|
<result column="dispute_level" property="disputeLevel"/>
|
|
<result column="dispute_level_name" property="disputeLevelName"/>
|
|
<result column="risk_type" property="riskType"/>
|
|
<result column="risk_type_name" property="riskTypeName"/>
|
|
<result column="risk_level" property="riskLevel"/>
|
|
<result column="risk_level_name" property="riskLevelName"/>
|
|
<result column="dispute_money" property="disputeMoney"/>
|
|
<result column="dispute_number" property="disputeNumber"/>
|
|
<result column="dispute_organization" property="disputeOrganization"/>
|
|
<result column="mediate_last_time" property="mediateLastTime"/>
|
|
<result column="case_description" property="caseDescription"/>
|
|
<result column="case_images" property="caseImages"/>
|
|
<result column="party_population_info_id" property="partyPopulationInfoId"/>
|
|
<result column="party_idcard_type" property="partyIdcardType"/>
|
|
<result column="party_idcard" property="partyIdcard"/>
|
|
<result column="party_name" property="partyName"/>
|
|
<result column="party_phone" property="partyPhone"/>
|
|
<result column="party_sex" property="partySex"/>
|
|
<result column="party_nation" property="partyNation"/>
|
|
<result column="party_education" property="partyEducation"/>
|
|
<result column="party_type" property="partyType"/>
|
|
<result column="party_address" property="partyAddress"/>
|
|
<result column="party_area_code" property="partyAreaCode"/>
|
|
<result column="party_area_name" property="partyAreaName"/>
|
|
<result column="defuse_time" property="defuseTime"/>
|
|
<result column="defuse_way" property="defuseWay"/>
|
|
<result column="defuse_way_name" property="defuseWayName"/>
|
|
<result column="defuse_organization" property="defuseOrganization"/>
|
|
<result column="defuse_responsible_population_info_id" property="defuseResponsiblePopulationInfoId"/>
|
|
<result column="defuse_responsible_idcard" property="defuseResponsibleIdcard"/>
|
|
<result column="defuse_responsible_name" property="defuseResponsibleName"/>
|
|
<result column="defuse_responsible_phone" property="defuseResponsiblePhone"/>
|
|
<result column="defuse_status" property="defuseStatus"/>
|
|
<result column="defuse_description" property="defuseDescription"/>
|
|
<result column="evaluation_time" property="evaluationTime"/>
|
|
<result column="evaluation_opinion" property="evaluationOpinion"/>
|
|
<result column="measure_description" property="measureDescription"/>
|
|
<result column="record_description" property="recordDescription"/>
|
|
<result column="partyb_population_info_id" property="partybPopulationInfoId"/>
|
|
<result column="partyb_idcard" property="partybIdcard"/>
|
|
<result column="partyb_name" property="partybName"/>
|
|
<result column="partyb_phone" property="partybPhone"/>
|
|
<result column="creator" property="creator"/>
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
<result column="modifier" property="modifier"/>
|
|
<result column="gmt_modified" property="gmtModified"/>
|
|
<result column="is_delete" property="isDelete"/>
|
|
</resultMap>
|
|
|
|
<resultMap id="disputeBO" type="com.cm.population.pojo.bos.dispute.DisputeBO">
|
|
<result column="dispute_id" property="disputeId"/>
|
|
<result column="case_name" property="caseName"/>
|
|
<result column="case_title" property="caseTitle"/>
|
|
<result column="case_time" property="caseTime"/>
|
|
<result column="case_address" property="caseAddress"/>
|
|
<result column="case_lng" property="caseLng"/>
|
|
<result column="case_lat" property="caseLat"/>
|
|
<result column="case_map_address" property="caseMapAddress"/>
|
|
<result column="case_scale" property="caseScale"/>
|
|
<result column="case_type" property="caseType"/>
|
|
<result column="case_estimate" property="caseEstimate"/>
|
|
<result column="case_degree" property="caseDegree"/>
|
|
<result column="case_level" property="caseLevel"/>
|
|
<result column="dispute_type" property="disputeType"/>
|
|
<result column="dispute_level" property="disputeLevel"/>
|
|
<result column="risk_type" property="riskType"/>
|
|
<result column="risk_level" property="riskLevel"/>
|
|
<result column="dispute_money" property="disputeMoney"/>
|
|
<result column="dispute_number" property="disputeNumber"/>
|
|
<result column="dispute_organization" property="disputeOrganization"/>
|
|
<result column="mediate_last_time" property="mediateLastTime"/>
|
|
<result column="case_description" property="caseDescription"/>
|
|
<result column="case_images" property="caseImages"/>
|
|
<result column="party_population_info_id" property="partyPopulationInfoId"/>
|
|
<result column="party_idcard_type" property="partyIdcardType"/>
|
|
<result column="party_idcard" property="partyIdcard"/>
|
|
<result column="party_name" property="partyName"/>
|
|
<result column="party_phone" property="partyPhone"/>
|
|
<result column="party_sex" property="partySex"/>
|
|
<result column="party_nation" property="partyNation"/>
|
|
<result column="party_education" property="partyEducation"/>
|
|
<result column="party_type" property="partyType"/>
|
|
<result column="party_address" property="partyAddress"/>
|
|
<result column="defuse_time" property="defuseTime"/>
|
|
<result column="defuse_way" property="defuseWay"/>
|
|
<result column="defuse_organization" property="defuseOrganization"/>
|
|
<result column="defuse_responsible_population_info_id" property="defuseResponsiblePopulationInfoId"/>
|
|
<result column="defuse_responsible_idcard" property="defuseResponsibleIdcard"/>
|
|
<result column="defuse_responsible_name" property="defuseResponsibleName"/>
|
|
<result column="defuse_responsible_phone" property="defuseResponsiblePhone"/>
|
|
<result column="defuse_status" property="defuseStatus"/>
|
|
<result column="defuse_description" property="defuseDescription"/>
|
|
<result column="evaluation_time" property="evaluationTime"/>
|
|
<result column="evaluation_opinion" property="evaluationOpinion"/>
|
|
<result column="measure_description" property="measureDescription"/>
|
|
<result column="record_description" property="recordDescription"/>
|
|
<result column="partyb_population_info_id" property="partybPopulationInfoId"/>
|
|
<result column="partyb_idcard" property="partybIdcard"/>
|
|
<result column="partyb_name" property="partybName"/>
|
|
<result column="partyb_phone" property="partybPhone"/>
|
|
<result column="creator" property="creator"/>
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
<result column="modifier" property="modifier"/>
|
|
<result column="gmt_modified" property="gmtModified"/>
|
|
<result column="is_delete" property="isDelete"/>
|
|
</resultMap>
|
|
|
|
<resultMap id="disputePO" type="com.cm.population.pojo.pos.dispute.DisputePO">
|
|
<result column="dispute_id" property="disputeId"/>
|
|
<result column="case_name" property="caseName"/>
|
|
<result column="case_title" property="caseTitle"/>
|
|
<result column="case_time" property="caseTime"/>
|
|
<result column="case_address" property="caseAddress"/>
|
|
<result column="case_lng" property="caseLng"/>
|
|
<result column="case_lat" property="caseLat"/>
|
|
<result column="case_map_address" property="caseMapAddress"/>
|
|
<result column="case_scale" property="caseScale"/>
|
|
<result column="case_type" property="caseType"/>
|
|
<result column="case_estimate" property="caseEstimate"/>
|
|
<result column="case_degree" property="caseDegree"/>
|
|
<result column="case_level" property="caseLevel"/>
|
|
<result column="dispute_type" property="disputeType"/>
|
|
<result column="dispute_level" property="disputeLevel"/>
|
|
<result column="risk_type" property="riskType"/>
|
|
<result column="risk_level" property="riskLevel"/>
|
|
<result column="dispute_money" property="disputeMoney"/>
|
|
<result column="dispute_number" property="disputeNumber"/>
|
|
<result column="dispute_organization" property="disputeOrganization"/>
|
|
<result column="mediate_last_time" property="mediateLastTime"/>
|
|
<result column="case_description" property="caseDescription"/>
|
|
<result column="case_images" property="caseImages"/>
|
|
<result column="party_population_info_id" property="partyPopulationInfoId"/>
|
|
<result column="party_idcard_type" property="partyIdcardType"/>
|
|
<result column="party_idcard" property="partyIdcard"/>
|
|
<result column="party_name" property="partyName"/>
|
|
<result column="party_phone" property="partyPhone"/>
|
|
<result column="party_sex" property="partySex"/>
|
|
<result column="party_nation" property="partyNation"/>
|
|
<result column="party_education" property="partyEducation"/>
|
|
<result column="party_type" property="partyType"/>
|
|
<result column="party_address" property="partyAddress"/>
|
|
<result column="defuse_time" property="defuseTime"/>
|
|
<result column="defuse_way" property="defuseWay"/>
|
|
<result column="defuse_organization" property="defuseOrganization"/>
|
|
<result column="defuse_responsible_population_info_id" property="defuseResponsiblePopulationInfoId"/>
|
|
<result column="defuse_responsible_idcard" property="defuseResponsibleIdcard"/>
|
|
<result column="defuse_responsible_name" property="defuseResponsibleName"/>
|
|
<result column="defuse_responsible_phone" property="defuseResponsiblePhone"/>
|
|
<result column="defuse_status" property="defuseStatus"/>
|
|
<result column="defuse_description" property="defuseDescription"/>
|
|
<result column="evaluation_time" property="evaluationTime"/>
|
|
<result column="evaluation_opinion" property="evaluationOpinion"/>
|
|
<result column="measure_description" property="measureDescription"/>
|
|
<result column="record_description" property="recordDescription"/>
|
|
<result column="partyb_population_info_id" property="partybPopulationInfoId"/>
|
|
<result column="partyb_idcard" property="partybIdcard"/>
|
|
<result column="partyb_name" property="partybName"/>
|
|
<result column="partyb_phone" property="partybPhone"/>
|
|
<result column="creator" property="creator"/>
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
<result column="modifier" property="modifier"/>
|
|
<result column="gmt_modified" property="gmtModified"/>
|
|
<result column="is_delete" property="isDelete"/>
|
|
</resultMap>
|
|
|
|
<!-- 新增信访管理-矛盾纠纷 -->
|
|
<insert id="save" parameterType="map">
|
|
INSERT INTO population_dispute(
|
|
dispute_id,
|
|
case_name,
|
|
case_title,
|
|
case_time,
|
|
case_address,
|
|
case_area_code,
|
|
case_area_name,
|
|
case_lng,
|
|
case_lat,
|
|
case_map_address,
|
|
case_scale,
|
|
case_type,
|
|
case_estimate,
|
|
case_degree,
|
|
case_level,
|
|
dispute_type,
|
|
dispute_level,
|
|
risk_type,
|
|
risk_level,
|
|
dispute_money,
|
|
dispute_number,
|
|
dispute_organization,
|
|
mediate_last_time,
|
|
case_description,
|
|
case_images,
|
|
party_population_info_id,
|
|
party_idcard_type,
|
|
party_idcard,
|
|
party_name,
|
|
party_phone,
|
|
party_sex,
|
|
party_nation,
|
|
party_education,
|
|
party_type,
|
|
party_address,
|
|
party_area_code,
|
|
party_area_name,
|
|
defuse_time,
|
|
defuse_way,
|
|
defuse_organization,
|
|
defuse_responsible_population_info_id,
|
|
defuse_responsible_idcard,
|
|
defuse_responsible_name,
|
|
defuse_responsible_phone,
|
|
defuse_status,
|
|
defuse_description,
|
|
evaluation_time,
|
|
evaluation_opinion,
|
|
measure_description,
|
|
record_description,
|
|
partyb_population_info_id,
|
|
partyb_idcard,
|
|
partyb_name,
|
|
partyb_phone,
|
|
creator,
|
|
gmt_create,
|
|
modifier,
|
|
gmt_modified,
|
|
is_delete
|
|
) VALUES(
|
|
#{disputeId},
|
|
#{caseName},
|
|
#{caseTitle},
|
|
#{caseTime},
|
|
#{caseAddress},
|
|
#{caseAreaCode},
|
|
#{caseAreaName},
|
|
#{caseLng},
|
|
#{caseLat},
|
|
#{caseMapAddress},
|
|
#{caseScale},
|
|
#{caseType},
|
|
#{caseEstimate},
|
|
#{caseDegree},
|
|
#{caseLevel},
|
|
#{disputeType},
|
|
#{disputeLevel},
|
|
#{riskType},
|
|
#{riskLevel},
|
|
#{disputeMoney},
|
|
#{disputeNumber},
|
|
#{disputeOrganization},
|
|
#{mediateLastTime},
|
|
#{caseDescription},
|
|
#{caseImages},
|
|
#{partyPopulationInfoId},
|
|
#{partyIdcardType},
|
|
#{partyIdcard},
|
|
#{partyName},
|
|
#{partyPhone},
|
|
#{partySex},
|
|
#{partyNation},
|
|
#{partyEducation},
|
|
#{partyType},
|
|
#{partyAddress},
|
|
#{partyAreaCode},
|
|
#{partyAreaName},
|
|
#{defuseTime},
|
|
#{defuseWay},
|
|
#{defuseOrganization},
|
|
#{defuseResponsiblePopulationInfoId},
|
|
#{defuseResponsibleIdcard},
|
|
#{defuseResponsibleName},
|
|
#{defuseResponsiblePhone},
|
|
#{defuseStatus},
|
|
#{defuseDescription},
|
|
#{evaluationTime},
|
|
#{evaluationOpinion},
|
|
#{measureDescription},
|
|
#{recordDescription},
|
|
#{partybPopulationInfoId},
|
|
#{partybIdcard},
|
|
#{partybName},
|
|
#{partybPhone},
|
|
#{creator},
|
|
#{gmtCreate},
|
|
#{modifier},
|
|
#{gmtModified},
|
|
#{isDelete}
|
|
)
|
|
</insert>
|
|
|
|
<!-- 删除信访管理-矛盾纠纷 -->
|
|
<update id="remove" parameterType="map">
|
|
UPDATE
|
|
population_dispute
|
|
SET
|
|
gmt_modified = #{gmtModified},
|
|
modifier = #{modifier},
|
|
is_delete = 1
|
|
WHERE
|
|
dispute_id IN
|
|
<foreach collection="disputeIds" index="index" open="(" separator="," close=")">
|
|
#{disputeIds[${index}]}
|
|
</foreach>
|
|
</update>
|
|
|
|
<!-- 删除信访管理-矛盾纠纷(物理) -->
|
|
<update id="delete" parameterType="map">
|
|
DELETE FROM
|
|
population_dispute
|
|
WHERE
|
|
dispute_id IN
|
|
<foreach collection="disputeIds" index="index" open="(" separator="," close=")">
|
|
#{disputeIds[${index}]}
|
|
</foreach>
|
|
</update>
|
|
|
|
<!-- 修改信访管理-矛盾纠纷 -->
|
|
<update id="update" parameterType="map">
|
|
UPDATE
|
|
population_dispute
|
|
SET
|
|
<if test="caseName != null and caseName != ''">
|
|
case_name = #{caseName},
|
|
</if>
|
|
<if test="caseTitle != null and caseTitle != ''">
|
|
case_title = #{caseTitle},
|
|
</if>
|
|
<if test="caseTime != null and caseTime != ''">
|
|
case_time = #{caseTime},
|
|
</if>
|
|
<if test="caseAddress != null and caseAddress != ''">
|
|
case_address = #{caseAddress},
|
|
</if>
|
|
<if test="caseAreaCode != null and caseAreaCode != ''">
|
|
case_area_code = #{caseAreaCode},
|
|
</if>
|
|
<if test="caseAreaName != null and caseAreaName != ''">
|
|
case_area_name = #{caseAreaName},
|
|
</if>
|
|
<if test="caseLng != null and caseLng != ''">
|
|
case_lng = #{caseLng},
|
|
</if>
|
|
<if test="caseLat != null and caseLat != ''">
|
|
case_lat = #{caseLat},
|
|
</if>
|
|
<if test="caseMapAddress != null and caseMapAddress != ''">
|
|
case_map_address = #{caseMapAddress},
|
|
</if>
|
|
<if test="caseScale != null">
|
|
case_scale = #{caseScale},
|
|
</if>
|
|
<if test="caseType != null">
|
|
case_type = #{caseType},
|
|
</if>
|
|
<if test="caseEstimate != null">
|
|
case_estimate = #{caseEstimate},
|
|
</if>
|
|
<if test="caseDegree != null">
|
|
case_degree = #{caseDegree},
|
|
</if>
|
|
<if test="caseLevel != null">
|
|
case_level = #{caseLevel},
|
|
</if>
|
|
<if test="disputeType != null">
|
|
dispute_type = #{disputeType},
|
|
</if>
|
|
<if test="disputeLevel != null">
|
|
dispute_level = #{disputeLevel},
|
|
</if>
|
|
<if test="riskType != null">
|
|
risk_type = #{riskType},
|
|
</if>
|
|
<if test="riskLevel != null">
|
|
risk_level = #{riskLevel},
|
|
</if>
|
|
<if test="disputeMoney != null and disputeMoney != ''">
|
|
dispute_money = #{disputeMoney},
|
|
</if>
|
|
<if test="disputeNumber != null and disputeNumber != ''">
|
|
dispute_number = #{disputeNumber},
|
|
</if>
|
|
<if test="disputeOrganization != null and disputeOrganization != ''">
|
|
dispute_organization = #{disputeOrganization},
|
|
</if>
|
|
<if test="mediateLastTime != null and mediateLastTime != ''">
|
|
mediate_last_time = #{mediateLastTime},
|
|
</if>
|
|
<if test="caseDescription != null and caseDescription != ''">
|
|
case_description = #{caseDescription},
|
|
</if>
|
|
<if test="caseImages != null and caseImages != ''">
|
|
case_images = #{caseImages},
|
|
</if>
|
|
<if test="partyPopulationInfoId != null and partyPopulationInfoId != ''">
|
|
party_population_info_id = #{partyPopulationInfoId},
|
|
</if>
|
|
<if test="partyIdcardType != null">
|
|
party_idcard_type = #{partyIdcardType},
|
|
</if>
|
|
<if test="partyIdcard != null and partyIdcard != ''">
|
|
party_idcard = #{partyIdcard},
|
|
</if>
|
|
<if test="partyName != null and partyName != ''">
|
|
party_name = #{partyName},
|
|
</if>
|
|
<if test="partyPhone != null and partyPhone != ''">
|
|
party_phone = #{partyPhone},
|
|
</if>
|
|
<if test="partySex != null">
|
|
party_sex = #{partySex},
|
|
</if>
|
|
<if test="partyNation != null">
|
|
party_nation = #{partyNation},
|
|
</if>
|
|
<if test="partyEducation != null">
|
|
party_education = #{partyEducation},
|
|
</if>
|
|
<if test="partyType != null">
|
|
party_type = #{partyType},
|
|
</if>
|
|
<if test="partyAddress != null and partyAddress != ''">
|
|
party_address = #{partyAddress},
|
|
</if>
|
|
<if test="partyAreaCode != null and partyAreaCode != ''">
|
|
party_area_code = #{partyAreaCode},
|
|
</if>
|
|
<if test="partyAreaName != null and partyAreaName != ''">
|
|
party_area_name = #{partyAreaName},
|
|
</if>
|
|
<if test="defuseTime != null and defuseTime != ''">
|
|
defuse_time = #{defuseTime},
|
|
</if>
|
|
<if test="defuseWay != null">
|
|
defuse_way = #{defuseWay},
|
|
</if>
|
|
<if test="defuseOrganization != null and defuseOrganization != ''">
|
|
defuse_organization = #{defuseOrganization},
|
|
</if>
|
|
<if test="defuseResponsiblePopulationInfoId != null and defuseResponsiblePopulationInfoId != ''">
|
|
defuse_responsible_population_info_id = #{defuseResponsiblePopulationInfoId},
|
|
</if>
|
|
<if test="defuseResponsibleIdcard != null and defuseResponsibleIdcard != ''">
|
|
defuse_responsible_idcard = #{defuseResponsibleIdcard},
|
|
</if>
|
|
<if test="defuseResponsibleName != null and defuseResponsibleName != ''">
|
|
defuse_responsible_name = #{defuseResponsibleName},
|
|
</if>
|
|
<if test="defuseResponsiblePhone != null and defuseResponsiblePhone != ''">
|
|
defuse_responsible_phone = #{defuseResponsiblePhone},
|
|
</if>
|
|
<if test="defuseStatus != null and defuseStatus != ''">
|
|
defuse_status = #{defuseStatus},
|
|
</if>
|
|
<if test="defuseDescription != null and defuseDescription != ''">
|
|
defuse_description = #{defuseDescription},
|
|
</if>
|
|
<if test="evaluationTime != null and evaluationTime != ''">
|
|
evaluation_time = #{evaluationTime},
|
|
</if>
|
|
<if test="evaluationOpinion != null and evaluationOpinion != ''">
|
|
evaluation_opinion = #{evaluationOpinion},
|
|
</if>
|
|
<if test="measureDescription != null and measureDescription != ''">
|
|
measure_description = #{measureDescription},
|
|
</if>
|
|
<if test="recordDescription != null and recordDescription != ''">
|
|
record_description = #{recordDescription},
|
|
</if>
|
|
<if test="partybPopulationInfoId != null and partybPopulationInfoId != ''">
|
|
partyb_population_info_id = #{partybPopulationInfoId},
|
|
</if>
|
|
<if test="partybIdcard != null and partybIdcard != ''">
|
|
partyb_idcard = #{partybIdcard},
|
|
</if>
|
|
<if test="partybName != null and partybName != ''">
|
|
partyb_name = #{partybName},
|
|
</if>
|
|
<if test="partybPhone != null and partybPhone != ''">
|
|
partyb_phone = #{partybPhone},
|
|
</if>
|
|
gmt_modified = #{gmtModified},
|
|
modifier = #{modifier},
|
|
dispute_id = dispute_id
|
|
WHERE
|
|
dispute_id = #{disputeId}
|
|
</update>
|
|
|
|
<!-- 信访管理-矛盾纠纷详情 -->
|
|
<select id="get" parameterType="map" resultMap="disputeDTO">
|
|
SELECT
|
|
t1.case_name,
|
|
t1.case_title,
|
|
t1.case_time,
|
|
t1.case_address,
|
|
t1.case_lng,
|
|
t1.case_lat,
|
|
t1.case_map_address,
|
|
t1.case_area_code,
|
|
t1.case_area_name,
|
|
t1.case_scale,
|
|
t2.dictionary_name AS case_scale_name,
|
|
t1.case_type,
|
|
t3.dictionary_name AS case_type_name,
|
|
t1.case_estimate,
|
|
t4.dictionary_name AS case_estimate_name,
|
|
t1.case_degree,
|
|
t5.dictionary_name AS case_degree_name,
|
|
t1.case_level,
|
|
t6.dictionary_name AS case_level_name,
|
|
t1.dispute_type,
|
|
t7.dictionary_name AS dispute_type_name,
|
|
t1.dispute_level,
|
|
t8.dictionary_name AS dispute_level_name,
|
|
t1.risk_type,
|
|
t9.dictionary_name AS risk_type_name,
|
|
t1.risk_level,
|
|
t10.dictionary_name AS risk_level_name,
|
|
t1.dispute_money,
|
|
t1.dispute_number,
|
|
t1.dispute_organization,
|
|
t1.mediate_last_time,
|
|
t1.case_description,
|
|
t1.case_images,
|
|
t1.party_population_info_id,
|
|
t1.party_idcard_type,
|
|
t1.party_idcard,
|
|
t1.party_name,
|
|
t1.party_phone,
|
|
t1.party_sex,
|
|
t1.party_nation,
|
|
t1.party_education,
|
|
t1.party_type,
|
|
t1.party_address,
|
|
t1.party_area_code,
|
|
t1.party_area_name,
|
|
t1.defuse_time,
|
|
t1.defuse_way,
|
|
t11.dictionary_name AS defuse_way_name,
|
|
t1.defuse_organization,
|
|
t1.defuse_responsible_population_info_id,
|
|
t1.defuse_responsible_idcard,
|
|
t1.defuse_responsible_name,
|
|
t1.defuse_responsible_phone,
|
|
t1.defuse_status,
|
|
t1.defuse_description,
|
|
t1.evaluation_time,
|
|
t1.evaluation_opinion,
|
|
t1.measure_description,
|
|
t1.record_description,
|
|
t1.partyb_population_info_id,
|
|
t1.partyb_idcard,
|
|
t1.partyb_name,
|
|
t1.partyb_phone,
|
|
t1.dispute_id
|
|
FROM
|
|
population_dispute t1
|
|
LEFT JOIN
|
|
data_dictionary t2
|
|
ON
|
|
t1.case_scale = t2.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t3
|
|
ON
|
|
t1.case_type = t3.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t4
|
|
ON
|
|
t1.case_estimate = t4.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t5
|
|
ON
|
|
t1.case_scale = t5.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t6
|
|
ON
|
|
t1.case_degree = t6.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t7
|
|
ON
|
|
t1.case_level = t7.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t8
|
|
ON
|
|
t1.dispute_type = t8.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t9
|
|
ON
|
|
t1.dispute_level = t9.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t10
|
|
ON
|
|
t1.risk_type = t10.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t11
|
|
ON
|
|
t1.risk_level = t11.dictionary_id
|
|
WHERE
|
|
t1.is_delete = 0
|
|
<if test="disputeId != null and disputeId != ''">
|
|
AND
|
|
t1.dispute_id = #{disputeId}
|
|
</if>
|
|
</select>
|
|
|
|
<!-- 信访管理-矛盾纠纷详情 -->
|
|
<select id="getBO" parameterType="map" resultMap="disputeBO">
|
|
SELECT
|
|
t1.dispute_id,
|
|
t1.case_name,
|
|
t1.case_title,
|
|
t1.case_time,
|
|
t1.case_address,
|
|
t1.case_lng,
|
|
t1.case_lat,
|
|
t1.case_map_address,
|
|
t1.case_scale,
|
|
t1.case_type,
|
|
t1.case_estimate,
|
|
t1.case_degree,
|
|
t1.case_level,
|
|
t1.dispute_type,
|
|
t1.dispute_level,
|
|
t1.risk_type,
|
|
t1.risk_level,
|
|
t1.dispute_money,
|
|
t1.dispute_number,
|
|
t1.dispute_organization,
|
|
t1.mediate_last_time,
|
|
t1.case_description,
|
|
t1.case_images,
|
|
t1.party_population_info_id,
|
|
t1.party_idcard_type,
|
|
t1.party_idcard,
|
|
t1.party_name,
|
|
t1.party_phone,
|
|
t1.party_sex,
|
|
t1.party_nation,
|
|
t1.party_education,
|
|
t1.party_type,
|
|
t1.party_address,
|
|
t1.defuse_time,
|
|
t1.defuse_way,
|
|
t1.defuse_organization,
|
|
t1.defuse_responsible_population_info_id,
|
|
t1.defuse_responsible_idcard,
|
|
t1.defuse_responsible_name,
|
|
t1.defuse_responsible_phone,
|
|
t1.defuse_status,
|
|
t1.defuse_description,
|
|
t1.evaluation_time,
|
|
t1.evaluation_opinion,
|
|
t1.measure_description,
|
|
t1.record_description,
|
|
t1.partyb_population_info_id,
|
|
t1.partyb_idcard,
|
|
t1.partyb_name,
|
|
t1.partyb_phone,
|
|
t1.creator,
|
|
t1.gmt_create,
|
|
t1.modifier,
|
|
t1.gmt_modified,
|
|
t1.is_delete
|
|
FROM
|
|
population_dispute t1
|
|
WHERE
|
|
t1.is_delete = 0
|
|
<if test="disputeId != null and disputeId != ''">
|
|
AND
|
|
t1.dispute_id = #{disputeId}
|
|
</if>
|
|
</select>
|
|
|
|
<!-- 信访管理-矛盾纠纷详情 -->
|
|
<select id="getPO" parameterType="map" resultMap="disputePO">
|
|
SELECT
|
|
t1.dispute_id,
|
|
t1.case_name,
|
|
t1.case_title,
|
|
t1.case_time,
|
|
t1.case_address,
|
|
t1.case_lng,
|
|
t1.case_lat,
|
|
t1.case_map_address,
|
|
t1.case_scale,
|
|
t1.case_type,
|
|
t1.case_estimate,
|
|
t1.case_degree,
|
|
t1.case_level,
|
|
t1.dispute_type,
|
|
t1.dispute_level,
|
|
t1.risk_type,
|
|
t1.risk_level,
|
|
t1.dispute_money,
|
|
t1.dispute_number,
|
|
t1.dispute_organization,
|
|
t1.mediate_last_time,
|
|
t1.case_description,
|
|
t1.case_images,
|
|
t1.party_population_info_id,
|
|
t1.party_idcard_type,
|
|
t1.party_idcard,
|
|
t1.party_name,
|
|
t1.party_phone,
|
|
t1.party_sex,
|
|
t1.party_nation,
|
|
t1.party_education,
|
|
t1.party_type,
|
|
t1.party_address,
|
|
t1.defuse_time,
|
|
t1.defuse_way,
|
|
t1.defuse_organization,
|
|
t1.defuse_responsible_population_info_id,
|
|
t1.defuse_responsible_idcard,
|
|
t1.defuse_responsible_name,
|
|
t1.defuse_responsible_phone,
|
|
t1.defuse_status,
|
|
t1.defuse_description,
|
|
t1.evaluation_time,
|
|
t1.evaluation_opinion,
|
|
t1.measure_description,
|
|
t1.record_description,
|
|
t1.partyb_population_info_id,
|
|
t1.partyb_idcard,
|
|
t1.partyb_name,
|
|
t1.partyb_phone,
|
|
t1.creator,
|
|
t1.gmt_create,
|
|
t1.modifier,
|
|
t1.gmt_modified,
|
|
t1.is_delete
|
|
FROM
|
|
population_dispute t1
|
|
WHERE
|
|
t1.is_delete = 0
|
|
<if test="disputeId != null and disputeId != ''">
|
|
AND
|
|
t1.dispute_id = #{disputeId}
|
|
</if>
|
|
</select>
|
|
|
|
<!-- 信访管理-矛盾纠纷列表 -->
|
|
<select id="list" parameterType="map" resultMap="disputeDTO">
|
|
SELECT
|
|
t1.case_name,
|
|
t1.case_title,
|
|
t1.case_time,
|
|
t1.case_address,
|
|
t1.case_lng,
|
|
t1.case_lat,
|
|
t1.case_map_address,
|
|
t1.case_area_code,
|
|
t1.case_area_name,
|
|
t1.case_scale,
|
|
t2.dictionary_name AS case_scale_name,
|
|
t1.case_type,
|
|
t3.dictionary_name AS case_type_name,
|
|
t1.case_estimate,
|
|
t4.dictionary_name AS case_estimate_name,
|
|
t1.case_degree,
|
|
t5.dictionary_name AS case_degree_name,
|
|
t1.case_level,
|
|
t6.dictionary_name AS case_level_name,
|
|
t1.dispute_type,
|
|
t7.dictionary_name AS dispute_type_name,
|
|
t1.dispute_level,
|
|
t8.dictionary_name AS dispute_level_name,
|
|
t1.risk_type,
|
|
t9.dictionary_name AS risk_type_name,
|
|
t1.risk_level,
|
|
t10.dictionary_name AS risk_level_name,
|
|
t1.dispute_money,
|
|
t1.dispute_number,
|
|
t1.dispute_organization,
|
|
t1.mediate_last_time,
|
|
t1.case_description,
|
|
t1.case_images,
|
|
t1.party_population_info_id,
|
|
t1.party_idcard_type,
|
|
t1.party_idcard,
|
|
t1.party_name,
|
|
t1.party_phone,
|
|
t1.party_sex,
|
|
t1.party_nation,
|
|
t1.party_education,
|
|
t1.party_type,
|
|
t1.party_address,
|
|
t1.party_area_code,
|
|
t1.party_area_name,
|
|
t1.defuse_time,
|
|
t1.defuse_way,
|
|
t11.dictionary_name AS defuse_way_name,
|
|
t1.defuse_organization,
|
|
t1.defuse_responsible_population_info_id,
|
|
t1.defuse_responsible_idcard,
|
|
t1.defuse_responsible_name,
|
|
t1.defuse_responsible_phone,
|
|
t1.defuse_status,
|
|
t1.defuse_description,
|
|
t1.evaluation_time,
|
|
t1.evaluation_opinion,
|
|
t1.measure_description,
|
|
t1.record_description,
|
|
t1.partyb_population_info_id,
|
|
t1.partyb_idcard,
|
|
t1.partyb_name,
|
|
t1.partyb_phone,
|
|
t1.dispute_id,
|
|
t1.creator
|
|
FROM
|
|
population_dispute t1
|
|
LEFT JOIN
|
|
data_dictionary t2
|
|
ON
|
|
t1.case_scale = t2.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t3
|
|
ON
|
|
t1.case_type = t3.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t4
|
|
ON
|
|
t1.case_estimate = t4.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t5
|
|
ON
|
|
t1.case_scale = t5.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t6
|
|
ON
|
|
t1.case_degree = t6.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t7
|
|
ON
|
|
t1.case_level = t7.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t8
|
|
ON
|
|
t1.dispute_type = t8.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t9
|
|
ON
|
|
t1.dispute_level = t9.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t10
|
|
ON
|
|
t1.risk_type = t10.dictionary_id
|
|
LEFT JOIN
|
|
data_dictionary t11
|
|
ON
|
|
t1.risk_level = t11.dictionary_id
|
|
WHERE
|
|
t1.is_delete = 0
|
|
<if test="creator != null and creator != ''">
|
|
AND t1.creator = #{creator}
|
|
</if>
|
|
<if test="caseName != null and caseName != ''">
|
|
AND t1.case_name LIKE CONCAT('%', #{caseName}, '%')
|
|
</if>
|
|
<if test="caseTitle != null and caseTitle != ''">
|
|
AND t1.case_title LIKE CONCAT('%', #{caseTitle}, '%')
|
|
</if>
|
|
<if test="caseScale != null and caseScale != ''">
|
|
AND t1.case_scale = #{caseScale}
|
|
</if>
|
|
<if test="caseType != null and caseType != ''">
|
|
AND t1.case_type = #{caseType}
|
|
</if>
|
|
<if test="populationInfoId != null and populationInfoId != ''">
|
|
AND (t1.party_population_info_id = #{populationInfoId} OR t1.partyb_population_info_id = #{populationInfoId})
|
|
</if>
|
|
<if test="keywords != null and keywords != ''">
|
|
AND (
|
|
<!-- 这里添加其他条件 -->
|
|
t1.case_name LIKE CONCAT('%', #{keywords}, '%')
|
|
OR
|
|
t1.case_title LIKE CONCAT('%', #{keywords}, '%')
|
|
)
|
|
</if>
|
|
<if test="startTime != null and startTime != ''">
|
|
AND
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
|
</if>
|
|
<if test="endTime != null and endTime != ''">
|
|
AND
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
|
</if>
|
|
<if test="disputeIds != null and disputeIds.size > 0">
|
|
AND
|
|
t1.dispute_id IN
|
|
<foreach collection="disputeIds" index="index" open="(" separator="," close=")">
|
|
#{disputeIds[${index}]}
|
|
</foreach>
|
|
</if>
|
|
ORDER BY t1.gmt_create DESC
|
|
</select>
|
|
|
|
<!-- 信访管理-矛盾纠纷列表 -->
|
|
<select id="listBO" parameterType="map" resultMap="disputeBO">
|
|
SELECT
|
|
t1.dispute_id,
|
|
t1.case_name,
|
|
t1.case_title,
|
|
t1.case_time,
|
|
t1.case_address,
|
|
t1.case_lng,
|
|
t1.case_lat,
|
|
t1.case_map_address,
|
|
t1.case_scale,
|
|
t1.case_type,
|
|
t1.case_estimate,
|
|
t1.case_degree,
|
|
t1.case_level,
|
|
t1.dispute_type,
|
|
t1.dispute_level,
|
|
t1.risk_type,
|
|
t1.risk_level,
|
|
t1.dispute_money,
|
|
t1.dispute_number,
|
|
t1.dispute_organization,
|
|
t1.mediate_last_time,
|
|
t1.case_description,
|
|
t1.case_images,
|
|
t1.party_population_info_id,
|
|
t1.party_idcard_type,
|
|
t1.party_idcard,
|
|
t1.party_name,
|
|
t1.party_phone,
|
|
t1.party_sex,
|
|
t1.party_nation,
|
|
t1.party_education,
|
|
t1.party_type,
|
|
t1.party_address,
|
|
t1.defuse_time,
|
|
t1.defuse_way,
|
|
t1.defuse_organization,
|
|
t1.defuse_responsible_population_info_id,
|
|
t1.defuse_responsible_idcard,
|
|
t1.defuse_responsible_name,
|
|
t1.defuse_responsible_phone,
|
|
t1.defuse_status,
|
|
t1.defuse_description,
|
|
t1.evaluation_time,
|
|
t1.evaluation_opinion,
|
|
t1.measure_description,
|
|
t1.record_description,
|
|
t1.partyb_population_info_id,
|
|
t1.partyb_idcard,
|
|
t1.partyb_name,
|
|
t1.partyb_phone,
|
|
t1.creator,
|
|
t1.gmt_create,
|
|
t1.modifier,
|
|
t1.gmt_modified,
|
|
t1.is_delete
|
|
FROM
|
|
population_dispute t1
|
|
WHERE
|
|
t1.is_delete = 0
|
|
<if test="keywords != null and keywords != ''">
|
|
AND (
|
|
<!-- 这里添加其他条件 -->
|
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
|
)
|
|
</if>
|
|
<if test="startTime != null and startTime != ''">
|
|
AND
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
|
</if>
|
|
<if test="endTime != null and endTime != ''">
|
|
AND
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
|
</if>
|
|
<if test="disputeIds != null and disputeIds.size > 0">
|
|
AND
|
|
t1.dispute_id IN
|
|
<foreach collection="disputeIds" index="index" open="(" separator="," close=")">
|
|
#{disputeIds[${index}]}
|
|
</foreach>
|
|
</if>
|
|
</select>
|
|
|
|
<!-- 信访管理-矛盾纠纷列表 -->
|
|
<select id="listPO" parameterType="map" resultMap="disputePO">
|
|
SELECT
|
|
t1.dispute_id,
|
|
t1.case_name,
|
|
t1.case_title,
|
|
t1.case_time,
|
|
t1.case_address,
|
|
t1.case_lng,
|
|
t1.case_lat,
|
|
t1.case_map_address,
|
|
t1.case_scale,
|
|
t1.case_type,
|
|
t1.case_estimate,
|
|
t1.case_degree,
|
|
t1.case_level,
|
|
t1.dispute_type,
|
|
t1.dispute_level,
|
|
t1.risk_type,
|
|
t1.risk_level,
|
|
t1.dispute_money,
|
|
t1.dispute_number,
|
|
t1.dispute_organization,
|
|
t1.mediate_last_time,
|
|
t1.case_description,
|
|
t1.case_images,
|
|
t1.party_population_info_id,
|
|
t1.party_idcard_type,
|
|
t1.party_idcard,
|
|
t1.party_name,
|
|
t1.party_phone,
|
|
t1.party_sex,
|
|
t1.party_nation,
|
|
t1.party_education,
|
|
t1.party_type,
|
|
t1.party_address,
|
|
t1.defuse_time,
|
|
t1.defuse_way,
|
|
t1.defuse_organization,
|
|
t1.defuse_responsible_population_info_id,
|
|
t1.defuse_responsible_idcard,
|
|
t1.defuse_responsible_name,
|
|
t1.defuse_responsible_phone,
|
|
t1.defuse_status,
|
|
t1.defuse_description,
|
|
t1.evaluation_time,
|
|
t1.evaluation_opinion,
|
|
t1.measure_description,
|
|
t1.record_description,
|
|
t1.partyb_population_info_id,
|
|
t1.partyb_idcard,
|
|
t1.partyb_name,
|
|
t1.partyb_phone,
|
|
t1.creator,
|
|
t1.gmt_create,
|
|
t1.modifier,
|
|
t1.gmt_modified,
|
|
t1.is_delete
|
|
FROM
|
|
population_dispute t1
|
|
WHERE
|
|
t1.is_delete = 0
|
|
<if test="keywords != null and keywords != ''">
|
|
AND (
|
|
<!-- 这里添加其他条件 -->
|
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
|
)
|
|
</if>
|
|
<if test="startTime != null and startTime != ''">
|
|
AND
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
|
</if>
|
|
<if test="endTime != null and endTime != ''">
|
|
AND
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
|
</if>
|
|
<if test="disputeIds != null and disputeIds.size > 0">
|
|
AND
|
|
t1.dispute_id IN
|
|
<foreach collection="disputeIds" index="index" open="(" separator="," close=")">
|
|
#{disputeIds[${index}]}
|
|
</foreach>
|
|
</if>
|
|
</select>
|
|
|
|
<!-- 信访管理-矛盾纠纷统计 -->
|
|
<select id="count" parameterType="map" resultType="Integer">
|
|
SELECT
|
|
COUNT(*)
|
|
FROM
|
|
population_dispute t1
|
|
WHERE
|
|
t1.is_delete = 0
|
|
</select>
|
|
|
|
</mapper> |