This commit is contained in:
老齐 2024-06-17 18:13:38 +08:00
parent d2958d9a25
commit ede2f2e8fb
1 changed files with 25 additions and 25 deletions

View File

@ -214,29 +214,29 @@ public class EwaybillController extends BaseController {
return success();
}
// @PostMapping("/get_print_data")
// @ResponseBody
// public AjaxResult getPrintData(@RequestBody TaoWaybillGetBo req) {
// if (req.getShopId() == null || req.getShopId() <= 0) {
// return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误没有店铺Id");
// }
// if (req.getIds() == null || req.getIds().length <= 0) {
// return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误,没有选择订单");
// }
// List<ErpShipWaybill> listByOrderIds = erpShipWaybillService.getListByOrderIds(req.getShopId(), req.getIds());
// return AjaxResult.success(listByOrderIds);
// }
//
// @PostMapping("/push_print_success")
// @ResponseBody
// public AjaxResult pushPrintSuccess(@RequestBody TaoWaybillGetBo req) {
// if (req.getShopId() == null || req.getShopId() <= 0) {
// return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误没有店铺Id");
// }
// if (req.getIds() == null || req.getIds().length <= 0) {
// return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误,没有选择订单");
// }
// erpShipWaybillService.printSuccess(req.getShopId(), req.getIds());
// return AjaxResult.success();
// }
@PostMapping("/get_print_data")
@ResponseBody
public AjaxResult getPrintData(@RequestBody PddWaybillGetBo req) {
if (req.getShopId() == null || req.getShopId() <= 0) {
return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误没有店铺Id");
}
if (req.getIds() == null || req.getIds().length <= 0) {
return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误,没有选择订单");
}
List<ErpShipWaybill> listByOrderIds = erpShipWaybillService.getListByOrderIds(req.getShopId(), req.getIds());
return AjaxResult.success(listByOrderIds);
}
@PostMapping("/push_print_success")
@ResponseBody
public AjaxResult pushPrintSuccess(@RequestBody PddWaybillGetBo req) {
if (req.getShopId() == null || req.getShopId() <= 0) {
return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误没有店铺Id");
}
if (req.getIds() == null || req.getIds().length <= 0) {
return AjaxResult.error(HttpStatus.PARAMS_ERROR, "参数错误,没有选择订单");
}
erpShipWaybillService.printSuccess(req.getShopId(), req.getIds());
return AjaxResult.success();
}
}