订单-核销

This commit is contained in:
gaowdong 2025-04-28 16:01:30 +08:00
parent d846f0160b
commit 2ea8acf019
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ public class OrderInfoController extends BaseController
@ResponseBody @ResponseBody
public AjaxResult writeOff(@RequestBody @Valid OrderWriteOffParam param) public AjaxResult writeOff(@RequestBody @Valid OrderWriteOffParam param)
{ {
if(CollUtil.isEmpty(param.getOrderIdList())) { if(Objects.isNull(param) || CollUtil.isEmpty(param.getOrderIdList())) {
throw new ServiceException("订单ID不能为空"); throw new ServiceException("订单ID不能为空");
} }
orderInfoService.writeOffOrderByOrderIds(param); orderInfoService.writeOffOrderByOrderIds(param);

View File

@ -8,6 +8,6 @@ import java.util.List;
@Data @Data
public class OrderWriteOffParam implements Serializable { public class OrderWriteOffParam implements Serializable {
@NotNull @NotNull(message = "订单ID不能为空")
private List<Long> orderIdList; private List<Long> orderIdList;
} }