浏览代码

add 根据groupType 查进行中订单

周箭河 5 年之前
父节点
当前提交
61147125d3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mec-student/src/main/java/com/ym/mec/student/controller/StudentOrderController.java

+ 3 - 3
mec-student/src/main/java/com/ym/mec/student/controller/StudentOrderController.java

@@ -664,9 +664,9 @@ public class StudentOrderController extends BaseController {
     }
 
     @GetMapping("/getIngOrderByGroupType")
-    public HttpResponseResult getIngOrderByGroupType(Integer userId,Integer musicGroupId,String groupType){
-        Integer ingNum = studentPaymentOrderService.findOrderByGroupType(userId, musicGroupId, groupType, DealStatusEnum.ING);
-        return succeed(ingNum);
+    public HttpResponseResult getIngOrderByGroupType(Integer userId,String musicGroupId,GroupType groupType){
+        List<StudentPaymentOrder> userGroupOrders = studentPaymentOrderDao.findUserGroupOrders(userId, musicGroupId, groupType, DealStatusEnum.ING);
+        return succeed(userGroupOrders);
 
     }
 }