|
@@ -359,6 +359,10 @@ public class CardCaseService {
|
|
|
public void revive(Long caseId) {
|
|
public void revive(Long caseId) {
|
|
|
CardCase cardCase = cardCaseRepo.findById(caseId).orElseThrow(new BusinessException("无信息"));
|
|
CardCase cardCase = cardCaseRepo.findById(caseId).orElseThrow(new BusinessException("无信息"));
|
|
|
cardCase.setCaseStatus(CaseStatus.PROGRESS);
|
|
cardCase.setCaseStatus(CaseStatus.PROGRESS);
|
|
|
|
|
+ cardCase.getCardBoxList().forEach(cardBox -> {
|
|
|
|
|
+ cardBox.setCaseStatus(CaseStatus.PROGRESS);
|
|
|
|
|
+ cardBoxRepo.save(cardBox);
|
|
|
|
|
+ });
|
|
|
cardCaseRepo.save(cardCase);
|
|
cardCaseRepo.save(cardCase);
|
|
|
}
|
|
}
|
|
|
|
|
|