From b8777038ad0f698da5428916859c241c19d082c3 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Sat, 26 May 2018 15:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3QingDaoWanFu/TypeIOCs/WeightBillTypeIoc.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/B3QingDaoWanFu/TypeIOCs/WeightBillTypeIoc.cs b/B3QingDaoWanFu/TypeIOCs/WeightBillTypeIoc.cs index 490363c..2c6a197 100644 --- a/B3QingDaoWanFu/TypeIOCs/WeightBillTypeIoc.cs +++ b/B3QingDaoWanFu/TypeIOCs/WeightBillTypeIoc.cs @@ -17,6 +17,8 @@ namespace BWP.B3QingDaoWanFu.TypeIOCs { if (dmo.PayTarget == null) throw new Exception("付款对象不能为空"); + if (dmo.BuyNum != dmo.FarmerDetails.Sum(x => x.Number ?? 0)) + throw new Exception("收购头数与养殖户明细头数不相等"); } }