| | |
| | | private final IPartyMemberService partyMemberService; |
| | | private final IdentityInformationService identityInformationService; |
| | | private final IDepartmentService departmentService; |
| | | private final WestPopUpService westPopUpService; |
| | | |
| | | private final RedisUtils redisUtils; |
| | | |
| | | @Override |
| | | public String saveComplaint(Complaint complaint, LoginUserInfoVO loginUserInfoVO) { |
| | | public HashMap<String, String> saveComplaint(Complaint complaint, LoginUserInfoVO loginUserInfoVO) { |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | String timeStr = null; |
| | | // 获取当前日期(年月日) |
| | | String datePrefix = new SimpleDateFormat("yyyyMMdd").format(new Date()); |
| | |
| | | complaint.setReportUserPhone(loginUserInfoVO.getPhone()); |
| | | complaint.setSuperiorId(loginUserInfoVO.getCommunityId()); |
| | | |
| | | LocalDate localDate = LocalDate.now().plusDays(workOrderItemConfigService.getById(1).getCommunityHandlingTime()); |
| | | timeStr = localDate.toString(); |
| | | |
| | | ComAct byId = comActService.getById(loginUserInfoVO.getCommunityId()); |
| | | String name = byId.getName(); |
| | | WestPopUp one = westPopUpService.getOne(new LambdaQueryWrapper<WestPopUp>().eq(WestPopUp::getName, name)); |
| | | |
| | | if(one!=null){ |
| | | map.put("name", one.getDeptName()); |
| | | map.put("phone", one.getPhone()); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | complaint.setNowLevelSms(0); |
| | | // 保存诉求记录 |
| | | save(complaint); |
| | | return timeStr; |
| | | |
| | | |
| | | |
| | | |
| | | return map; |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | //已办结,显示评价按钮 |
| | | int count = complaintCommentService.count(new LambdaQueryWrapper<ComplaintComment>().eq(ComplaintComment::getComplaintId, detail.getId()).eq(ComplaintComment::getDelFlag, 0)); |
| | | //查询评价 |
| | | ComplaintComment comment = complaintCommentService.lambdaQuery().eq(ComplaintComment::getComplaintId, id).last("LIMIT 1").one(); |
| | | detail.setComplaintComment(comment); |
| | | if (detail.getStatus() == 3 && 0 == count) { |
| | | if (systemUserByPhone.isPresent()) { |
| | | if (accountLevel.compareTo(detail.getNowLevel()) == 0) { |
| | |
| | | complaint.setRemark(complaintReporAuditDTO.getRemark()); |
| | | complaint.setNowLevelTime(new Date()); |
| | | complaint.setNowLevelSms(0); |
| | | if (StringUtils.isEmpty(complaint.getProblemType())) { |
| | | complaint.setProblemType(complaintReporAuditDTO.getProblemType()); |
| | | } |
| | | |
| | | // 分配流转 |
| | | ComplaintFlow complaintFlow = new ComplaintFlow(); |