springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/grid/EventSpecialPopulationDetailsVO.java
@@ -25,6 +25,7 @@ private String name; @ApiModelProperty(value = "手机号") @EncryptDecryptField private String phone; @ApiModelProperty(value = "身份证号码") springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/CommonApi.java
@@ -157,7 +157,7 @@ @GetMapping("/getConf/noToken") @ApiOperation(value = "根据code查询系统配置") public R getConf(@PathVariable("code") String code){ public R getConf(@RequestParam("code") String code){ return communityService.getConf(code); } } springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/CommonEventApi.java
@@ -39,7 +39,7 @@ if(eventType==null){ return false; } boolean inType = eventType==1 | eventType==2 |eventType==3| eventType==4| eventType==5; boolean inType = eventType==1 | eventType==2 |eventType==3| eventType==4| eventType==5| eventType==6; return inType; } springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java
@@ -1,5 +1,6 @@ package com.panzhihua.service_grid.service.impl; import cn.hutool.core.util.IdcardUtil; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; @@ -251,6 +252,11 @@ //当事件为特殊人群上报时,需要查询事件与人口关联关系 if(eventDetailsVO.getEventType().equals(6)){ List<EventSpecialPopulationDetailsVO> specialPopulationList = eventSpecialCrowdRecordMapper.getSpecialPopulationIds(eventDetailsVO.getId()); if(!specialPopulationList.isEmpty()){ specialPopulationList.forEach(special -> { special.setAge(IdcardUtil.getAgeByIdCard(special.getIdCard())); }); } eventDetailsVO.setPopulationList(specialPopulationList); } return R.ok(eventDetailsVO); @@ -276,7 +282,7 @@ //检查特殊人群上报时参数 if(commonEventAddDTO.getEventType().equals(6)){ if(commonEventAddDTO.getPopulationIds().isEmpty()){ if(commonEventAddDTO.getPopulationIds() == null || commonEventAddDTO.getPopulationIds().size() <= 0){ return R.fail("上报人员为空"); } }