|
@@ -219,6 +219,7 @@ public class DzCardsServiceImpl implements IDzCardsService
|
|
|
dzCards.setAssignLocation(location);
|
|
dzCards.setAssignLocation(location);
|
|
|
dzCards.setAssignExamType(null != examType ? examType.name() : null);
|
|
dzCards.setAssignExamType(null != examType ? examType.name() : null);
|
|
|
dzCards.setAssignSchoolId(schoolId);
|
|
dzCards.setAssignSchoolId(schoolId);
|
|
|
|
|
+ dzCards.setDistributeStatus(CardDistributeStatus.Assign.getVal());
|
|
|
dzCardsMapper.updateDzCards(dzCards);
|
|
dzCardsMapper.updateDzCards(dzCards);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -308,6 +309,7 @@ public class DzCardsServiceImpl implements IDzCardsService
|
|
|
throw new ValidationException("重复支付已支付卡: " + StringUtils.join(cardIds, ","));
|
|
throw new ValidationException("重复支付已支付卡: " + StringUtils.join(cardIds, ","));
|
|
|
}
|
|
}
|
|
|
up.setPayStatus(PayStatus.Paid.getVal());
|
|
up.setPayStatus(PayStatus.Paid.getVal());
|
|
|
|
|
+ up.setStatus(CardStatus.Paid.getVal());
|
|
|
up.setPayTime(DateUtils.getNowDate());
|
|
up.setPayTime(DateUtils.getNowDate());
|
|
|
} else if(CardAction.Close.equals(action)) {
|
|
} else if(CardAction.Close.equals(action)) {
|
|
|
if(cards.stream().filter(t -> t.getDistributeStatus().equals(CardDistributeStatus.Close.getVal())).count() > 0) {
|
|
if(cards.stream().filter(t -> t.getDistributeStatus().equals(CardDistributeStatus.Close.getVal())).count() > 0) {
|
|
@@ -334,4 +336,18 @@ public class DzCardsServiceImpl implements IDzCardsService
|
|
|
dzCardsMapper.updateDzCards(up);
|
|
dzCardsMapper.updateDzCards(up);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public Boolean changeCampus(Long campusId, String beginNo, String endNo) {
|
|
|
|
|
+ CardCriteria cond = new CardCriteria();
|
|
|
|
|
+ cond.setStartNo(beginNo);
|
|
|
|
|
+ cond.setEndNo(endNo);
|
|
|
|
|
+ List<DzCards> cards = dzCardsMapper.selectListByCond(cond);
|
|
|
|
|
+ DzCards dzCards = new DzCards();
|
|
|
|
|
+ cards.stream().forEach(c -> {
|
|
|
|
|
+ dzCards.setCardId(c.getCardId());
|
|
|
|
|
+ dzCards.setCampusId(campusId);
|
|
|
|
|
+ dzCardsMapper.updateDzCards(dzCards);
|
|
|
|
|
+ });
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|