|
@@ -249,7 +249,6 @@ namespace OASystem.Domain.Dtos.PersonnelModule
|
|
|
/// </summary>
|
|
|
public GoodsReceiveOPDTOValidator()
|
|
|
{
|
|
|
- RuleFor(x => x.CurrUserId).Must(x => x > 0).WithMessage("请传入当前登陆用户ID!");
|
|
|
RuleFor(x => x.GoodsId).Must(x => x > 0).WithMessage("请传入有效的物品Id!");
|
|
|
RuleFor(x => x.Quantity).Must(x => x > 0).WithMessage("请传入有效的物品数量!");
|
|
|
RuleFor(x => x.Reason).NotEmpty().WithMessage("请填写领用原由!");
|