|
@@ -67,18 +67,23 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
}
|
|
|
degreeRegistration.setLevel(chargeInfo.getTitle());
|
|
|
BigDecimal theoryMoney = BigDecimal.ZERO;
|
|
|
- if (degreeRegistration.getTheoryLevel().equals("一级")) {
|
|
|
- theoryMoney = new BigDecimal(200);
|
|
|
- } else if (degreeRegistration.getTheoryLevel().equals("二级")) {
|
|
|
- theoryMoney = new BigDecimal(240);
|
|
|
- } else if (degreeRegistration.getTheoryLevel().equals("三级")) {
|
|
|
- theoryMoney = new BigDecimal(280);
|
|
|
- } else if (degreeRegistration.getTheoryLevel().equals("四级")) {
|
|
|
- theoryMoney = new BigDecimal(320);
|
|
|
- } else if (degreeRegistration.getTheoryLevel().equals("免考")) {
|
|
|
-
|
|
|
- } else {
|
|
|
- throw new BizException("您选择的乐理级别不存在,请核对");
|
|
|
+ switch (degreeRegistration.getTheoryLevel()) {
|
|
|
+ case "一级":
|
|
|
+ theoryMoney = new BigDecimal(200);
|
|
|
+ break;
|
|
|
+ case "二级":
|
|
|
+ theoryMoney = new BigDecimal(240);
|
|
|
+ break;
|
|
|
+ case "三级":
|
|
|
+ theoryMoney = new BigDecimal(280);
|
|
|
+ break;
|
|
|
+ case "四级":
|
|
|
+ theoryMoney = new BigDecimal(320);
|
|
|
+ break;
|
|
|
+ case "免考":
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ throw new BizException("您选择的乐理级别不存在,请核对");
|
|
|
}
|
|
|
degreeRegistration.setTheoryMoney(theoryMoney);
|
|
|
DegreeRegistration degree = degreeRegistrationDao.findByMobileAndSporadicId(degreeRegistration.getMobile(), degreeRegistration.getSporadicId());
|
|
@@ -93,6 +98,7 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
} else {
|
|
|
degreeRegistration.setId(degree.getId());
|
|
|
degreeRegistration.setStatus(1);
|
|
|
+ degreeRegistration.setCreateTime(nowDate);
|
|
|
degreeRegistration.setUpdateTime(nowDate);
|
|
|
degreeRegistrationDao.update(degreeRegistration);
|
|
|
}
|