|
@@ -1,6 +1,5 @@
|
|
|
package com.sooka.sponest.mobile.comprehensive.personBasicInfoController;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ruoyi.common.core.constant.HttpStatus;
|
|
@@ -12,10 +11,8 @@ import com.ruoyi.common.security.utils.DictUtils;
|
|
|
import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.domain.OtherPersonInfo;
|
|
|
import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.domain.PersonBasicInfo;
|
|
|
import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.service.RemotePersonBasicInfoService;
|
|
|
-import com.sooka.sponest.comprehensive.api.dict.domain.DictKeys;
|
|
|
+import com.ruoyi.common.core.domain.DictKeys;
|
|
|
import com.sooka.sponest.data.api.digitalenvironment.domain.EnvironmentBiggas;
|
|
|
-import com.sooka.sponest.data.api.digitalenvironment.service.RemoteBiggasService;
|
|
|
-import com.sooka.sponest.mobile.system.camera.service.AppCameraService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -208,7 +205,7 @@ public class AppPersonBasicInfoController {
|
|
|
}
|
|
|
|
|
|
private void setCampusAroundPerson(HashMap<String, Object> json) {//4
|
|
|
- json.put("harmLevelLabel", getDictData("comprehensive_degree_of_harm", String.valueOf(json.get("harmLevel"))));//危害程度
|
|
|
+ json.put("harmLevelLabel", getDictData(DictKeys.COMPREHENSIVE_DEGREE_OF_HARM, String.valueOf(json.get("harmLevel"))));//危害程度
|
|
|
json.put("focusPeopleLabel", "1".equals(json.get("focusPeople")) ? "是" : "否");//是否关注
|
|
|
}
|
|
|
|
|
@@ -223,9 +220,9 @@ public class AppPersonBasicInfoController {
|
|
|
|
|
|
private void setCommunityCorrectionStaff(HashMap<String, Object> json) {//6
|
|
|
json.put("caseCategoryLabel", getDictData("comprehensive_case_category", String.valueOf(json.get("caseCategory"))));//案件类别
|
|
|
+ json.put("correctiveReleaseTypeLabel", null == json.get("correctiveReleaseType") ? null : getDictData(DictKeys.COMPREHENSIVE_CORRECTIVE_RELEASE_TYPE, String.valueOf(json.get("correctiveReleaseType"))));//矫正解除(终止)类型
|
|
|
json.put("receivingModeLabel", getDictData(DictKeys.COMPREHENSIVE_RECEIVING_METHOD, String.valueOf(json.get("receivingMode"))));//接收方式
|
|
|
json.put("correctionClassLabel", getDictData(DictKeys.COMPREHENSIVE_CORRECTIVE_CATEGORY, String.valueOf(json.get("correctionClass"))));//矫正类别
|
|
|
- json.put("correctiveReleaseTypeLabel", null == json.get("correctiveReleaseType") ? null : getDictData("comprehensive_corrective_release_type", String.valueOf(json.get("correctiveReleaseType"))));//矫正解除(终止)类型
|
|
|
json.put("tubeLabel", "1".equals(json.get("tube")) ? "是" : "否");//是否有脱管
|
|
|
json.put("leakingPipesLabel", "1".equals(json.get("leakingPipes")) ? "是" : "否");//是否有漏管
|
|
|
json.put("recidivismLabel", null == json.get("recidivism") ? null : "1".equals(json.get("recidivism")) ? "是" : "否");//是否累惯犯
|
|
@@ -233,42 +230,42 @@ public class AppPersonBasicInfoController {
|
|
|
json.put("reoffendLabel", "1".equals(json.get("reoffend")) ? "是" : "否");//是否重新犯罪
|
|
|
json.put("fourHistoriesListLabel", getDictDataList(DictKeys.COMPREHENSIVE_THREE_INVOLVED_SITUATION, (List<String>) json.get("fourHistoriesList")));//“四史”情况
|
|
|
json.put("threeStepListLabel", getDictDataList("comprehensive_three_involved_situation", (List<String>) json.get("threeStepList")));//“三涉”情况
|
|
|
- json.put("correctionTeamCompositionListLabel", getDictDataList("comprehensive_corrections_team_composition_type", (List<String>) json.get("correctionTeamCompositionList")));//矫正小组人员组成情况
|
|
|
+ json.put("correctionTeamCompositionListLabel", getDictDataList(DictKeys.COMPREHENSIVE_CORRECTIONS_TEAM_COMPOSITION_TYPE, (List<String>) json.get("correctionTeamCompositionList")));//矫正小组人员组成情况
|
|
|
}
|
|
|
|
|
|
private void setPsychosisPopulation(HashMap<String, Object> json) {//7
|
|
|
- json.put("familyEconomicSituationLabel", null == json.get("familyEconomicSituationLabel") ? null : getDictData("comprehensive_households_financial_situation", String.valueOf(json.get("familyEconomicSituationLabel"))));//家庭经济状况
|
|
|
+ json.put("familyEconomicSituationLabel", null == json.get("familyEconomicSituationLabel") ? null : getDictData(DictKeys.COMPREHENSIVE_HOUSEHOLDS_FINANCIAL_SITUATION, String.valueOf(json.get("familyEconomicSituationLabel"))));//家庭经济状况
|
|
|
json.put("subsistenceAllowanceLabel", "1".equals(json.get("subsistenceAllowance")) ? "是" : "否");//是否纳入低保
|
|
|
- json.put("diagnosisTypeLabel", getDictData("comprehensive_current_diagnostic", String.valueOf(json.get("diagnosisType"))));//目前诊断类型
|
|
|
+ json.put("diagnosisTypeLabel", getDictData(DictKeys.COMPREHENSIVE_CURRENT_DIAGNOSTIC, String.valueOf(json.get("diagnosisType"))));//目前诊断类型
|
|
|
json.put("historyCausingAccidentsLabel", "1".equals(json.get("historyCausingAccidents")) ? "有" : "无");//有无肇事肇祸史
|
|
|
- json.put("riskAssessmentLevelLabel", getDictData("comprehensive_hazard_assessment", String.valueOf(json.get("riskAssessmentLevel"))));//目前危险性评估等级
|
|
|
- json.put("treatmentSituationLabel", getDictData("comprehensive_treatment_conditions", String.valueOf(json.get("treatmentSituation"))));//治疗情况
|
|
|
- json.put("reasonsHospitalizationListLabel", getDictDataList("comprehensive_hospitalization_reasons", (List<String>) json.get("reasonsHospitalizationList")));//实施住院治疗原因
|
|
|
- json.put("participatingManagersListLabel", getDictDataList("comprehensive_managers", (List<String>) json.get("participatingManagersList")));//参与管理人员
|
|
|
- json.put("assistanceSituationListLabel", getDictDataList("comprehensive_help_situation", (List<String>) json.get("assistanceSituationList")));//帮扶情况
|
|
|
+ json.put("riskAssessmentLevelLabel", getDictData(DictKeys.COMPREHENSIVE_HAZARD_ASSESSMENT, String.valueOf(json.get("riskAssessmentLevel"))));//目前危险性评估等级
|
|
|
+ json.put("treatmentSituationLabel", getDictData(DictKeys.COMPREHENSIVE_TREATMENT_CONDITIONS, String.valueOf(json.get("treatmentSituation"))));//治疗情况
|
|
|
+ json.put("reasonsHospitalizationListLabel", getDictDataList(DictKeys.COMPREHENSIVE_HOSPITALIZATION_REASONS, (List<String>) json.get("reasonsHospitalizationList")));//实施住院治疗原因
|
|
|
+ json.put("participatingManagersListLabel", getDictDataList(DictKeys.COMPREHENSIVE_MANAGERS, (List<String>) json.get("participatingManagersList")));//参与管理人员
|
|
|
+ json.put("assistanceSituationListLabel", getDictDataList(DictKeys.COMPREHENSIVE_HELP_SITUATION, (List<String>) json.get("assistanceSituationList")));//帮扶情况
|
|
|
}
|
|
|
|
|
|
private void setDrugAddict(HashMap<String, Object> json) {//8
|
|
|
- json.put("controlSituationLabel", getDictData("comprehensive_governance", String.valueOf(json.get("controlSituation"))));//管控情况
|
|
|
+ json.put("controlSituationLabel", getDictData(DictKeys.COMPREHENSIVE_GOVERNANCE, String.valueOf(json.get("controlSituation"))));//管控情况
|
|
|
json.put("criminalHistoryLabel", null == json.get("criminalHistory") ? null : "1".equals(json.get("criminalHistory")) ? "有" : "无");//有无犯罪史
|
|
|
json.put("drugUseLabel", getDictData("comprehensive_case_consequence", String.valueOf(json.get("drugUse"))));//吸毒原因
|
|
|
json.put("drugAbuseLabel", null == json.get("drugAbuse") ? null : getDictData("comprehensive_case_consequence", String.valueOf(json.get("drugAbuse"))));//吸毒后果
|
|
|
}
|
|
|
|
|
|
private void setAidsRisk(HashMap<String, Object> json) {//9
|
|
|
- json.put("routeInfectionLabel", getDictData("comprehensive_route_of_infection", String.valueOf(json.get("routeInfection"))));//感染途径
|
|
|
+ json.put("routeInfectionLabel", getDictData(DictKeys.COMPREHENSIVE_ROUTE_OF_INFECTION, String.valueOf(json.get("routeInfection"))));//感染途径
|
|
|
json.put("criminalHistoryLabel", "1".equals(json.get("criminalHistory")) ? "是" : "否");//是否有违法犯罪史
|
|
|
json.put("caseCategoryLabel", null == json.get("caseCategory") ? null : getDictData("comprehensive_case_category", String.valueOf(json.get("caseCategory"))));//案件类别
|
|
|
- json.put("concernTypeLabel", getDictData("comprehensive_type_of_concern", String.valueOf(json.get("concernType"))));//关注类型
|
|
|
- json.put("admissionSituationLabel", null == json.get("admissionSituation") ? null : getDictData("comprehensive_admission_to_inertia", String.valueOf(json.get("admissionSituation"))));//收治情况
|
|
|
+ json.put("concernTypeLabel", getDictData(DictKeys.COMPREHENSIVE_TYPE_OF_CONCERN, String.valueOf(json.get("concernType"))));//关注类型
|
|
|
+ json.put("admissionSituationLabel", null == json.get("admissionSituation") ? null : getDictData(DictKeys.COMPREHENSIVE_ADMISSION_TO_INERTIA, String.valueOf(json.get("admissionSituation"))));//收治情况
|
|
|
}
|
|
|
|
|
|
private void setKeyYouth(HashMap<String, Object> json) {//10
|
|
|
- json.put("personTypeLabel", null == json.get("personType") ? null : getDictData("comprehensive_type_of_person", String.valueOf(json.get("personType"))));//人员类型
|
|
|
- json.put("familySituationLabel", getDictData("comprehensive_family_inertia", String.valueOf(json.get("familySituation"))));//家庭情况
|
|
|
+ json.put("personTypeLabel", null == json.get("personType") ? null : getDictData(DictKeys.COMPREHENSIVE_TYPE_OF_PERSON, String.valueOf(json.get("personType"))));//人员类型
|
|
|
+ json.put("familySituationLabel", getDictData(DictKeys.COMPREHENSIVE_FAMILY_INERTIA, String.valueOf(json.get("familySituation"))));//家庭情况
|
|
|
json.put("guardianRelationLabel", getDictData("comprehensive_relation", String.valueOf(json.get("guardianRelation"))));//与监护人关系
|
|
|
json.put("reoffendLabel", "1".equals(json.get("reoffend")) ? "是" : "否");//是否违法犯罪
|
|
|
- json.put("meansAssistanceLabel", getDictData("comprehensive_means_of_help", String.valueOf(json.get("meansAssistance"))));//帮扶手段
|
|
|
+ json.put("meansAssistanceLabel", getDictData(DictKeys.COMPREHENSIVE_MEANS_OF_HELP, String.valueOf(json.get("meansAssistance"))));//帮扶手段
|
|
|
}
|
|
|
|
|
|
private String getDictData(String dictKey, String value) {
|