Bladeren bron

长阳一卡通请求参数变更

master^2
ndbs 7 maanden geleden
bovenliggende
commit
017b7d2599
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. +4
    -4
      DigitalSchoolApi/Controllers/YKTTrabs.cs

+ 4
- 4
DigitalSchoolApi/Controllers/YKTTrabs.cs Bestand weergeven

@@ -813,7 +813,7 @@ namespace DigitalSchoolApi.Controllers
conncore.Execute( 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())"); "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) 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; Encoding encoding = Encoding.UTF8;
string StuName = conn.QuerySingle("select StuName from FinaChargeStudent where stuno='" + orderEntity.StuNo + "'").StuName; 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"]; string JylsUrl = ConfigurationManager.AppSettings["JylsUrl"];
var Historylist = Convert.ToInt64(conn.ExecuteScalar("select isnull(Max(centralNo),0) from MealCardRunTab ")); 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 responses = HttpMethods.sendHttpPost(JylsUrl, Token, data);
var RequsetList = JsonConvert.DeserializeObject<JSONList>(responses); var RequsetList = JsonConvert.DeserializeObject<JSONList>(responses);
if (RequsetList.pageTotal > 0) if (RequsetList.pageTotal > 0)
{ {
for (int i = 1; i <= RequsetList.pageTotal; i++) 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 responses1 = HttpMethods.sendHttpPost(JylsUrl, Token, data);
var RequsetList1 = JsonConvert.DeserializeObject<JSONList>(responses1); var RequsetList1 = JsonConvert.DeserializeObject<JSONList>(responses1);
var NowCen = RequsetList1.data.flowlist.Max(x => x.centralNo); var NowCen = RequsetList1.data.flowlist.Max(x => x.centralNo);


Laden…
Annuleren
Opslaan