|
@@ -12,6 +12,7 @@ import com.ruoyi.info.management.domain.vo.TeacherDepartmentRelVo;
|
|
|
import com.ruoyi.info.management.service.ITeacherDepartmentRelService;
|
|
import com.ruoyi.info.management.service.ITeacherDepartmentRelService;
|
|
|
import com.ruoyi.info.order.domain.bo.OrderRefundBo;
|
|
import com.ruoyi.info.order.domain.bo.OrderRefundBo;
|
|
|
import com.ruoyi.info.order.domain.vo.OrderRefundVo;
|
|
import com.ruoyi.info.order.domain.vo.OrderRefundVo;
|
|
|
|
|
+import com.ruoyi.info.order.enums.OrderOperatorType;
|
|
|
import com.ruoyi.info.order.service.IOrderRefundService;
|
|
import com.ruoyi.info.order.service.IOrderRefundService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -34,7 +35,7 @@ import java.util.stream.Collectors;
|
|
|
@Api(value = "售后订单控制器", tags = {"售后订单管理"})
|
|
@Api(value = "售后订单控制器", tags = {"售后订单管理"})
|
|
|
@RequiredArgsConstructor
|
|
@RequiredArgsConstructor
|
|
|
@RestController
|
|
@RestController
|
|
|
-@RequestMapping("/api/orderRefund")
|
|
|
|
|
|
|
+@RequestMapping("/api/teacher/orderRefund")
|
|
|
public class ApiTeacherOrderRefundController extends AbstractApiController {
|
|
public class ApiTeacherOrderRefundController extends AbstractApiController {
|
|
|
|
|
|
|
|
private final IOrderRefundService iOrderRefundService;
|
|
private final IOrderRefundService iOrderRefundService;
|
|
@@ -76,6 +77,7 @@ public class ApiTeacherOrderRefundController extends AbstractApiController {
|
|
|
@PostMapping("/agreeOrRefuse")
|
|
@PostMapping("/agreeOrRefuse")
|
|
|
public R<Void> agreeOrRefuse(@RequestBody OrderRefundBo bo) {
|
|
public R<Void> agreeOrRefuse(@RequestBody OrderRefundBo bo) {
|
|
|
bo.setOperatorId(getTeacherId());
|
|
bo.setOperatorId(getTeacherId());
|
|
|
|
|
+ bo.setOperatorType(OrderOperatorType.teacher.getCode());
|
|
|
return toAjax(iOrderRefundService.agreeOrRefuse(bo) ? 1 : 0);
|
|
return toAjax(iOrderRefundService.agreeOrRefuse(bo) ? 1 : 0);
|
|
|
}
|
|
}
|
|
|
|
|
|