Merge branch 'zhaozhengjie1104' into test
| | |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.panzhihua.common.model.helper.encrypt.EncryptDecryptClass; |
| | | import com.panzhihua.common.model.helper.encrypt.EncryptDecryptField; |
| | | import com.panzhihua.common.model.helper.sensitive.Sensitive; |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @title: AddIdentityAuthDTO |
| | |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty("认证时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date authTime; |
| | | |
| | | @ApiModelProperty("认证期数") |
| | | private String authPeriod; |
| | | } |
| | |
| | | //构建单个用户数据 |
| | | List<Object> userData = new ArrayList<>(); |
| | | |
| | | String noExport = "以上信息仅用于疫苗防控"; |
| | | String noExport = "以上信息仅用于"; |
| | | //遍历答案列表 |
| | | Long reserveRecordId = 0L; |
| | | Long reserveSubId = 0L; |
| | |
| | | headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | //设置头字体 |
| | | WriteFont headWriteFont = new WriteFont(); |
| | | headWriteFont.setFontHeightInPoints((short)10); |
| | | headWriteFont.setFontHeightInPoints((short)6); |
| | | headWriteFont.setBold(true); |
| | | headWriteCellStyle.setWriteFont(headWriteFont); |
| | | |
| | |
| | | WriteCellStyle contentWriteCellStyle = new WriteCellStyle(); |
| | | //设置表格内容字体 |
| | | WriteFont writeFont = new WriteFont(); |
| | | writeFont.setFontHeightInPoints((short)10); |
| | | writeFont.setFontHeightInPoints((short)6); |
| | | //设置 水平居中 |
| | | contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | //设置 垂直居中 |
| | |
| | | Integer maxColumnWidth = (Integer)((Map)maxColumnWidthMap).get(cell.getColumnIndex()); |
| | | if (maxColumnWidth == null || columnWidth > maxColumnWidth) { |
| | | ((Map)maxColumnWidthMap).put(cell.getColumnIndex(), columnWidth); |
| | | writeSheetHolder.getSheet().setColumnWidth(cell.getColumnIndex(), columnWidth * 86); |
| | | writeSheetHolder.getSheet().setColumnWidth(cell.getColumnIndex(), columnWidth * 75); |
| | | } |
| | | |
| | | } |
| | |
| | | + " HAVING distance >= 0 and distance <= #{communityDTO.distance} " + "ORDER BY " + " distance ASC") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByNearby(@Param("communityDTO") SearchCommunityDTO communityDTO); |
| | | |
| | | @Select("select t.community_id,t.`name` from com_act t left join com_street t1 on t.street_id = t1.street_id where t.state = 0 and t1.street_id in (12,14,15,16,17,18)") |
| | | @Select("select t.community_id,t.`name` from com_act t left join com_street t1 on t.street_id = t1.street_id where t.state = 0 and t1.street_id in (12,14,15,16,17,19)") |
| | | List<EventGridCommunityAdminVO> getWestCommunityLists(); |
| | | } |
| | |
| | | return R.fail("信息有误,请检查!"); |
| | | } |
| | | Date dateNow = new Date(); |
| | | String currentAuthPeriod = new SimpleDateFormat("yyyy").format(dateNow); |
| | | List<ComPensionAuthRecordDO> currentAuthPeriodRecords = comPensionAuthRecordDAO |
| | | .selectList(new QueryWrapper<ComPensionAuthRecordDO>().lambda() |
| | | .eq(ComPensionAuthRecordDO::getAuthPeriod, currentAuthPeriod) |
| | | .eq(ComPensionAuthRecordDO::getAuthPeriod, comPensionAuthPensionerDO) |
| | | .eq(ComPensionAuthRecordDO::getPensionerId, comPensionAuthPensionerDO.getId())); |
| | | if (!currentAuthPeriodRecords.isEmpty()) { |
| | | boolean alreadyAuth = currentAuthPeriodRecords.stream() |
| | | .filter(record -> record.getAuthStatus().equals(CERTIFIED.getStatus())).findFirst().isPresent(); |
| | | if (alreadyAuth) { |
| | | return R.fail(String.format("该人员%s期已认证无需重复认证", currentAuthPeriod)); |
| | | return R.fail(String.format("该人员%s期已认证无需重复认证", addIdentityAuthDTO.getAuthPeriod())); |
| | | } |
| | | boolean isPendingReview = currentAuthPeriodRecords.stream() |
| | | .filter(record -> record.getApprovalStatus().intValue() == PENDING_REVIEW.getStatus()).findFirst().isPresent(); |
| | |
| | | ComPensionAuthRecordDO comPensionAuthRecordDO = new ComPensionAuthRecordDO(); |
| | | BeanUtils.copyProperties(addIdentityAuthDTO, comPensionAuthRecordDO); |
| | | comPensionAuthRecordDO.setPensionerId(comPensionAuthPensionerDO.getId()); |
| | | comPensionAuthRecordDO.setAuthDate(dateNow); |
| | | comPensionAuthRecordDO.setAuthPeriod(currentAuthPeriod); |
| | | comPensionAuthRecordDO.setAuthDate(addIdentityAuthDTO.getAuthTime()); |
| | | comPensionAuthRecordDO.setAuthPeriod(addIdentityAuthDTO.getAuthPeriod()); |
| | | if (addIdentityAuthDTO.getAuthMethod().intValue() == FACE_AUTH.getMethod()) { |
| | | comPensionAuthRecordDO.setApprovalStatus(PASS_THROUGH.getStatus()); |
| | | comPensionAuthRecordDO.setApprovalDate(dateNow); |
| | |
| | | and t.community_id = #{pageReserveDTO.communityId} |
| | | </if> |
| | | <if test="pageReserveDTO.communityId ==0"> |
| | | and t1.street_id in (12,14,15,16,17,18) |
| | | and t1.street_id in (12,14,15,16,17,19) |
| | | </if> |
| | | <if test="pageReserveDTO.type != null and pageReserveDTO.type.size > 0"> |
| | | and t.`type` in |
| | |
| | | AND cmp.door_no = #{comMngPopulationVO.doorNo} </if> |
| | | <if test='comMngPopulationVO.floor != null and comMngPopulationVO.floor != ""'> |
| | | AND cmp.floor = #{comMngPopulationVO.floor} </if> |
| | | <if test='comMngPopulationVO.isDeath != null'> |
| | | AND cmp.death = #{comMngPopulationVO.isDeath} </if> |
| | | <if test='comMngPopulationVO.unitNo != null and comMngPopulationVO.unitNo != ""'> |
| | | AND cmp.unit_no = #{comMngPopulationVO.unitNo} </if> |
| | | <if test='comMngPopulationVO.houseNo != null and comMngPopulationVO.houseNo != ""'> |