|
@@ -29,6 +29,7 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.DigestUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -140,6 +141,11 @@ public class StudentOrderController extends BaseController {
|
|
|
if (orderByOrderNo.getType().equals(OrderTypeEnum.DOUBLE_ELEVEN2020)) {
|
|
|
LuckDrawCount luckDrawCount = luckDrawCountService.get(orderByOrderNo.getUserId().longValue());
|
|
|
orderDetail.put("drawTimes", luckDrawCount==null? 0: luckDrawCount.getAvailableCount());
|
|
|
+ }else if(OrderTypeEnum.DEGREE_REGISTRATION.equals(orderByOrderNo.getType())){
|
|
|
+ List<StudentPaymentOrderDetail> studentPaymentOrderDetails = studentPaymentOrderDetailService.getOrderDetail(orderByOrderNo.getId());
|
|
|
+ if(!CollectionUtils.isEmpty(studentPaymentOrderDetails)){
|
|
|
+ orderDetail.put("additionCourseInfo", studentPaymentOrderDetails.get(0).getGoodsIdList());
|
|
|
+ }
|
|
|
}
|
|
|
} else if (orderByOrderNo.getGroupType().equals(GroupType.GOODS_SELL)) {
|
|
|
orderDetail.put("detail", studentGoodsSellDao.getStudentGoodsSellDto(orderNo));
|