|
@@ -85,7 +85,7 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
if(Objects.nonNull(degreeRegistration.getSporadicId())&&endLevelNum>0){
|
|
|
throw new BizException("您已报考过选择的考级项目");
|
|
|
}
|
|
|
- if(Objects.nonNull(degreeRegistration.getTheoryLevel())&&endTheoryLevelNum>0){
|
|
|
+ if(StringUtils.isNotBlank(degreeRegistration.getTheoryLevel())&&endTheoryLevelNum>0){
|
|
|
throw new BizException("您已报考过选择的考级项目");
|
|
|
}
|
|
|
|
|
@@ -113,7 +113,7 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
degreeRegistration.setMoney(BigDecimal.ZERO);
|
|
|
}
|
|
|
|
|
|
- if(Objects.nonNull(degreeRegistration.getTheoryLevel())){
|
|
|
+ if(StringUtils.isNotBlank(degreeRegistration.getTheoryLevel())){
|
|
|
degreeRegistration.setOrderNo(orderNo);
|
|
|
BigDecimal theoryMoney = BigDecimal.ZERO;
|
|
|
switch (degreeRegistration.getTheoryLevel()) {
|
|
@@ -139,7 +139,7 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
degreeRegistration.setTheoryMoney(BigDecimal.ZERO);
|
|
|
}
|
|
|
|
|
|
- if(Objects.nonNull(degreeRegistration.getSporadicId())||Objects.nonNull(degreeRegistration.getTheoryLevel())){
|
|
|
+ if(Objects.nonNull(degreeRegistration.getSporadicId())||StringUtils.isNotBlank(degreeRegistration.getTheoryLevel())){
|
|
|
degreeRegistration.setStatus(1);
|
|
|
degreeRegistration.setCreateTime(nowDate);
|
|
|
degreeRegistration.setUpdateTime(nowDate);
|
|
@@ -273,16 +273,6 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
studentPaymentOrderService.insert(studentPaymentOrder);
|
|
|
studentPaymentOrder.setVersion(0);
|
|
|
|
|
|
- if (amount.compareTo(BigDecimal.ZERO) == 0) {
|
|
|
- Map<String, String> notifyMap = new HashMap<>();
|
|
|
- notifyMap.put("tradeState", "1");
|
|
|
- notifyMap.put("merOrderNo", studentPaymentOrder.getOrderNo());
|
|
|
- notifyMap.put("channelType", channelType);
|
|
|
- notifyMap.put("orderNo", "");
|
|
|
- studentPaymentOrderService.updateOrder(notifyMap);
|
|
|
- return BaseController.failed(HttpStatus.CREATED, "恭喜您,支付成功!");
|
|
|
- }
|
|
|
-
|
|
|
if(BigDecimal.ZERO.compareTo(additionCoursePrice)<0){
|
|
|
StudentPaymentOrderDetail studentPaymentOrderDetail = new StudentPaymentOrderDetail();
|
|
|
studentPaymentOrderDetail.setType(OrderDetailTypeEnum.DEGREE_REGISTRATION);
|
|
@@ -297,6 +287,16 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
studentPaymentOrderDetailDao.insert(studentPaymentOrderDetail);
|
|
|
}
|
|
|
|
|
|
+ if (amount.compareTo(BigDecimal.ZERO) == 0) {
|
|
|
+ Map<String, String> notifyMap = new HashMap<>();
|
|
|
+ notifyMap.put("tradeState", "1");
|
|
|
+ notifyMap.put("merOrderNo", studentPaymentOrder.getOrderNo());
|
|
|
+ notifyMap.put("channelType", channelType);
|
|
|
+ notifyMap.put("orderNo", "");
|
|
|
+ studentPaymentOrderService.updateOrder(notifyMap);
|
|
|
+ return BaseController.failed(HttpStatus.CREATED, "恭喜您,支付成功!");
|
|
|
+ }
|
|
|
+
|
|
|
String baseApiUrl = sysConfigDao.findConfigValue("base_api_url");
|
|
|
|
|
|
String receiver = "kjRegister";
|