订单-核销
This commit is contained in:
parent
d846f0160b
commit
2ea8acf019
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue