|
|
|
@ -35,6 +35,7 @@ using System.Linq;
|
|
|
|
|
using DSWeb.SoftMng.DAL;
|
|
|
|
|
using DSWeb.WorkFlow;
|
|
|
|
|
using DSWeb.Areas.MvcShipping.Models.Message.VGM;
|
|
|
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
|
|
|
|
|
{
|
|
|
|
@ -4261,6 +4262,42 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static List<ch_fee_md> 获取业务欠费含更改单(string BSNO) {
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
//var bsnoList = headList.Select(s => s.BSNO).ToList();
|
|
|
|
|
var 欠费FeeList = new List<ch_fee_md>();
|
|
|
|
|
欠费FeeList = cdc.ch_fee.Where(x => BSNO == x.BSNO && x.SETTLEMENT != null && x.SETTLEMENT < x.AMOUNT && x.FEETYPE == 1).ToList();
|
|
|
|
|
|
|
|
|
|
var 更改单List = cdc.op_amend.Where(x => x.PARENTID == BSNO).ToList();
|
|
|
|
|
|
|
|
|
|
if (更改单List != null && 更改单List.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
var 更改单BSNO = 更改单List.Select(s => s.BSNO).ToList();
|
|
|
|
|
var 更改单欠费List = cdc.ch_fee.Where(x => BSNO == x.BSNO && x.SETTLEMENT != null && x.SETTLEMENT < x.AMOUNT && x.FEETYPE == 1).ToList();
|
|
|
|
|
|
|
|
|
|
if (更改单欠费List != null && 更改单欠费List.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
欠费FeeList.AddRange(更改单欠费List);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 欠费FeeList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static List<ch_fee_md> 获取业务欠费含更改单(List<string> BSNOList)
|
|
|
|
|
{
|
|
|
|
|
var result = new List<ch_fee_md>();
|
|
|
|
|
|
|
|
|
|
if (BSNOList != null && BSNOList.Count > 0) {
|
|
|
|
|
foreach (var bsno in BSNOList) {
|
|
|
|
|
var _r = 获取业务欠费含更改单(bsno);
|
|
|
|
|
if (_r != null && _r.Count > 0) {
|
|
|
|
|
result.AddRange(_r);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 存在欠费 则success=true,data返回true;
|
|
|
|
|
/// 不存在欠费 则success=true,data返回false
|
|
|
|
@ -4277,7 +4314,7 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
|
|
|
|
|
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
//var bsnoList = headList.Select(s => s.BSNO).ToList();
|
|
|
|
|
var 欠费FeeList = cdc.ch_fee.Where(x => head.BSNO== x.BSNO && x.SETTLEMENT != null && x.SETTLEMENT < x.AMOUNT && x.FEETYPE == 1).ToList();
|
|
|
|
|
var 欠费FeeList = 获取业务欠费含更改单(head.BSNO);
|
|
|
|
|
|
|
|
|
|
if (欠费FeeList != null && 欠费FeeList.Count > 0)
|
|
|
|
|
{
|
|
|
|
|