|
@@ -3,14 +3,17 @@ package com.ym.mec.web.controller;
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
+import com.ym.mec.biz.dal.dao.SellOrderDao;
|
|
|
import com.ym.mec.biz.dal.dao.StudentPaymentOrderDao;
|
|
|
import com.ym.mec.biz.dal.dao.SysConfigDao;
|
|
|
import com.ym.mec.biz.dal.dto.BasicUserDto;
|
|
|
+import com.ym.mec.biz.dal.dto.OutOrderInfoDto;
|
|
|
import com.ym.mec.biz.dal.dto.StudentPaymentRouteOrderDto;
|
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
|
import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
|
|
|
import com.ym.mec.biz.dal.page.SporadicOrderQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.StudentPaymentOrderQueryInfo;
|
|
|
+import com.ym.mec.biz.service.SellOrderService;
|
|
|
import com.ym.mec.biz.service.StudentPaymentOrderDetailService;
|
|
|
import com.ym.mec.biz.service.StudentPaymentOrderService;
|
|
|
import com.ym.mec.biz.service.StudentPaymentRouteOrderService;
|
|
@@ -44,6 +47,8 @@ public class StudentPaymentRouteOrderController extends BaseController {
|
|
|
private EmployeeDao employeeDao;
|
|
|
@Autowired
|
|
|
private StudentPaymentOrderDao studentPaymentOrderDao;
|
|
|
+ @Autowired
|
|
|
+ private SellOrderDao sellOrderDao;
|
|
|
|
|
|
@ApiOperation(value = "财务订单列表")
|
|
|
@GetMapping("/finance")
|
|
@@ -92,5 +97,19 @@ public class StudentPaymentRouteOrderController extends BaseController {
|
|
|
return succeed(studentPaymentRouteOrderService.addOutOrder(studentPaymentRouteOrderDto));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取订单信息")
|
|
|
+ @GetMapping("/getOrderInfo")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('routeOrder/getOrderInfo')")
|
|
|
+ public HttpResponseResult<OutOrderInfoDto> add(Long orderId) {
|
|
|
+ OutOrderInfoDto outOrderInfoDto = (OutOrderInfoDto) studentPaymentOrderDao.get(orderId);
|
|
|
+ outOrderInfoDto.setSellOrders(sellOrderDao.getOrderSellOrder(orderId));
|
|
|
+ return succeed(outOrderInfoDto);
|
|
|
+ }
|
|
|
|
|
|
+ @ApiOperation(value = "获取订单信息")
|
|
|
+ @PostMapping("/delete")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('routeOrder/delete')")
|
|
|
+ public HttpResponseResult<Boolean> delete(Long orderId) {
|
|
|
+ return succeed(studentPaymentRouteOrderService.deleteRouteOrder(orderId));
|
|
|
+ }
|
|
|
}
|