订单-核销
This commit is contained in:
parent
d846f0160b
commit
2ea8acf019
|
|
@ -226,7 +226,7 @@ public class OrderInfoController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult writeOff(@RequestBody @Valid OrderWriteOffParam param)
|
||||
{
|
||||
if(CollUtil.isEmpty(param.getOrderIdList())) {
|
||||
if(Objects.isNull(param) || CollUtil.isEmpty(param.getOrderIdList())) {
|
||||
throw new ServiceException("订单ID不能为空");
|
||||
}
|
||||
orderInfoService.writeOffOrderByOrderIds(param);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@ import java.util.List;
|
|||
@Data
|
||||
public class OrderWriteOffParam implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@NotNull(message = "订单ID不能为空")
|
||||
private List<Long> orderIdList;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue