|
|
|
@ -27,9 +27,7 @@ import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.utils.ScanContentUtils; |
|
|
|
import com.epmet.constant.EventConstant; |
|
|
|
import com.epmet.constant.ResiEventAction; |
|
|
|
import com.epmet.dao.ResiEventDao; |
|
|
|
import com.epmet.dao.ResiEventOperationLogDao; |
|
|
|
import com.epmet.dao.ResiEventReplyDao; |
|
|
|
import com.epmet.dao.*; |
|
|
|
import com.epmet.dto.CustomerAgencyDTO; |
|
|
|
import com.epmet.dto.form.ReplyFormDTO; |
|
|
|
import com.epmet.dto.form.ReplyListFormDTO; |
|
|
|
@ -66,6 +64,10 @@ public class ResiEventReplyServiceImpl extends BaseServiceImpl<ResiEventReplyDao |
|
|
|
@Autowired |
|
|
|
private ResiEventOperationLogDao resiEventOperationLogDao; |
|
|
|
@Autowired |
|
|
|
private ResiEventMentionDao resiEventMentionDao; |
|
|
|
@Autowired |
|
|
|
private ResiEventReportOrgDao resiEventReportOrgDao; |
|
|
|
@Autowired |
|
|
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|
|
|
@ -130,6 +132,12 @@ public class ResiEventReplyServiceImpl extends BaseServiceImpl<ResiEventReplyDao |
|
|
|
reCallLog.setActionDesc(ResiEventAction.REPLY.getDesc()); |
|
|
|
reCallLog.setOperateTime(resiEventReplyEntity.getCreatedTime()); |
|
|
|
resiEventOperationLogDao.insert(reCallLog); |
|
|
|
// 1、更新被@的人的红点置为显示
|
|
|
|
resiEventMentionDao.updateRedDotShow(replyFormDTO.getResiEventId(),null); |
|
|
|
// 2、更新报事人的红点置为显示
|
|
|
|
eventEntity.setRedDot(true); |
|
|
|
resiEventDao.updateById(eventEntity); |
|
|
|
// 3、组织改为不显示已经在查看详情中操作了 ,目前只有一个组织,如果后面可以报给多个组织,这里入参要增加orgId
|
|
|
|
} |
|
|
|
|
|
|
|
private ResiEventEntity queryResiEntity(String resiEventId) { |
|
|
|
@ -186,6 +194,11 @@ public class ResiEventReplyServiceImpl extends BaseServiceImpl<ResiEventReplyDao |
|
|
|
reCallLog.setActionDesc(ResiEventAction.REPLY.getDesc()); |
|
|
|
reCallLog.setOperateTime(resiEventReplyEntity.getCreatedTime()); |
|
|
|
resiEventOperationLogDao.insert(reCallLog); |
|
|
|
// 1、更新被@的人的红点置为显示
|
|
|
|
resiEventMentionDao.updateRedDotShow(formDTO.getResiEventId(),null); |
|
|
|
// 2、更新报事人的红点置为不显示已经在查看详情中操作了
|
|
|
|
// 3、组织改为显示
|
|
|
|
resiEventReportOrgDao.updateRedDotShow(formDTO.getResiEventId()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -227,6 +240,13 @@ public class ResiEventReplyServiceImpl extends BaseServiceImpl<ResiEventReplyDao |
|
|
|
reCallLog.setActionDesc(ResiEventAction.REPLY.getDesc()); |
|
|
|
reCallLog.setOperateTime(resiEventReplyEntity.getCreatedTime()); |
|
|
|
resiEventOperationLogDao.insert(reCallLog); |
|
|
|
// 1、当前被艾特的人红点不展示已经在查看详情接口操作了,其他被@的人的红点置为显示
|
|
|
|
resiEventMentionDao.updateRedDotShow(replyFormDTO.getResiEventId(),replyFormDTO.getUserId()); |
|
|
|
// 2、更新报事人的红点置为显示
|
|
|
|
eventEntity.setRedDot(true); |
|
|
|
resiEventDao.updateById(eventEntity); |
|
|
|
// 3、组织改为显示
|
|
|
|
resiEventReportOrgDao.updateRedDotShow(replyFormDTO.getResiEventId()); |
|
|
|
} |
|
|
|
|
|
|
|
private void scanReplyContent(String content) { |
|
|
|
|