varsql=$@"SELECT * FROM {viewName} where STR_TO_DATE(concat(Year,'-',Month),'%Y-%m') >= '{BeginTime}' and STR_TO_DATE(concat(Year,'-',Month),'%Y-%m') <= '{EndTime}'";
varsql=$@"SELECT * FROM {viewName}
where STR_TO_DATE(concat(Year,'-',Month,'-01'),'%Y-%m-%d') >= @beginTime
and STR_TO_DATE(concat(Year,'-',Month,'-01'),'%Y-%m-%d') < @endTime";
@@ -418,7 +421,7 @@ public CustonPagingData QueryCustom(CustomPagingRequest request, bool IsHead)
else
sql=$@"SELECT * FROM {request.TableName} WHERE AllotId = @AllotId {Query} order by UnitType,AccountingUnit LIMIT {(request.PageIndex-1)*request.PageSize},{request.PageSize} ";