|
@@ -1,21 +1,26 @@
|
|
|
package com.miaxis.app.controller.order;
|
|
|
|
|
|
+import com.miaxis.common.annotation.Log;
|
|
|
import com.miaxis.common.constant.Constants;
|
|
|
import com.miaxis.common.core.controller.BaseController;
|
|
|
+import com.miaxis.common.core.domain.Response;
|
|
|
import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
+import com.miaxis.common.enums.BusinessTypeEnum;
|
|
|
+import com.miaxis.common.exception.CustomException;
|
|
|
import com.miaxis.common.utils.SecurityUtils;
|
|
|
import com.miaxis.order.domain.OrderInfo;
|
|
|
import com.miaxis.order.dto.OrderInfoDto;
|
|
|
import com.miaxis.order.service.IOrderInfoService;
|
|
|
+import com.miaxis.question.domain.QuestionCollection;
|
|
|
+import com.miaxis.question.dto.QuestionCollectionDTO;
|
|
|
+import com.miaxis.question.dto.QuestionCollectionListDTO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -48,6 +53,36 @@ public class OrderInfoController extends BaseController{
|
|
|
return toResponsePageInfo(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *昨日预估收益
|
|
|
+ */
|
|
|
+ @GetMapping("/yesterdayTotal")
|
|
|
+ @ApiOperation("昨日预估收益")
|
|
|
+ public Response<Integer> yesterdayTotal(OrderInfoDto orderInfoDto) {
|
|
|
+ orderInfoDto.setReferralUserId(SecurityUtils.getLoginUser().getStudent().getId());
|
|
|
+ return Response.success(orderInfoService.selectYesterdayTotal(orderInfoDto));
|
|
|
+ }
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ *今日预估收益
|
|
|
+ */
|
|
|
+ @GetMapping("/todayTotal")
|
|
|
+ @ApiOperation("今日预估收益")
|
|
|
+ public Response<Integer> todayTotal(OrderInfoDto orderInfoDto) {
|
|
|
+ orderInfoDto.setReferralUserId(SecurityUtils.getLoginUser().getStudent().getId());
|
|
|
+ return Response.success(orderInfoService.selectTodayTotal(orderInfoDto));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 总收益
|
|
|
+ */
|
|
|
+ @GetMapping("/total")
|
|
|
+ @ApiOperation("总收益")
|
|
|
+ public Response<Integer> total(OrderInfoDto orderInfoDto) {
|
|
|
+ orderInfoDto.setReferralUserId(SecurityUtils.getLoginUser().getStudent().getId());
|
|
|
+ return Response.success(orderInfoService.selectTotal(orderInfoDto));
|
|
|
+ }
|
|
|
+
|
|
|
}
|