From 4e8afee4b98b137ef0ea560f884d4b79b5d23bf9 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Mon, 18 Oct 2021 18:40:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E6=A0=A1=E5=91=A8=E8=BE=B9=E9=87=8D?= =?UTF-8?q?=E7=82=B9=E4=BA=BA=E5=91=98=20=E4=BB=A5=E4=B8=8A=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/schoolkey/SchoolKeyController.java | 16 + .../pojo/dtos/population/PopulationDTO.java | 317 ++++++++++++++++++ .../populationmsg/IPopulationMsgService.java | 23 ++ .../resources/templates/schoolkey/list.html | 58 +--- .../resources/templates/schoolkey/save.html | 218 +++++++----- .../resources/templates/schoolkey/update.html | 229 ++++++++----- 6 files changed, 648 insertions(+), 213 deletions(-) create mode 100644 src/main/java/cn/com/tenlion/systembase/pojo/dtos/population/PopulationDTO.java create mode 100644 src/main/java/cn/com/tenlion/systembase/remote/populationmsg/IPopulationMsgService.java diff --git a/src/main/java/cn/com/tenlion/systembase/controller/api/schoolkey/SchoolKeyController.java b/src/main/java/cn/com/tenlion/systembase/controller/api/schoolkey/SchoolKeyController.java index a959366..1b55f92 100644 --- a/src/main/java/cn/com/tenlion/systembase/controller/api/schoolkey/SchoolKeyController.java +++ b/src/main/java/cn/com/tenlion/systembase/controller/api/schoolkey/SchoolKeyController.java @@ -1,7 +1,9 @@ package cn.com.tenlion.systembase.controller.api.schoolkey; +import cn.com.tenlion.systembase.pojo.dtos.population.PopulationDTO; import cn.com.tenlion.systembase.pojo.dtos.schoolkey.SchoolKeyDTO; import cn.com.tenlion.systembase.pojo.vos.schoolkey.SchoolKeyVO; +import cn.com.tenlion.systembase.remote.populationmsg.IPopulationMsgService; import cn.com.tenlion.systembase.service.schoolkey.ISchoolKeyService; import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.common.base.DefaultBaseController; @@ -33,6 +35,8 @@ public class SchoolKeyController extends DefaultBaseController { @Autowired private ISchoolKeyService schoolKeyService; + @Autowired + private IPopulationMsgService populationMsgService; @ApiOperation(value = "新增学校周边重点人员", notes = "新增学校周边重点人员接口") @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @@ -108,4 +112,16 @@ public class SchoolKeyController extends DefaultBaseController { return new SuccessResultData<>(schoolKeyService.count(params)); } + @ApiOperation(value = "住户信息表详情", notes = "住户信息表详情接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "houseUserId", value = "住户信息表ID", paramType = "path") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("get-by-id-card-number/{cardNumber}") + public PopulationDTO getByIdCardNumber(@PathVariable("cardNumber") String cardNumber) { + String url = "http://192.168.0.109:8080/population"; + PopulationDTO populationDTO = populationMsgService.getByIdCardNumber(url, cardNumber); + return populationDTO; + } + } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/systembase/pojo/dtos/population/PopulationDTO.java b/src/main/java/cn/com/tenlion/systembase/pojo/dtos/population/PopulationDTO.java new file mode 100644 index 0000000..e085c40 --- /dev/null +++ b/src/main/java/cn/com/tenlion/systembase/pojo/dtos/population/PopulationDTO.java @@ -0,0 +1,317 @@ +package cn.com.tenlion.systembase.pojo.dtos.population; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + * @ClassName: BasePopulationInfoDTO + * @Description: 人员信息基础表 + * @Author: WenG + * @Date: 2020-11-16 17:17 + * @Version: 1.0 + **/ +@ApiModel +public class PopulationDTO { + + @ApiModelProperty(name = "basePopulationInfoId", value = "主键") + private String basePopulationInfoId; + @ApiModelProperty(name = "idCardNumber", value = "公民身份证号") + private String idCardNumber; + @ApiModelProperty(name = "fullName", value = "全名") + private String fullName; + @ApiModelProperty(name = "nameUsedBefore", value = "曾用名") + private String nameUsedBefore; + @ApiModelProperty(name = "gender", value = "性别") + private String gender; + @ApiModelProperty(name = "genderDictionaryName", value = "性别字典名称") + private String genderDictionaryName; + @ApiModelProperty(name = "birthDate", value = "出生日期") + private String birthDate; + @ApiModelProperty(name = "nation", value = "民族") + private String nation; + @ApiModelProperty(name = "nationDictionaryName", value = "民族字典名称") + private String nationDictionaryName; + @ApiModelProperty(name = "nativePlace", value = "籍贯") + private String nativePlace; + @ApiModelProperty(name = "nativePlaceAddr", value = "籍贯详细地址") + private String nativePlaceAddr; + @ApiModelProperty(name = "nativePlaceDictionaryName", value = "籍贯字典名称") + private String nativePlaceDictionaryName; + @ApiModelProperty(name = "politicalStatus", value = "政治面貌") + private String politicalStatus; + @ApiModelProperty(name = "politicalStatusDictionaryName", value = "政治面貌字典名称") + private String politicalStatusDictionaryName; + @ApiModelProperty(name = "maritalStatus", value = "婚姻情况") + private String maritalStatus; + @ApiModelProperty(name = "maritalStatusDictionaryName", value = "婚姻情况字典名称") + private String maritalStatusDictionaryName; + @ApiModelProperty(name = "education", value = "学历") + private String education; + @ApiModelProperty(name = "educationDictionaryName", value = "学历字典名称") + private String educationDictionaryName; + @ApiModelProperty(name = "religion", value = "宗教信仰") + private String religion; + @ApiModelProperty(name = "religionDictionaryName", value = "宗教信仰字典名称") + private String religionDictionaryName; + @ApiModelProperty(name = "occupationCategory", value = "职业类别") + private String occupationCategory; + @ApiModelProperty(name = "occupationCategoryDictionaryName", value = "职业类别字典名称") + private String occupationCategoryDictionaryName; + @ApiModelProperty(name = "occupation", value = "职业") + private String occupation; + @ApiModelProperty(name = "serviceSpace", value = "服务处所") + private String serviceSpace; + @ApiModelProperty(name = "telephone", value = "联系方式(手机号码或固话)") + private String telephone; + @ApiModelProperty(name = "registeredResidence", value = "户籍地") + private String registeredResidence; + @ApiModelProperty(name = "registeredResidenceDictionaryName", value = "户籍地字典名称") + private String registeredResidenceDictionaryName; + @ApiModelProperty(name = "registeredResidenceAddr", value = "户籍详细地址") + private String registeredResidenceAddr; + @ApiModelProperty(name = "currentResidence", value = "现住地") + private String currentResidence; + @ApiModelProperty(name = "currentResidenceDictionaryName", value = "现住地字典名称") + private String currentResidenceDictionaryName; + @ApiModelProperty(name = "currentResidenceAddr", value = "现住地详细地址") + private String currentResidenceAddr; + + public String getBasePopulationInfoId() { + return basePopulationInfoId == null ? "" : basePopulationInfoId.trim(); + } + + public void setBasePopulationInfoId(String basePopulationInfoId) { + this.basePopulationInfoId = basePopulationInfoId; + } + + public String getIdCardNumber() { + return idCardNumber == null ? "" : idCardNumber.trim(); + } + + public void setIdCardNumber(String idCardNumber) { + this.idCardNumber = idCardNumber; + } + + public String getFullName() { + return fullName == null ? "" : fullName.trim(); + } + + public void setFullName(String fullName) { + this.fullName = fullName; + } + + public String getNameUsedBefore() { + return nameUsedBefore == null ? "" : nameUsedBefore.trim(); + } + + public void setNameUsedBefore(String nameUsedBefore) { + this.nameUsedBefore = nameUsedBefore; + } + + public String getGender() { + return gender == null ? "" : gender.trim(); + } + + public void setGender(String gender) { + this.gender = gender; + } + + public String getGenderDictionaryName() { + return genderDictionaryName == null ? "" : genderDictionaryName.trim(); + } + + public void setGenderDictionaryName(String genderDictionaryName) { + this.genderDictionaryName = genderDictionaryName; + } + public String getBirthDate() { + return birthDate == null ? "" : birthDate.trim(); + } + + public void setBirthDate(String birthDate) { + this.birthDate = birthDate; + } + + public String getNation() { + return nation == null ? "" : nation.trim(); + } + + public void setNation(String nation) { + this.nation = nation; + } + + public String getNationDictionaryName() { + return nationDictionaryName == null ? "" : nationDictionaryName.trim(); + } + + public void setNationDictionaryName(String nationDictionaryName) { + this.nationDictionaryName = nationDictionaryName; + } + public String getNativePlace() { + return nativePlace == null ? "" : nativePlace.trim(); + } + + public void setNativePlace(String nativePlace) { + this.nativePlace = nativePlace; + } + + public String getNativePlaceDictionaryName() { + return nativePlaceDictionaryName == null ? "" : nativePlaceDictionaryName.trim(); + } + + public void setNativePlaceDictionaryName(String nativePlaceDictionaryName) { + this.nativePlaceDictionaryName = nativePlaceDictionaryName; + } + public String getPoliticalStatus() { + return politicalStatus == null ? "" : politicalStatus.trim(); + } + + public void setPoliticalStatus(String politicalStatus) { + this.politicalStatus = politicalStatus; + } + + public String getPoliticalStatusDictionaryName() { + return politicalStatusDictionaryName == null ? "" : politicalStatusDictionaryName.trim(); + } + + public void setPoliticalStatusDictionaryName(String politicalStatusDictionaryName) { + this.politicalStatusDictionaryName = politicalStatusDictionaryName; + } + public String getMaritalStatus() { + return maritalStatus == null ? "" : maritalStatus.trim(); + } + + public void setMaritalStatus(String maritalStatus) { + this.maritalStatus = maritalStatus; + } + + public String getMaritalStatusDictionaryName() { + return maritalStatusDictionaryName == null ? "" : maritalStatusDictionaryName.trim(); + } + + public void setMaritalStatusDictionaryName(String maritalStatusDictionaryName) { + this.maritalStatusDictionaryName = maritalStatusDictionaryName; + } + public String getEducation() { + return education == null ? "" : education.trim(); + } + + public void setEducation(String education) { + this.education = education; + } + + public String getEducationDictionaryName() { + return educationDictionaryName == null ? "" : educationDictionaryName.trim(); + } + + public void setEducationDictionaryName(String educationDictionaryName) { + this.educationDictionaryName = educationDictionaryName; + } + public String getReligion() { + return religion == null ? "" : religion.trim(); + } + + public void setReligion(String religion) { + this.religion = religion; + } + + public String getReligionDictionaryName() { + return religionDictionaryName == null ? "" : religionDictionaryName.trim(); + } + + public void setReligionDictionaryName(String religionDictionaryName) { + this.religionDictionaryName = religionDictionaryName; + } + public String getOccupationCategory() { + return occupationCategory == null ? "" : occupationCategory.trim(); + } + + public void setOccupationCategory(String occupationCategory) { + this.occupationCategory = occupationCategory; + } + + public String getOccupationCategoryDictionaryName() { + return occupationCategoryDictionaryName == null ? "" : occupationCategoryDictionaryName.trim(); + } + + public void setOccupationCategoryDictionaryName(String occupationCategoryDictionaryName) { + this.occupationCategoryDictionaryName = occupationCategoryDictionaryName; + } + public String getOccupation() { + return occupation == null ? "" : occupation.trim(); + } + + public void setOccupation(String occupation) { + this.occupation = occupation; + } + + public String getServiceSpace() { + return serviceSpace == null ? "" : serviceSpace.trim(); + } + + public void setServiceSpace(String serviceSpace) { + this.serviceSpace = serviceSpace; + } + + public String getTelephone() { + return telephone == null ? "" : telephone.trim(); + } + + public void setTelephone(String telephone) { + this.telephone = telephone; + } + + public String getRegisteredResidence() { + return registeredResidence == null ? "" : registeredResidence.trim(); + } + + public void setRegisteredResidence(String registeredResidence) { + this.registeredResidence = registeredResidence; + } + + public String getRegisteredResidenceDictionaryName() { + return registeredResidenceDictionaryName == null ? "" : registeredResidenceDictionaryName.trim(); + } + + public void setRegisteredResidenceDictionaryName(String registeredResidenceDictionaryName) { + this.registeredResidenceDictionaryName = registeredResidenceDictionaryName; + } + public String getRegisteredResidenceAddr() { + return registeredResidenceAddr == null ? "" : registeredResidenceAddr.trim(); + } + + public void setRegisteredResidenceAddr(String registeredResidenceAddr) { + this.registeredResidenceAddr = registeredResidenceAddr; + } + + public String getCurrentResidence() { + return currentResidence == null ? "" : currentResidence.trim(); + } + + public void setCurrentResidence(String currentResidence) { + this.currentResidence = currentResidence; + } + + public String getCurrentResidenceDictionaryName() { + return currentResidenceDictionaryName == null ? "" : currentResidenceDictionaryName.trim(); + } + + public void setCurrentResidenceDictionaryName(String currentResidenceDictionaryName) { + this.currentResidenceDictionaryName = currentResidenceDictionaryName; + } + public String getCurrentResidenceAddr() { + return currentResidenceAddr == null ? "" : currentResidenceAddr.trim(); + } + + public void setCurrentResidenceAddr(String currentResidenceAddr) { + this.currentResidenceAddr = currentResidenceAddr; + } + + public String getNativePlaceAddr() { + return nativePlaceAddr == null ? "" : nativePlaceAddr; + } + + public void setNativePlaceAddr(String nativePlaceAddr) { + this.nativePlaceAddr = nativePlaceAddr; + } +} diff --git a/src/main/java/cn/com/tenlion/systembase/remote/populationmsg/IPopulationMsgService.java b/src/main/java/cn/com/tenlion/systembase/remote/populationmsg/IPopulationMsgService.java new file mode 100644 index 0000000..8871ed8 --- /dev/null +++ b/src/main/java/cn/com/tenlion/systembase/remote/populationmsg/IPopulationMsgService.java @@ -0,0 +1,23 @@ +package cn.com.tenlion.systembase.remote.populationmsg; + +import cn.com.tenlion.systembase.pojo.dtos.population.PopulationDTO; +import ink.wgink.annotation.rpc.rest.RemoteService; +import ink.wgink.annotation.rpc.rest.method.RemoteGetMethod; +import ink.wgink.annotation.rpc.rest.params.RemotePathParams; +import ink.wgink.annotation.rpc.rest.params.RemoteServerParams; + +/** + * @ClassName: IPopulationMsgService + * @Description: 通过身份证号码,查询人口信息表中的数据 + * @Author: CodeFactory + * @Date: 2021-09-24 17:03:54 + * @Version: 3.0 + **/ + +@RemoteService +public interface IPopulationMsgService { + + @RemoteGetMethod("/app/basepopulationinforelease/getByIdCardNumber/{userId}") + PopulationDTO getByIdCardNumber(@RemoteServerParams String remotePath, @RemotePathParams("userId") String userId); + +} \ No newline at end of file diff --git a/src/main/resources/templates/schoolkey/list.html b/src/main/resources/templates/schoolkey/list.html index 654e2f8..1da941e 100644 --- a/src/main/resources/templates/schoolkey/list.html +++ b/src/main/resources/templates/schoolkey/list.html @@ -86,16 +86,7 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'degreeOfHarm', width: 180, title: '危害程度字典表ID', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'degreeOfHarmName', width: 180, title: '危害程度名称', align:'center', + {field: 'degreeOfHarmName', width: 180, title: '危害程度', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -121,52 +112,7 @@ } return rowData; } - }, - {field: 'creator', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'gmtCreate', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'modifier', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'gmtModified', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'isDelete', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, + } ] ], page: true, diff --git a/src/main/resources/templates/schoolkey/save.html b/src/main/resources/templates/schoolkey/save.html index e8c1fd2..3951bf3 100644 --- a/src/main/resources/templates/schoolkey/save.html +++ b/src/main/resources/templates/schoolkey/save.html @@ -22,40 +22,90 @@