提交代码

new-dev
胡锐 1 year ago committed by Sum1Dream
parent 5028901509
commit 5e8cf913ba
  1. 4
      hai-bweb/src/main/java/com/bweb/controller/HighOrderController.java

@ -73,11 +73,11 @@ public class HighOrderController {
@RequestMapping(value = "/print", method = RequestMethod.GET) @RequestMapping(value = "/print", method = RequestMethod.GET)
@ResponseBody @ResponseBody
@ApiOperation(value = "打印") @ApiOperation(value = "打印")
public ResponseData print(@RequestParam(name = "orderId", required = true) Long orderId, public ResponseData print(@RequestParam(name = "orderNo", required = true) String orderNo,
@RequestParam(name = "printType", required = true) Integer printType) { @RequestParam(name = "printType", required = true) Integer printType) {
try { try {
HighOrder order = highOrderService.getOrderById(orderId); HighOrder order = highOrderService.getOrderByOrderNo(orderNo);
if (order == null) { if (order == null) {
log.error("HighCouponController -> getCouponList() error!","权限不足"); log.error("HighCouponController -> getCouponList() error!","权限不足");
throw ErrorHelp.genException(SysCode.System, ErrorCode.NOT_FOUND_ORDER, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.NOT_FOUND_ORDER, "");

Loading…
Cancel
Save