Merge branch 'haucheng_panzhihua' into huacheng_test
| | |
| | | |
| | | @ApiModelProperty("类别(1.社区动态 2.招募公告 3.考察记录 4.评审公示 5.孵化培育 6.出壳成果)") |
| | | private Integer category; |
| | | |
| | | @ApiModelProperty("显示时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date releaseTime; |
| | | } |
| | |
| | | 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); |
| | | } |
| | |
| | | WxXCXTempSend wxXCXTempSend=new WxXCXTempSend(); |
| | | for(String openId:openIds){ |
| | | try { |
| | | WxUtil.sendLongTimeTemplate(openId,wxXCXTempSend.getAccessToken("wx118de8a734d269f0"),"疫情快讯","您有新的疫情快讯待查看","/pages/community_child/community/detail?id="+comActDynVO.getId()+"&title=疫情快讯详情"); |
| | | WxUtil.sendLongTimeTemplate(openId,wxXCXTempSend.getAccessToken("wx118de8a734d269f0"),"疫情快讯",comActDynVO.getTitle().length()>10?comActDynVO.getTitle().substring(0,10)+"..":comActDynVO.getTitle(),"/pages/community_child/community/detail?id="+comActDynVO.getId()+"&title=疫情快讯详情"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | private Integer category; |
| | | |
| | | private Integer readNum; |
| | | |
| | | private Date releaseTime; |
| | | } |
| | |
| | | public R insertRecord(ComActAcidRecordVO comActAcidRecordVO) { |
| | | Integer count= this.baseMapper.selectCount(new QueryWrapper<ComActAcidRecord>().lambda().eq(ComActAcidRecord::getIsDel,0).eq(ComActAcidRecord::getIdCard,comActAcidRecordVO.getIdCard()).ge(ComActAcidRecord::getCreateTime, DateUtils.getCurrentDate(DateUtils.yyyyMMdd_format))); |
| | | if(count>0){ |
| | | return R.fail("请勿重复提交"); |
| | | return R.fail("您的社区报备信息已填写完整,请勿重复提交!"); |
| | | } |
| | | if(StringUtils.isEmpty(comActAcidRecordVO.getLocalCity())){ |
| | | rabbitTemplate.convertAndSend("huacheng.acid.exchange", "huacheng.acid.key", comActAcidRecordVO, message -> { |
| | |
| | | List<ComActDynVO> records = iPage.getRecords(); |
| | | if (!ObjectUtils.isEmpty(records)) { |
| | | records.forEach(comActDynVO1 -> { |
| | | String content = comActDynVO1.getContent(); |
| | | if (!ObjectUtils.isEmpty(content)) { |
| | | String text = RichTextUtil.getText(content); |
| | | comActDynVO1.setContentText(text); |
| | | 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); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | d.create_at, |
| | | cadt.`name` AS typeName, |
| | | cadt.color AS typeColor, |
| | | ca.NAME AS communityName |
| | | ca.NAME AS communityName, |
| | | d.release_time |
| | | FROM |
| | | com_act_dyn d |
| | | LEFT JOIN ( SELECT dyn_id, count( id ) AS readNum FROM com_act_dyn_user GROUP BY dyn_id ) u ON d.id = u.dyn_id |
| | |
| | | </select> |
| | | <select id="pageDynamicByAdmin" resultType="com.panzhihua.common.model.vos.community.ComActDynVO"> |
| | | SELECT d.id, d.title, COUNT(u.id)readNum, d.`status`, d.`content`, d.`cover`, d.`type`, d.`cover_mode`, |
| | | d.is_topping, d.publish_at, d.create_at, cadt.`name` as typeName, ca.name as communityName |
| | | d.is_topping, d.publish_at, d.create_at, cadt.`name` as typeName, ca.name as communityName,d.release_time |
| | | FROM com_act_dyn d |
| | | LEFT JOIN com_act_dyn_user u ON d.id = u.dyn_id |
| | | LEFT JOIN com_act_dyn_type as cadt ON cadt.id = d.type |