| | |
| | | private String account; |
| | | |
| | | @ApiModelProperty("密码") |
| | | @Pattern(groups = {AddGroup.class}, message = "【密码】格式为6-16个字符,英文,数字,且必须包含英文和数字", |
| | | regexp = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$") |
| | | @Pattern(groups = {AddGroup.class}, message = "密码强度过低,请将密码长度设置为8-16位,且包含字母、数字、字符。", |
| | | regexp = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_!@#$%^&*.`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\\W_!@#$%^&.*`~()-+=]+$)(?![0-9\\W_!@#$%^.&*`~()-+=]+$)[a-zA-Z0-9\\W_!@#$%^&.*`~()-+=]{8,16}$") |
| | | private String password; |
| | | |
| | | @ApiModelProperty("用户名称") |
| | |
| | | BeanUtils.copyProperties(comActDynVO, comActDynDO); |
| | | boolean save = comActDynService.save(comActDynDO); |
| | | if (save) { |
| | | if(comActDynVO.getCategory()==4){ |
| | | if(comActDynVO.getCategory()!=null&&comActDynVO.getCategory()==4){ |
| | | comActDynVO.setId(comActDynDO.getId()); |
| | | rabbitTemplate.convertAndSend("huacheng.acid.message.exchange", "huacheng.acid.message.key", comActDynVO); |
| | | } |
| | |
| | | List<ComActDynVO> records = iPage.getRecords(); |
| | | if (!ObjectUtils.isEmpty(records)) { |
| | | records.forEach(comActDynVO1 -> { |
| | | if(comActDynVO1.getCategory()!=null&&comActDynVO1.getCategory()==4){ |
| | | comActDynVO.setContent(null); |
| | | }else { |
| | | String content = comActDynVO1.getContent(); |
| | | if (!ObjectUtils.isEmpty(content)) { |
| | | String text = RichTextUtil.getText(content); |
| | | comActDynVO1.setContentText(text); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | return R.ok(iPage); |