feat: (REQ-3300) 单独上传附件加上日志-入参加上workspaceId
This commit is contained in:
parent
15a139dd7b
commit
eb003ab0ab
@ -358,11 +358,14 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl<ChangeRecordRel
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(req.getAttach())) {
|
||||
List<String> uploadAttachFileNameList = req.getAttach().stream().map(item -> item.getFileName()).collect(Collectors.toList());
|
||||
if (CollectionUtils.isNotEmpty(uploadAttachFileNameList)) {
|
||||
if (CollectionUtils.isNotEmpty(uploadAttachFileNameList)
|
||||
&& Objects.nonNull(req.getOperatorPersonId())
|
||||
&& Objects.nonNull(req.getOperatorOuId())
|
||||
&& Objects.nonNull(req.getWorkspaceId())) {
|
||||
changeRecordLogService.batchAddLog(req.getVisaId(), VisaLogTypeEnum.UPLOAD_FILE
|
||||
, VisaLogParam.builder().personId(req.getOperatorPersonId())
|
||||
.ouId(req.getOperatorOuId())
|
||||
.workspaceId(req.getOperatorWorkspaceId())
|
||||
.workspaceId(req.getWorkspaceId())
|
||||
.uploadAttach(uploadAttachFileNameList).build());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user