Kaynağa Gözat

长阳一卡通请求参数变更

master^2
ndbs 7 ay önce
ebeveyn
işleme
017b7d2599
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. +4
    -4
      DigitalSchoolApi/Controllers/YKTTrabs.cs

+ 4
- 4
DigitalSchoolApi/Controllers/YKTTrabs.cs Dosyayı Görüntüle

@@ -813,7 +813,7 @@ namespace DigitalSchoolApi.Controllers
conncore.Execute(
"insert into LR_Base_Log(F_LogId,F_CategoryId,F_SourceObjectId,F_SourceContentJson,F_OperateTime) values(newid(),121,'typecode','开票typecode:" + item.Key + "',getdate())");
}
InvoiceEBillByTypeTwo(conn,orderEntity, item.Key, item);
InvoiceEBillByTypeTwo(conn, orderEntity, item.Key, item);
}
catch (Exception ex)
{
@@ -1030,7 +1030,7 @@ namespace DigitalSchoolApi.Controllers
}
}

private static void InvoiceEBillByTypeTwo(IDbConnection conn,FinaChargeStuOrderEntity orderEntity, string billCode, IGrouping<string, FinaChargeStuYearItemEntity> stuEnrollFeeOrderDetailList)
private static void InvoiceEBillByTypeTwo(IDbConnection conn, FinaChargeStuOrderEntity orderEntity, string billCode, IGrouping<string, FinaChargeStuYearItemEntity> stuEnrollFeeOrderDetailList)
{
Encoding encoding = Encoding.UTF8;
string StuName = conn.QuerySingle("select StuName from FinaChargeStudent where stuno='" + orderEntity.StuNo + "'").StuName;
@@ -2330,14 +2330,14 @@ namespace DigitalSchoolApi.Controllers
{
string JylsUrl = ConfigurationManager.AppSettings["JylsUrl"];
var Historylist = Convert.ToInt64(conn.ExecuteScalar("select isnull(Max(centralNo),0) from MealCardRunTab "));
string data = "{ \"pageNo\":\"1\",\"PageSize\":\"1000\",\"Date\":\"" + DateTime.Now.ToShortDateString() + "\",\"StartTime\":\"00:00:00\",\"EndTime\":\"23:59:59\"}";
string data = "{ \"pageNo\":\"1\",\"PageSize\":\"1000\",\"Date\":\"" + DateTime.Now.ToShortDateString() + "\",\"StartTime\":\"00:00:00\",\"EndTime\":\"23:59:59\",\"depcode\":\"7D\"}";
var responses = HttpMethods.sendHttpPost(JylsUrl, Token, data);
var RequsetList = JsonConvert.DeserializeObject<JSONList>(responses);
if (RequsetList.pageTotal > 0)
{
for (int i = 1; i <= RequsetList.pageTotal; i++)
{
data = "{ \"pageNo\":\"" + i + " \",\"PageSize\":\"1000\",\"Date\":\"" + DateTime.Now.ToShortDateString() + "\",\"StartTime\":\"00:00:00\",\"EndTime\":\"23:59:59\"}";
data = "{ \"pageNo\":\"" + i + " \",\"PageSize\":\"1000\",\"Date\":\"" + DateTime.Now.ToShortDateString() + "\",\"StartTime\":\"00:00:00\",\"EndTime\":\"23:59:59\",\"depcode\":\"7D\"}";
var responses1 = HttpMethods.sendHttpPost(JylsUrl, Token, data);
var RequsetList1 = JsonConvert.DeserializeObject<JSONList>(responses1);
var NowCen = RequsetList1.data.flowlist.Max(x => x.centralNo);


Yükleniyor…
İptal
Kaydet