Commit a12a90b5 authored by liudong1993's avatar liudong1993

1

parent 11b3c89b
...@@ -3423,7 +3423,7 @@ namespace REBORN.Services.FinanceService ...@@ -3423,7 +3423,7 @@ namespace REBORN.Services.FinanceService
model.RB_Group_Id = userInfo.RB_Group_id; model.RB_Group_Id = userInfo.RB_Group_id;
if ((model.BankList == null || model.BankList.Count == 0) || (string.IsNullOrEmpty(model.sTradeDate) || string.IsNullOrEmpty(model.eTradeDate))) if ((model.BankList == null || model.BankList.Count == 0) || (string.IsNullOrEmpty(model.sTradeDate) || string.IsNullOrEmpty(model.eTradeDate)))
{ {
return ApiResult.Failed("账户/交易日期必须选择其中一个"); return ApiResult.Failed("账户/交易日期必须选择");
} }
if (model.BankList != null && model.BankList.Count > 0 && (!model.BankList.FirstOrDefault().Type.HasValue || model.BankList.FirstOrDefault().Type.Value == 0 || !model.BankList.FirstOrDefault().AccountId.HasValue || model.BankList.FirstOrDefault().AccountId.Value == 0)) if (model.BankList != null && model.BankList.Count > 0 && (!model.BankList.FirstOrDefault().Type.HasValue || model.BankList.FirstOrDefault().Type.Value == 0 || !model.BankList.FirstOrDefault().AccountId.HasValue || model.BankList.FirstOrDefault().AccountId.Value == 0))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment