|
@@ -1840,5 +1840,20 @@ public class TOrderController {
|
|
|
return R.fail(ResponseCodesEnum.A0001, result);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("是否开发票")
|
|
|
+ @GetMapping("/updateIsInvoice")
|
|
|
+ public ResponseModel<?> updateIsInvoice(Long id, Integer isInvoice) {
|
|
|
+ if(id == null || isInvoice ==null ){
|
|
|
+ return R.fail(ResponseCodesEnum.A0001);
|
|
|
+ }
|
|
|
+ TOrder order = orderService.getById(id);
|
|
|
+ if (order ==null) {
|
|
|
+ return R.fail(ResponseCodesEnum.A0001, "订单不存在");
|
|
|
+ }
|
|
|
+ order.setIsInvoice(isInvoice);
|
|
|
+ orderService.updateById(order);
|
|
|
+ return R.ok("修改成功");
|
|
|
+ }
|
|
|
}
|
|
|
|