springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComReserveApi.java
@@ -4,6 +4,7 @@ import com.panzhihua.common.model.dtos.community.CancelRecordDTO; import com.panzhihua.common.model.dtos.community.OperationDetailDTO; import com.panzhihua.common.model.dtos.community.PageUserReserveDTO; import com.panzhihua.common.model.vos.LoginUserInfoVO; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.community.ComActReserveCommitVO; import com.panzhihua.common.service.community.CommunityService; @@ -56,6 +57,7 @@ @ApiOperation("取消预约/登记") @PostMapping("/cancelReserve") public R userCancelReserve(@RequestBody CancelRecordDTO cancelRecordDTO){ cancelRecordDTO.setUserId(this.getUserId()); return communityService.userCancelReserve(cancelRecordDTO); } @@ -68,4 +70,14 @@ comActReserveOperationRecordDO.setUserId(this.getUserId()); return communityService.reserveOperation(comActReserveOperationRecordDO); } @ApiOperation("预约登记列表") @GetMapping("/list") public R list(@RequestParam("communityId") Long communityId){ LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); if(loginUserInfo != null){ communityId = loginUserInfo.getCommunityId(); } return communityService.reserveListApplets(communityId); } } springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java
@@ -206,7 +206,9 @@ @ApiOperation(value = "查询社区邻里圈话题列表", response = ComActNeighborCircleTopicAppVO.class) @GetMapping("topic/list") public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam(value = "isZero",defaultValue = "2",required = false) Integer isZero) { public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId ,@RequestParam(value = "isZero",defaultValue = "2",required = false) Integer isZero ,@RequestParam(value = "name",defaultValue = "",required = false) String name) { LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); if (loginUserInfo != null) { communityId = loginUserInfo.getCommunityId(); @@ -214,7 +216,7 @@ if(isZero == null){ isZero = 2; } return communityService.getNeighborTopicByApp(communityId,isZero); return communityService.getNeighborTopicByApp(communityId,isZero,name); } @ApiOperation(value = "用户新增邻里圈话题") springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/CancelRecordDTO.java
@@ -22,4 +22,7 @@ private String remark; private Integer status; @ApiModelProperty(value = "用户id",hidden = true) private Long userId; } springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/neighbor/AddComActNeighborCircleAppDTO.java
@@ -37,6 +37,9 @@ @ApiModelProperty(value = "微信审核结果(1.通过 2.拒绝)",hidden = true) private Integer wxExamineResult; @ApiModelProperty("用户新增邻里圈话题") private String topicName; /** * 是否需要审核(1.是 2.否) */ springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActQuestnaireAnswerContentVO.java
@@ -31,6 +31,8 @@ private Long selectionId; @ApiModelProperty("答题记录id") private Long reserveRecordId; @ApiModelProperty("题目id") private Long reserveSubId; @ApiModelProperty("填报时间") private Date time; @ApiModelProperty("用户昵称") springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActWorkGuideAppletsVO.java
@@ -17,15 +17,18 @@ @ApiModel("办事指南分类列表") public class ComActWorkGuideAppletsVO { @ApiModelProperty("办事指南id") @ApiModelProperty("分类id") private Long id; @ApiModelProperty("办事指南标题") @ApiModelProperty("分类名称") private String classifyName; @ApiModelProperty("办事指南内容") @ApiModelProperty("分类图标url") private String pictureUrl; @ApiModelProperty("办事指南信息") @ApiModelProperty("办事指南数量") private Integer count; @ApiModelProperty("办事指南列表") private List<ComActWorkGuideDetailAppletsVO> guideDetailList = Lists.newArrayList(); } springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActWorkGuideVO.java
@@ -36,6 +36,9 @@ @ApiModelProperty("所属分类") private Integer classify; @ApiModelProperty("所属分类名称") private String classifyName; @ApiModelProperty("办理时间") private String timeAt; springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -4531,7 +4531,7 @@ * @return 邻里圈话题列表 */ @GetMapping("/neighbor/getNeighborTopicByApp") R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero); R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero,@RequestParam("name") String name); /** * 综治后台-查询社区列表 @@ -5411,4 +5411,12 @@ */ @GetMapping("/listworkguide/classify") R listWorkGuideByClassifyId(@RequestParam("classifyId") Long classifyId); /** * 小程序查询所有进行中的预约登记 * @param communityId 社区id * @return 社区所有进行中的预约登记列表 */ @GetMapping("/reserve/list") R reserveListApplets(@RequestParam("communityId") Long communityId); } springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComActReserveApi.java
@@ -24,6 +24,7 @@ import com.panzhihua.common.service.user.UserService; import com.panzhihua.common.utlis.DateUtils; import com.panzhihua.common.utlis.SFTPUtil; import com.panzhihua.common.utlis.StringUtils; import com.panzhihua.community_backstage.config.SFTPConfig; import com.panzhihua.community_backstage.excel.CustomSheetWriteHandler; import io.swagger.annotations.Api; @@ -161,7 +162,7 @@ List<ComActReserveMakeRightStatisticsAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeRightStatisticsAdminVO.class); rightStatisticsList.forEach(rightStatistics -> { ComActReserveMakeRightExcelAdminVO makeRightExcelAdminVO = new ComActReserveMakeRightExcelAdminVO(); BeanUtils.copyProperties(rightStatistics,makeRightExcelAdminVO); BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); resultList.add(makeRightExcelAdminVO); }); try { @@ -244,7 +245,7 @@ List<ComActReserveMakeListAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeListAdminVO.class); rightStatisticsList.forEach(rightStatistics -> { ComActReserveMakeDetailedExcelAdminVO makeRightExcelAdminVO = new ComActReserveMakeDetailedExcelAdminVO(); BeanUtils.copyProperties(rightStatistics,makeRightExcelAdminVO); BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); resultList.add(makeRightExcelAdminVO); }); try { @@ -320,7 +321,7 @@ List<ComActReserveRegisterStatisticsAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveRegisterStatisticsAdminVO.class); rightStatisticsList.forEach(rightStatistics -> { ComActReserveRegisterExcelAdminVO makeRightExcelAdminVO = new ComActReserveRegisterExcelAdminVO(); BeanUtils.copyProperties(rightStatistics,makeRightExcelAdminVO); BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); resultList.add(makeRightExcelAdminVO); }); try { @@ -407,7 +408,7 @@ List<ComActReserveMakeHandleListAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeHandleListAdminVO.class); rightStatisticsList.forEach(rightStatistics -> { ComActReserveMakeHandleExcelAdminVO makeRightExcelAdminVO = new ComActReserveMakeHandleExcelAdminVO(); BeanUtils.copyProperties(rightStatistics,makeRightExcelAdminVO); BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); makeRightExcelAdminVO.setStatus(ReserveRecordStatusEnum.getCnDescByName(rightStatistics.getStatus())); resultList.add(makeRightExcelAdminVO); }); @@ -492,59 +493,14 @@ head1.add("登记时间"); headList.add(head1); subVOList.forEach(sub -> { if(sub.getType() != 5){ if (sub.getType() != 5) { List<String> headn = new ArrayList<>(); headn.add(firstRowContent); headn.add(sub.getContent()); headList.add(headn); } }); List<List<Object>> datalist = new ArrayList<>(); List<ComActQuestnaireAnswerContentVO> answerContentVOList = questnaireAnswersDTOS.getAnswers(); if(answerContentVOList!=null && answerContentVOList.size()>0) { List<Object> userData = new ArrayList<>(); List<ComActQuestnaireAnswerContentVO> usersAnswers = questnaireAnswersDTOS.getAnswers(); //查询用户回答的所有答案,并新增到答案列表中 Long reserveRecordId = null; StringBuffer sb = new StringBuffer(); Boolean isDX = false; for (ComActQuestnaireAnswerContentVO userAnswers:usersAnswers) { if (userAnswers.getOptionType().equals(5)){ continue; } if(reserveRecordId == null){ reserveRecordId = userAnswers.getReserveRecordId(); userData.add(userAnswers.getNickName()); userData.add(DateUtils.format(userAnswers.getTime(),DateUtils.ymdhms_format)); } if(!reserveRecordId.equals(userAnswers.getReserveRecordId())){ if(isDX){ String answer = sb.toString(); userData.add(answer.substring(0,answer.length()-1)); sb = new StringBuffer(); isDX = false; } datalist.add(userData); userData = new ArrayList<>(); reserveRecordId = userAnswers.getReserveRecordId(); userData.add(userAnswers.getNickName()); userData.add(DateUtils.format(userAnswers.getTime(),DateUtils.ymdhms_format)); } //判断是否是多选框 if(userAnswers.getOptionType().equals(1)){ isDX = true; sb.append(userAnswers.getAnswerContent() + ","); continue; } userData.add(userAnswers.getAnswerContent()); } if(isDX){ String answer = sb.toString(); userData.add(answer.substring(0,answer.length()-1)); } datalist.add(userData); } List<List<Object>> datalist = dataList(questnaireAnswersDTOS.getAnswers()); WriteCellStyle headWriteCellStyle = new WriteCellStyle(); WriteCellStyle contentWriteCellStyle = new WriteCellStyle(); @@ -587,22 +543,95 @@ } } @ApiOperation(value = "查询题目列表",response = ComActReserveSubListVO.class) @ApiOperation(value = "查询题目列表", response = ComActReserveSubListVO.class) @GetMapping("/subject/list") public R subjectList(@RequestParam("reserveId") Long reserveId) { return communityService.subjectListAdmin(reserveId); } @ApiOperation(value = "分页查询登记明细列表",response = ComActReserveRegisterDetailedVO.class) @ApiOperation(value = "分页查询登记明细列表", response = ComActReserveRegisterDetailedVO.class) @PostMapping("/register/detailed/list") public R registerDetailedList(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO) { return communityService.registerDetailedListAdmin(detailedAdminDTO); } @ApiOperation(value = "查询登记明细详情",response = ComActReserveRegisterDetailedVO.class) @ApiOperation(value = "查询登记明细详情", response = ComActReserveRegisterDetailedVO.class) @PostMapping("/register/detailed/detail") public R registerDetailedDetail(@RequestParam("reserveRecordId") Long reserveRecordId) { return communityService.registerDetailedDetailAdmin(reserveRecordId); } /** * 数据转换--登记明细用户填写答案导出数据格式转换 * * @param answerContentVOList 用户答题记录 * @return 用户填写答案数据 */ private List<List<Object>> dataList(List<ComActQuestnaireAnswerContentVO> answerContentVOList) { //结果数据集合 List<List<Object>> resultList = new ArrayList<>(); //构建单个用户数据 List<Object> userData = new ArrayList<>(); //遍历答案列表 Long reserveRecordId = 0L; Long reserveSubId = 0L; StringBuffer sb = new StringBuffer(); if (answerContentVOList != null && answerContentVOList.size() > 0) { for (ComActQuestnaireAnswerContentVO userAnswers : answerContentVOList) { //判断是文字描述直接跳过 if (userAnswers.getOptionType().equals(5)) { continue; } //判断reserveRecordId为空则为第一条记录,默认加上昵称和灯谜是 if (reserveRecordId.equals(0L)) { reserveRecordId = userAnswers.getReserveRecordId(); userData.add(userAnswers.getNickName()); userData.add(DateUtils.format(userAnswers.getTime(), DateUtils.ymdhms_format)); } //根据reserveRecordId判断是否是第二条填报记录 if (!reserveRecordId.equals(userAnswers.getReserveRecordId())) { reserveSubId = 0L; String answer = sb.toString(); userData.add(answer.substring(0, answer.length() - 1)); sb = new StringBuffer(); resultList.add(userData); userData = new ArrayList<>(); reserveRecordId = userAnswers.getReserveRecordId(); userData.add(userAnswers.getNickName()); userData.add(DateUtils.format(userAnswers.getTime(), DateUtils.ymdhms_format)); answer = sb.toString(); if(StringUtils.isEmpty(answer)){ userData.add(userAnswers.getAnswerContent()); } }else{ if(reserveSubId.equals(0L)){ reserveSubId = userAnswers.getReserveSubId(); } if(!reserveSubId.equals(userAnswers.getReserveSubId())){ reserveSubId = userAnswers.getReserveSubId(); String answer = sb.toString(); if(StringUtils.isEmpty(answer)){ sb.append(userAnswers.getAnswerContent() + ","); answer = sb.toString(); } userData.add(answer.substring(0, answer.length() - 1)); sb = new StringBuffer(); sb.append(userAnswers.getAnswerContent() + ","); }else{ sb.append(userAnswers.getAnswerContent() + ","); } } } String answer = sb.toString(); if(StringUtils.isNotEmpty(answer)){ userData.add(answer.substring(0, answer.length() - 1)); } resultList.add(userData); } return resultList; } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActReserveApi.java
@@ -312,4 +312,14 @@ public R registerDetailedDetailAdmin(@RequestParam("reserveRecordId") Long reserveRecordId){ return comActReserveRecordService.registerDetailedDetailAdmin(reserveRecordId); } /** * 小程序查询所有进行中的预约登记 * @param communityId 社区id * @return 社区所有进行中的预约登记列表 */ @GetMapping("/list") public R list(@RequestParam("communityId") Long communityId){ return comActReserveService.reserveListApplets(communityId); } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/NeighborApi.java
@@ -340,8 +340,8 @@ * @return 邻里圈话题列表 */ @GetMapping("getNeighborTopicByApp") public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero) { return comActNeighborCircleTopicService.getNeighborTopicByApp(communityId,isZero); public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero,@RequestParam("name") String name) { return comActNeighborCircleTopicService.getNeighborTopicByApp(communityId,isZero,name); } /** springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java
@@ -75,7 +75,7 @@ "AND w.`status` = #{comActMicroWishVO.status} " + " </if> " + "<if test='comActMicroWishVO.status == 3 and comActMicroWishVO.isPageMyWish==null'>" + "AND w.`status` = 3 " + "AND w.`status` in (2,3) " + " </if> " + "<if test='comActMicroWishVO.status != null and comActMicroWishVO.status!=0 and comActMicroWishVO.isPageMyWish!=null and comActMicroWishVO.status==1'>" + "AND w.`status` =1 " + @@ -121,6 +121,7 @@ "su.`name` responsible_name, " + "w.form, " + "w.reject_reason, " + "w.community_id, " + "w.examine_at, " + "w.finish, " + "w.finish_photo_path_list, " + @@ -136,7 +137,7 @@ "w.evaluate " + "FROM " + "com_act_micro_wish w " + "JOIN sys_user u ON w.sponsor_id = u.user_id " + "LEFT JOIN sys_user u ON w.sponsor_id = u.user_id " + "LEFT JOIN com_pb_service_team su ON w.responsible_id = su.id " + "LEFT JOIN com_act_micro_wish_user wu ON w.id = wu.micro_wish_id " + "WHERE " + springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActNeighborCircleTopicMapper.java
@@ -38,7 +38,7 @@ * 社区id * @return 邻里圈话题列表 */ List<ComActNeighborCircleTopicAppVO> getNeighborTopicByApp(@Param("communityId") Long communityId,@Param("isZero") Integer isZero); List<ComActNeighborCircleTopicAppVO> getNeighborTopicByApp(@Param("communityId") Long communityId,@Param("isZero") Integer isZero,@Param("name") String name); /** * 添加邻里圈话题热度 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActReserveMapper.java
@@ -87,4 +87,11 @@ */ void addReserveCountById(@Param("reserveId") Long reserveId); /** * 小程序查询所有进行中的预约登记 * @param communityId 社区id * @return 社区所有进行中的预约登记列表 */ List<ComActReserveIndexVo> getReserveIndexList(@Param("communityId") Long communityId); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActWorkGuideDAO.java
@@ -24,7 +24,7 @@ + "<if test='pageActWorkGuideDTO.classify != null'>" + "and classify = #{pageActWorkGuideDTO.classify} " + " </if> " + "<if test='pageActWorkGuideDTO.title != null and pageActWorkGuideDTO.title.trim() != ""'>" + "and title like concat('%',#{pageActWorkGuideDTO.title},'%')" + " </if> " + " </where>" + "order by update_at asc" + "and title like concat('%',#{pageActWorkGuideDTO.title},'%')" + " </if> " + " </where>" + "order by update_at desc" + "</script>") IPage<ComActWorkGuideVO> pageWorkGuide(Page page, @Param("pageActWorkGuideDTO") PageActWorkGuideDTO pageActWorkGuideDTO); springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActMicroWishOperationRecordDO.java
@@ -48,9 +48,19 @@ private Date createTime; /** *操作类型 1已提交 2审核通过 3 驳回 4完成集心 5 分配 6 完成 *操作类型 1已提交 2审核通过 3 驳回 4完成集心 5 分配 6 完成 7反馈 */ private Integer type; /** * 操作备注 */ private String remark; /** * 反馈图片url */ private String imgUrl; @Override public String toString() { @@ -64,7 +74,7 @@ '}'; } /** *操作类型 1已提交 2审核通过 3 驳回 4完成集心 5 分配 6 完成 *操作类型 1已提交 2审核通过 3 驳回 4完成集心 5 分配 6 完成 7反馈 */ public interface type{ int ytj=1; @@ -73,5 +83,6 @@ int jx=4; int fp=5; int wc=6; int fk=7; } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActMicroWishOperationRecordService.java
@@ -16,4 +16,14 @@ * @return */ R getByWishId(Long id); /** * 添加微心愿操作记录 * @param content 操作内容 * @param userId 操作用户id * @param wishId 微心愿id * @param type 操作类型 * @param remark 操作备注 */ void addOperationRecord(String content,Long userId,Long wishId,Integer type,String remark); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActNeighborCircleTopicService.java
@@ -49,7 +49,7 @@ * 社区id * @return 邻里圈话题列表 */ R getNeighborTopicByApp(Long communityId,Integer isZero); R getNeighborTopicByApp(Long communityId,Integer isZero,String name); /** * 小程序-用户新增话题 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActReserveService.java
@@ -105,4 +105,11 @@ */ R getById(Long id,Long userId,Long recordId,Integer isBack); /** * 小程序查询所有进行中的预约登记 * @param communityId 社区id * @return 社区所有进行中的预约登记列表 */ R reserveListApplets(Long communityId); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java
@@ -288,6 +288,7 @@ cmActEasyPhotoDO.setIsReportUrban(ComActEasyPhotoVO.isReportUrban.yes); cmActEasyPhotoDO.setTransferReason(comActEasyPhotoVO.getTransferReason()); cmActEasyPhotoDO.setTransferTime(nowDate); } else { cmActEasyPhotoDO.setIsReportUrban(ComActEasyPhotoVO.isReportUrban.no); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActMicroWishOperationRecordServiceImpl.java
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.Date; /** * @auther lyq @@ -24,4 +25,24 @@ public R getByWishId(Long id) { return R.ok(comActMicroWishOperationRecordMapper.getByWishId(id)); } /** * 微心愿添加操作记录 * @param content 操作内容 * @param userId 操作用户id * @param wishId 微心愿id * @param type 操作类型 * @param remark 操作备注 */ @Override public void addOperationRecord(String content,Long userId,Long wishId,Integer type,String remark){ ComActMicroWishOperationRecordDO wishOperationRecordDO = new ComActMicroWishOperationRecordDO(); wishOperationRecordDO.setWishId(wishId); wishOperationRecordDO.setUserId(userId); wishOperationRecordDO.setType(type); wishOperationRecordDO.setRemark(remark); wishOperationRecordDO.setContent(content); wishOperationRecordDO.setCreateTime(new Date()); this.baseMapper.insert(wishOperationRecordDO); } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java
@@ -6,6 +6,7 @@ import javax.annotation.Resource; import com.panzhihua.service_community.service.ComActNeighborCircleTopicService; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -61,6 +62,8 @@ private ComActDAO comActDAO; @Resource private ComActNeighborCircleTopicMapper comActNeighborCircleTopicMapper; @Resource private ComActNeighborCircleTopicService comActNeighborCircleTopicService; /** * 分页查询邻里圈列表 @@ -123,6 +126,25 @@ } if (StringUtils.isNotEmpty(addNeighborCircleAppDTO.getPhone())) { neighborCircleDO.setReleasePhone(addNeighborCircleAppDTO.getPhone()); } //判断用户的话题是否是新增的 if(StringUtils.isNotEmpty(addNeighborCircleAppDTO.getTopicName())){ //新增邻里圈话题 ComActNeighborCircleTopicDO circleTopicDO = comActNeighborCircleTopicMapper.selectOne(new QueryWrapper<ComActNeighborCircleTopicDO>() .lambda().eq(ComActNeighborCircleTopicDO::getCommunityId,neighborCircleDO.getCommunityId()) .eq(ComActNeighborCircleTopicDO::getName,addNeighborCircleAppDTO.getTopicName())); if(circleTopicDO == null){ circleTopicDO = new ComActNeighborCircleTopicDO(); circleTopicDO.setCommunityId(neighborCircleDO.getCommunityId()); circleTopicDO.setName(addNeighborCircleAppDTO.getTopicName()); circleTopicDO.setCreateBy(neighborCircleDO.getReleaseId()); circleTopicDO.setCreateAt(new Date()); circleTopicDO.setCount(0); circleTopicDO.setHotNum(0L); circleTopicDO.setStatus(ComActNeighborCircleTopicDO.status.yes); comActNeighborCircleTopicMapper.insert(circleTopicDO); } neighborCircleDO.setTopicId(circleTopicDO.getId()); } //判断当前邻里圈是否需要审核 if(addNeighborCircleAppDTO.getIsExamine().equals(AddComActNeighborCircleAppDTO.isExamine.no)){ @@ -697,6 +719,7 @@ BeanUtils.copyProperties(commentDO, vo); String name = user.getName() == null ? user.getNickName() : user.getName(); vo.setUserName(name); vo.setUserPhone(user.getPhone()); return R.ok(vo); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleTopicServiceImpl.java
@@ -113,8 +113,8 @@ * @return 邻里圈话题列表 */ @Override public R getNeighborTopicByApp(Long communityId,Integer isZero){ return R.ok(this.baseMapper.getNeighborTopicByApp(communityId,isZero)); public R getNeighborTopicByApp(Long communityId,Integer isZero,String name){ return R.ok(this.baseMapper.getNeighborTopicByApp(communityId,isZero,name)); } /** springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActReserveAnswerContentServiceImpl.java
@@ -13,6 +13,7 @@ import com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterDetailedAnswerVO; import com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterDetailedVO; import com.panzhihua.common.utlis.DateUtils; import com.panzhihua.common.utlis.StringUtils; import com.panzhihua.service_community.dao.ComActReserveAnswerContentMapper; import com.panzhihua.service_community.dao.ComActReserveSubMapper; import com.panzhihua.service_community.model.dos.ComActQuestnaireAnswerContentDO; @@ -97,7 +98,18 @@ if(!registerDetailedAnswerList.isEmpty()){ for (ComActReserveRegisterDetailedAnswerVO detailed:registerDetailedAnswerList) { if(!detailed.getType().equals(5)){ map.put(detailed.getReserveSubId() + "",detailed.getAnswerContent()); if(detailed.getType().equals(1)){ String key = detailed.getReserveSubId() + ""; String value = map.get(key).toString(); if(StringUtils.isNotEmpty(value)){ value = value + "," + detailed.getAnswerContent(); }else{ value = detailed.getAnswerContent(); } map.put(key,value); }else{ map.put(detailed.getReserveSubId() + "",detailed.getAnswerContent()); } } } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActReserveRecordServiceImpl.java
@@ -84,7 +84,7 @@ comActReserveOperationRecordDO.setReserveContent(CANCEL); comActReserveOperationRecordDO.setPhone(comActReserveRecordDO.getPhone()); comActReserveOperationRecordDO.setStatus(ComActReserveOperationRecordDO.status.qx); comActReserveOperationRecordDO.setUserId(comActReserveRecordDO.getUserId()); comActReserveOperationRecordDO.setUserId(comActReserveRecord.getUserId()); comActReserveOperationRecordDO.setReserveTime(DateUtil.date()); comActReserveOperationRecordMapper.insert(comActReserveOperationRecordDO); return R.ok(); @@ -142,13 +142,14 @@ if(reserveRecordDO != null){ //更新预约记录社区备注字段 reserveRecordDO.setActRemark(reserveRecordDTO.getRemark()); reserveRecordDO.setHandleId(userId); comActReserveRecordMapper.updateById(reserveRecordDO); //取消预约返还可参加名额 comActReserveMapper.addReserveCountById(reserveRecordDO.getReserveId()); //添加操作记录 comActReserveOperationRecordService.addReserveOperationRecord(reserveRecordDO.getReserveId() ,reserveRecordDO.getId(),reserveRecordDO.getUserId(),ComActReserveOperationRecordDO.type.sq,null ,"社区管理员取消预约",reserveRecordDTO.getRemark(),ComActReserveOperationRecordDO.status.qx,userId,null); ,"社区管理员取消预约",reserveRecordDTO.getRemark(),ComActReserveOperationRecordDO.status.qx,userId,new Date()); } }); return R.ok(); springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActReserveServiceImpl.java
@@ -12,6 +12,7 @@ import com.google.common.collect.Lists; import com.panzhihua.common.model.dtos.community.reserve.*; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.community.ComActReserveIndexVo; import com.panzhihua.common.model.vos.community.questnaire.QuestnaiteSubSelectionVO; import com.panzhihua.common.model.vos.community.questnaire.QuestnaiteSubVO; import com.panzhihua.common.model.vos.community.reserve.*; @@ -612,4 +613,14 @@ public R pageReserveList(PageUserReserveDTO pageUserReserveDTO) { return R.ok(comActReserveRecordMapper.pageReserveList(new Page<ComActReserveDO>(pageUserReserveDTO.getPageNum(), pageUserReserveDTO.getPageSize()),pageUserReserveDTO)); } /** * 小程序查询所有进行中的预约登记 * @param communityId 社区id * @return 社区所有进行中的预约登记列表 */ @Override public R reserveListApplets(Long communityId){ return R.ok(this.baseMapper.getReserveIndexList(communityId)); } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideServiceImpl.java
@@ -6,6 +6,10 @@ import javax.annotation.Resource; import com.panzhihua.common.utlis.AgeUtils; import com.panzhihua.common.utlis.StringUtils; import com.panzhihua.service_community.dao.ComActWorkGuideClassifyDAO; import com.panzhihua.service_community.model.dos.ComActWorkGuideClassifyDO; import com.panzhihua.common.model.vos.community.ComActWorkGuideAppletsVO; import com.panzhihua.common.model.vos.community.ComActWorkGuideDetailAppletsVO; import com.panzhihua.service_community.dao.ComActWorkGuideClassifyDAO; @@ -41,9 +45,9 @@ @Resource ComActWorkGuideMaterialDAO workGuideMaterialDAO; @Resource ComActDAO comActDAO; @Resource private ComActWorkGuideClassifyDAO comActWorkGuideClassifyDAO; @Resource ComActDAO comActDAO; @Override public R addWorkGuide(ComActWorkGuideDTO workGuideDTO, Long userId) { @@ -152,6 +156,14 @@ page.setSize(pageSize); page.setCurrent(pageNum); IPage<ComActWorkGuideVO> iPage = this.baseMapper.pageWorkGuide(page, pageActWorkGuideDTO); if (!iPage.getRecords().isEmpty()) { iPage.getRecords().forEach(comActWorkGuideVO -> { ComActWorkGuideClassifyDO comActWorkGuideClassifyDO = comActWorkGuideClassifyDAO.selectById(comActWorkGuideVO.getClassify()); if (comActWorkGuideClassifyDO != null) { comActWorkGuideVO.setClassifyName(comActWorkGuideClassifyDO.getClassifyName()); } }); } return R.ok(iPage); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
@@ -7,6 +7,8 @@ import javax.annotation.Resource; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @@ -122,6 +124,8 @@ private ComElderAuthElderliesDAO comElderAuthElderliesDAO; @Resource private ComPensionAuthPensionerDAO comPensionAuthPensionerDAO; @Resource private ComEldersAuthStatisticsMapper comEldersAuthStatisticsMapper; @Value("${domain.aesKey:}") private String aesKey; @@ -3994,7 +3998,7 @@ updateList.add(updatePopulationDO); } else { // 不存在实有人口,则新增 populationDO = saveElderPopulationDO(vo, populationActVO, comMngVillageDO, userId); populationDO = saveElderPopulationDO(vo, populationActVO, comMngVillageDO, userId,communityId); saveList.add(populationDO); } log.info("开始查询实有人口是否已存在完成"); @@ -4440,7 +4444,7 @@ Long communityId, Long userId) { BeanUtils.copyProperties(vo, populationDO); ComDrugPopulationDO comDrugPopulationDO = comDrugPopulationDAO.selectOne(new QueryWrapper<ComDrugPopulationDO>() .lambda().eq(ComDrugPopulationDO::getPopulationId, populationDO.getId())); .lambda().eq(ComDrugPopulationDO::getPopulationId, populationDO.getId()).eq(ComDrugPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4470,7 +4474,7 @@ BeanUtils.copyProperties(vo, comDrugPopulationDO); comDrugPopulationDO.setId(Snowflake.getId()); comDrugPopulationDO.setPopulationId(populationDO.getId()); comDrugPopulationDO.setCommunityId(populationDO.getActId()); comDrugPopulationDO.setCommunityId(communityId); comDrugPopulationDO.setStreetId(populationDO.getStreetId()); comDrugPopulationDAO.insert(comDrugPopulationDO); } @@ -4482,7 +4486,7 @@ BeanUtils.copyProperties(vo, populationDO); ComCorrectPopulationDO comCorrectPopulationDO = comCorrectPopulationDAO.selectOne(new QueryWrapper<ComCorrectPopulationDO>().lambda() .eq(ComCorrectPopulationDO::getPopulationId, populationDO.getId())); .eq(ComCorrectPopulationDO::getPopulationId, populationDO.getId()).eq(ComCorrectPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4511,7 +4515,7 @@ BeanUtils.copyProperties(vo, comCorrectPopulationDO); comCorrectPopulationDO.setId(Snowflake.getId()); comCorrectPopulationDO.setPopulationId(populationDO.getId()); comCorrectPopulationDO.setCommunityId(populationDO.getActId()); comCorrectPopulationDO.setCommunityId(communityId); comCorrectPopulationDO.setStreetId(populationDO.getStreetId()); comCorrectPopulationDAO.insert(comCorrectPopulationDO); } @@ -4523,7 +4527,7 @@ BeanUtils.copyProperties(vo, populationDO); ComMajorPopulationDO comMajorPopulationDO = comMajorPopulationDAO.selectOne(new QueryWrapper<ComMajorPopulationDO>().lambda() .eq(ComMajorPopulationDO::getPopulationId, populationDO.getId())); .eq(ComMajorPopulationDO::getPopulationId, populationDO.getId()).eq(ComMajorPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4552,7 +4556,7 @@ BeanUtils.copyProperties(vo, comMajorPopulationDO); comMajorPopulationDO.setId(Snowflake.getId()); comMajorPopulationDO.setPopulationId(populationDO.getId()); comMajorPopulationDO.setCommunityId(populationDO.getActId()); comMajorPopulationDO.setCommunityId(communityId); comMajorPopulationDO.setStreetId(populationDO.getStreetId()); comMajorPopulationDAO.insert(comMajorPopulationDO); } @@ -4563,7 +4567,7 @@ Long communityId, Long userId) { BeanUtils.copyProperties(vo, populationDO); ComCultPopulationDO comCultPopulationDO = comCultPopulationDAO.selectOne(new QueryWrapper<ComCultPopulationDO>() .lambda().eq(ComCultPopulationDO::getPopulationId, populationDO.getId())); .lambda().eq(ComCultPopulationDO::getPopulationId, populationDO.getId()).eq(ComCultPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4592,7 +4596,7 @@ BeanUtils.copyProperties(vo, comCultPopulationDO); comCultPopulationDO.setId(Snowflake.getId()); comCultPopulationDO.setPopulationId(populationDO.getId()); comCultPopulationDO.setCommunityId(populationDO.getActId()); comCultPopulationDO.setCommunityId(communityId); comCultPopulationDO.setStreetId(populationDO.getStreetId()); comCultPopulationDAO.insert(comCultPopulationDO); } @@ -4604,7 +4608,7 @@ BeanUtils.copyProperties(vo, populationDO); ComRehabilitationPopulationDO comRehabilitationPopulationDO = comRehabilitationPopulationDAO.selectOne(new QueryWrapper<ComRehabilitationPopulationDO>().lambda() .eq(ComRehabilitationPopulationDO::getPopulationId, populationDO.getId())); .eq(ComRehabilitationPopulationDO::getPopulationId, populationDO.getId()).eq(ComRehabilitationPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4633,7 +4637,7 @@ BeanUtils.copyProperties(vo, comRehabilitationPopulationDO); comRehabilitationPopulationDO.setId(Snowflake.getId()); comRehabilitationPopulationDO.setPopulationId(populationDO.getId()); comRehabilitationPopulationDO.setCommunityId(populationDO.getActId()); comRehabilitationPopulationDO.setCommunityId(communityId); comRehabilitationPopulationDO.setStreetId(populationDO.getStreetId()); comRehabilitationPopulationDAO.insert(comRehabilitationPopulationDO); } @@ -4645,7 +4649,7 @@ Long communityId, Long userId) { BeanUtils.copyProperties(vo, populationDO); ComKeyPopulationDO comKeyPopulationDO = comKeyPopulationDAO.selectOne(new QueryWrapper<ComKeyPopulationDO>() .lambda().eq(ComKeyPopulationDO::getPopulationId, populationDO.getId())); .lambda().eq(ComKeyPopulationDO::getPopulationId, populationDO.getId()).eq(ComKeyPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4674,7 +4678,7 @@ BeanUtils.copyProperties(vo, comKeyPopulationDO); comKeyPopulationDO.setId(Snowflake.getId()); comKeyPopulationDO.setPopulationId(populationDO.getId()); comKeyPopulationDO.setCommunityId(populationDO.getActId()); comKeyPopulationDO.setCommunityId(communityId); comKeyPopulationDO.setStreetId(populationDO.getStreetId()); comKeyPopulationDAO.insert(comKeyPopulationDO); } @@ -4686,7 +4690,7 @@ BeanUtils.copyProperties(vo, populationDO); ComSentencePopulationDO comSentencePopulationDO = comSentencePopulationDAO.selectOne(new QueryWrapper<ComSentencePopulationDO>().lambda() .eq(ComSentencePopulationDO::getPopulationId, populationDO.getId())); .eq(ComSentencePopulationDO::getPopulationId, populationDO.getId()).eq(ComSentencePopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4715,7 +4719,7 @@ BeanUtils.copyProperties(vo, comSentencePopulationDO); comSentencePopulationDO.setId(Snowflake.getId()); comSentencePopulationDO.setPopulationId(populationDO.getId()); comSentencePopulationDO.setCommunityId(populationDO.getActId()); comSentencePopulationDO.setCommunityId(communityId); comSentencePopulationDO.setStreetId(populationDO.getStreetId()); comSentencePopulationDAO.insert(comSentencePopulationDO); } @@ -4727,7 +4731,7 @@ BeanUtils.copyProperties(vo, populationDO); ComVeteransPopulationDO comVeteransPopulationDO = comVeteransPopulationDAO.selectOne(new QueryWrapper<ComVeteransPopulationDO>().lambda() .eq(ComVeteransPopulationDO::getPopulationId, populationDO.getId())); .eq(ComVeteransPopulationDO::getPopulationId, populationDO.getId()).eq(ComVeteransPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4756,7 +4760,7 @@ BeanUtils.copyProperties(vo, comVeteransPopulationDO); comVeteransPopulationDO.setId(Snowflake.getId()); comVeteransPopulationDO.setPopulationId(populationDO.getId()); comVeteransPopulationDO.setCommunityId(populationDO.getActId()); comVeteransPopulationDO.setCommunityId(communityId); comVeteransPopulationDO.setStreetId(populationDO.getStreetId()); comVeteransPopulationDAO.insert(comVeteransPopulationDO); } @@ -4768,7 +4772,7 @@ BeanUtils.copyProperties(vo, populationDO); ComDisabilityPopulationDO comDisabilityPopulationDO = comDisabilityPopulationDAO.selectOne(new QueryWrapper<ComDisabilityPopulationDO>().lambda() .eq(ComDisabilityPopulationDO::getPopulationId, populationDO.getId())); .eq(ComDisabilityPopulationDO::getPopulationId, populationDO.getId()).eq(ComDisabilityPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4797,7 +4801,7 @@ BeanUtils.copyProperties(vo, comDisabilityPopulationDO); comDisabilityPopulationDO.setId(Snowflake.getId()); comDisabilityPopulationDO.setPopulationId(populationDO.getId()); comDisabilityPopulationDO.setCommunityId(populationDO.getActId()); comDisabilityPopulationDO.setCommunityId(communityId); comDisabilityPopulationDO.setStreetId(populationDO.getStreetId()); comDisabilityPopulationDAO.insert(comDisabilityPopulationDO); } @@ -4809,7 +4813,7 @@ BeanUtils.copyProperties(vo, populationDO); ComLowSecurityPopulationDO comLowSecurityPopulationDO = comLowSecurityPopulationDAO.selectOne(new QueryWrapper<ComLowSecurityPopulationDO>().lambda() .eq(ComLowSecurityPopulationDO::getPopulationId, populationDO.getId())); .eq(ComLowSecurityPopulationDO::getPopulationId, populationDO.getId()).eq(ComLowSecurityPopulationDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4838,7 +4842,7 @@ BeanUtils.copyProperties(vo, comLowSecurityPopulationDO); comLowSecurityPopulationDO.setId(Snowflake.getId()); comLowSecurityPopulationDO.setPopulationId(populationDO.getId()); comLowSecurityPopulationDO.setCommunityId(populationDO.getActId()); comLowSecurityPopulationDO.setCommunityId(communityId); comLowSecurityPopulationDO.setStreetId(populationDO.getStreetId()); comLowSecurityPopulationDAO.insert(comLowSecurityPopulationDO); } @@ -4850,7 +4854,7 @@ BeanUtils.copyProperties(vo, populationDO); ComElderAuthElderliesDO comElderAuthElderliesDO = comElderAuthElderliesDAO.selectOne(new QueryWrapper<ComElderAuthElderliesDO>().lambda() .eq(ComElderAuthElderliesDO::getPopulationId, populationDO.getId())); .eq(ComElderAuthElderliesDO::getPopulationId, populationDO.getId()).eq(ComElderAuthElderliesDO::getCommunityId, communityId)); // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> // userTagStr.split("\\(")[0]).collect(Collectors.toList()); // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 @@ -4884,13 +4888,26 @@ comElderAuthElderliesDO.setPersonnelCategory(ComElderAuthElderliesDO.personnelCategory.above100); } } if (!comElderAuthElderliesDO.getIsAlive().equals(1) || !comElderAuthElderliesDO.getIsRegister().equals(1)) { if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { Calendar calendar = Calendar.getInstance(); // 获取当前年 int year = calendar.get(Calendar.YEAR); // 获取当前月 int month = calendar.get(Calendar.MONTH) + 1; ComEldersAuthStatisticsDO comEldersAuthStatisticsDO = comEldersAuthStatisticsMapper.selectOne(new QueryWrapper<ComEldersAuthStatisticsDO>() .lambda().eq(ComEldersAuthStatisticsDO::getCommunityId, communityId).eq(ComEldersAuthStatisticsDO::getYear, year).eq(ComEldersAuthStatisticsDO::getMonth, month)); comEldersAuthStatisticsDO.setSum(comEldersAuthStatisticsDO.getSum() + 1); comEldersAuthStatisticsMapper.updateById(comEldersAuthStatisticsDO); } } comElderAuthElderliesDAO.updateById(comElderAuthElderliesDO); } else { comElderAuthElderliesDO = new ComElderAuthElderliesDO(); BeanUtils.copyProperties(vo, comElderAuthElderliesDO); comElderAuthElderliesDO.setId(Snowflake.getId()); comElderAuthElderliesDO.setPopulationId(populationDO.getId()); comElderAuthElderliesDO.setCommunityId(populationDO.getActId()); comElderAuthElderliesDO.setCommunityId(communityId); comElderAuthElderliesDO.setStreetId(populationDO.getStreetId()); comElderAuthElderliesDO.setIdCard(cardNoAES); comElderAuthElderliesDO.setAddress(vo.getNowAddress()); @@ -4903,6 +4920,17 @@ }else if (age >= 100){ comElderAuthElderliesDO.setPersonnelCategory(ComElderAuthElderliesDO.personnelCategory.above100); } } if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { Calendar calendar = Calendar.getInstance(); // 获取当前年 int year = calendar.get(Calendar.YEAR); // 获取当前月 int month = calendar.get(Calendar.MONTH) + 1; ComEldersAuthStatisticsDO comEldersAuthStatisticsDO = comEldersAuthStatisticsMapper.selectOne(new QueryWrapper<ComEldersAuthStatisticsDO>() .lambda().eq(ComEldersAuthStatisticsDO::getCommunityId, communityId).eq(ComEldersAuthStatisticsDO::getYear, year).eq(ComEldersAuthStatisticsDO::getMonth, month)); comEldersAuthStatisticsDO.setSum(comEldersAuthStatisticsDO.getSum() + 1); comEldersAuthStatisticsMapper.updateById(comEldersAuthStatisticsDO); } comElderAuthElderliesDAO.insert(comElderAuthElderliesDO); } @@ -5507,7 +5535,7 @@ } private ComMngPopulationDO saveElderPopulationDO(ComMngPopulationElderExcelVO vo, ComPopulationActVO comActDO, ComMngVillageDO comMngVillageDO, Long userId) { ComPopulationActVO comActDO, ComMngVillageDO comMngVillageDO, Long userId, Long communityId) { ComMngPopulationDO populationDO = new ComMngPopulationDO(); ComElderAuthElderliesDO comElderAuthElderliesDO = new ComElderAuthElderliesDO(); BeanUtils.copyProperties(vo, populationDO); @@ -5565,6 +5593,17 @@ comElderAuthElderliesDO.setPersonnelCategory(ComElderAuthElderliesDO.personnelCategory.above100); } } if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { Calendar calendar = Calendar.getInstance(); // 获取当前年 int year = calendar.get(Calendar.YEAR); // 获取当前月 int month = calendar.get(Calendar.MONTH) + 1; ComEldersAuthStatisticsDO comEldersAuthStatisticsDO = comEldersAuthStatisticsMapper.selectOne(new QueryWrapper<ComEldersAuthStatisticsDO>() .lambda().eq(ComEldersAuthStatisticsDO::getCommunityId, communityId).eq(ComEldersAuthStatisticsDO::getYear, year).eq(ComEldersAuthStatisticsDO::getMonth, month)); comEldersAuthStatisticsDO.setSum(comEldersAuthStatisticsDO.getSum() + 1); comEldersAuthStatisticsMapper.updateById(comEldersAuthStatisticsDO); } comElderAuthElderliesDAO.insert(comElderAuthElderliesDO); return populationDO; } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActMicroWishOperationRecordMapper.xml
@@ -9,12 +9,14 @@ <result column="user_id" property="userId" /> <result column="wish_id" property="wishId" /> <result column="create_time" property="createTime" /> <result column="remark" property="remark" /> <result column="img_url" property="imgUrl" /> <result column="type" property="type"/> </resultMap> <!-- 通用查询结果列 --> <sql id="Base_Column_List"> id, content, user_id, wish_id, create_time id, content, user_id, wish_id, create_time, remark, img_url </sql> <select id="getByWishId" resultType="com.panzhihua.common.model.vos.community.ComActMicroWishOperationRecordVO"> @@ -24,7 +26,7 @@ <select id="selectId" resultType="Long"> select id from com_act_micro_wish <where> 1=1 1=1 and community_id = #{communityId} <if test="status !=null"> and status=#{status} </if> springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActNeighborCircleDOMapper.xml
@@ -70,15 +70,7 @@ su.nick_name like concat (#{neighborCircleAppDTO.keyWord},'%') or canc.release_content like concat (#{neighborCircleAppDTO.keyWord},'%')) </if> <if test='neighborCircleAppDTO.type != null and neighborCircleAppDTO.type == 1'> order by canc.hot_num desc </if> <if test='neighborCircleAppDTO.type != null and neighborCircleAppDTO.type == 2'> order by canc.create_at desc </if> <if test='neighborCircleAppDTO.type != null and neighborCircleAppDTO.type == 3'> order by canc.is_boutique asc </if> order by canc.create_at desc </select> <update id="addHotNum"> @@ -100,7 +92,7 @@ LEFT JOIN sys_user u ON nc.release_id = u.user_id LEFT JOIN com_act_neighbor_circle_topic as canct ON canct.id = nc.topic_id <where> nc.community_id = #{neighborCircleAdminDTO.communityId} nc.community_id = #{neighborCircleAdminDTO.communityId} and is_del = 2 <if test='neighborCircleAdminDTO.releaseContent != null and neighborCircleAdminDTO.releaseContent != ""'> and nc.release_content like concat('%',#{neighborCircleAdminDTO.releaseContent},'%') </if> springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActNeighborCircleTopicDOMapper.xml
@@ -49,6 +49,9 @@ <if test="isZero != null and isZero == 1"> and `count` > 0 </if> <if test="name != null and name != """> and `name` like concat('%',#{name},'%') </if> order by hot_num desc </select> springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActReserveMapper.xml
@@ -183,4 +183,9 @@ <update id="addReserveCountById"> update com_act_reserve set join_count = join_count - 1 where id = #{reserveId} </update> <select id="getReserveIndexList" resultType="com.panzhihua.common.model.vos.community.ComActReserveIndexVo"> select id,title,type,img_type,img_url,adver_position_top,adver_position_application from com_act_reserve where `status` = 2 and is_del = 2 and community_id = #{communityId} </select> </mapper> springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActWorkGuideClassifyMapper.xml
@@ -33,7 +33,10 @@ </select> <select id="listWorkGuideClassify" resultType="com.panzhihua.common.model.vos.community.ComActWorkGuideAppletsVO"> select id,classify_name,picture_url from com_act_work_guide_classify SELECT cawgc.id, cawgc.classify_name, cawgc.picture_url,( SELECT count( id ) FROM com_act_work_guide WHERE classify = cawgc.id ) AS `count` FROM com_act_work_guide_classify AS cawgc order by `count` asc </select> </mapper>