@@ -2089,21 +2089,38 @@ where bb.StuNo not in (select b.StuNo from StuInfoBasic b where b.StuNo=bb.StuNo
#endregion
public StuEnrollFeeOrderEntity GetStuEnrollFeeOrder(string keyValue)
public StuEnrollFeeOrderEntity GetStuEnrollFeeOrder(string keyValue,bool IsNewOrOld)
{
try
{
int dateyear = DateTime.Now.Year;
var stufreshinfo = BaseRepository("CollegeMIS").FindEntity<StuInfoFreshEntity>(m=>m.ID==keyValue);
var model = BaseRepository("CollegeMIS").FindEntity<StuEnrollFeeOrderEntity>(a => a.StuNo == stufreshinfo.StuNo&&a.Status==1&&a.billStatus==true&&!string.IsNullOrEmpty(a.billUrl)&&a.YearNo== dateyear);
if (model != null)
if (IsNewOrOld)
{
return model;
var stufreshinfo = BaseRepository("CollegeMIS").FindEntity<StuInfoFreshEntity>(m => m.ID == keyValue);
int year =Convert.ToInt32("20" + stufreshinfo.Grade.ToString());