|
|
@@ -27,19 +27,16 @@ public class AuditHistoryService {
|
|
|
.orElseThrow(new BusinessException("无记录"));
|
|
|
auditHistory.setTitle(orgInfo.getOrgName());
|
|
|
user.setId(orgInfo.getUserId());
|
|
|
- auditHistory.setMyUser(user);
|
|
|
orgInfoRepo.updateStateById(auditHistory.getOrgInfo());
|
|
|
} else if (auditHistory.getResourceSupplyAndDemand() != null) {
|
|
|
ResourceSupplyAndDemand resourceSupplyAndDemand = resourceSupplyAndDemandRepo
|
|
|
.findById(auditHistory.getResourceSupplyAndDemand().getId())
|
|
|
.orElseThrow(new BusinessException("无记录"));
|
|
|
user.setId(resourceSupplyAndDemand.getPublishersId());
|
|
|
- auditHistory.setMyUser(user);
|
|
|
resourceSupplyAndDemandRepo.updateStatusById(auditHistory.getResourceSupplyAndDemand());
|
|
|
} else if (auditHistory.getPost() != null) {
|
|
|
Post post = postRepo.findById(auditHistory.getPost().getId()).orElseThrow(new BusinessException("无记录"));
|
|
|
user.setId(post.getUserId());
|
|
|
- auditHistory.setMyUser(user);
|
|
|
post.setStatus(auditHistory.getPost().getStatus());
|
|
|
postRepo.save(post);
|
|
|
}
|