baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
BIN
Binary file not shown.
+18
@@ -0,0 +1,18 @@
|
||||
2026-05-15 11:20:04,651 [20] INFO LogHelper - 申请单号CCSQ202605140461构建的请求数据: {"ApprovalNumber":"CCSQ202605140461","Status":1,"EmployeeID":"GS3516","ExpiredTime":"2026-05-20T00:00:00","Remark":"测试","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0690ad212ab0e4f9896465"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"运营中心"},{"FieldName":"CostCenter2","FieldValue":"信息管理部"}],"FlightEndorsementDetails":[],"HotelEndorsementDetails":[{"ProductType":"HOTEL","PassengerList":[{"EID":"GS3516","NameEn":null}]}]}
|
||||
2026-05-15 11:20:05,694 [20] INFO LogHelper - 申请单号CCSQ202605140461携程接口响应: {"SetApprovalResult":{"Status":{"Success":true,"ErrorCode":0,"Message":""},"approvalNumber":"CCSQ202605140461"}}
|
||||
2026-05-15 11:20:13,090 [20] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"361487b36a06eac189e4e61a83855ff1d28f4b90","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0690ad212ab0e4f9896465"},"ExtendFieldList":[{"BudgetAmount":1.00,"Products":12}]}
|
||||
2026-05-15 11:20:13,461 [20] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"Status":{"ErrorCode":17901007,"Message":"接口权限验证未通过","Success":false,"Result":"Failed"},"Data":null}
|
||||
2026-05-15 11:20:13,571 [20] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 11:20:13,632 [20] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 11:21:27,932 [6] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"361487b36a06eac189e4e61a83855ff1d28f4b90","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0690ad212ab0e4f9896465"},"ExtendFieldList":[{"BudgetAmount":1.00,"Products":12}]}
|
||||
2026-05-15 11:22:00,917 [6] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"Status":{"ErrorCode":17901007,"Message":"接口权限验证未通过","Success":false,"Result":"Failed"},"Data":null}
|
||||
2026-05-15 11:22:51,647 [6] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 11:22:51,706 [6] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:20:50,907 [7] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"929f3523599ae3a7f3ef2ceda3a3805eb3c1ee18","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a06c9419b93b0e42c5eeb81"},"ExtendFieldList":[{"BudgetAmount":3.00,"Products":12}]}
|
||||
2026-05-15 15:20:59,504 [7] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"status":{"errorCode":10308002,"message":"预算列表信息必传","success":false}}
|
||||
2026-05-15 15:20:59,617 [7] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:20:59,695 [7] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:22:01,400 [8] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"929f3523599ae3a7f3ef2ceda3a3805eb3c1ee18","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a06c9419b93b0e42c5eeb81"},"ExtendFieldList":[{"BudgetAmount":3.00,"Products":12}]}
|
||||
2026-05-15 15:22:01,672 [8] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"status":{"errorCode":10308002,"message":"预算列表信息必传","success":false}}
|
||||
2026-05-15 15:22:57,497 [8] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:22:57,552 [8] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace GuangFu.StringTracing.Common
|
||||
{
|
||||
|
||||
public static class WmsCommonFunction
|
||||
{
|
||||
|
||||
public static T GetBodyData<T>(string jsonData)
|
||||
{
|
||||
T myBodyData = JsonConvert.DeserializeObject<T>(jsonData);
|
||||
return myBodyData;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新或者插入功能使用次数
|
||||
/// </summary>
|
||||
/// <param name="FNumber"></param>
|
||||
/// <param name="FName"></param>
|
||||
public static void UpUserCount(string FNumber, string FName)
|
||||
{
|
||||
DBHelpe db = new DBHelpe();
|
||||
|
||||
DateTime now = DateTime.Now;
|
||||
int year = now.Year;
|
||||
int month = now.Month;
|
||||
|
||||
string SQL = $@"SELECT *
|
||||
from T_Oth_DevelopmentInfo
|
||||
WHERE FYear = {year} and FMonth = {month} and FNumber = '{FNumber}'";
|
||||
string SQL1 = string.Empty;
|
||||
DataTable dt = db.ExecuteTable(SQL);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
SQL1 = $@"UPDATE T_Oth_DevelopmentInfo set FCount = {Convert.ToInt32(dt.Rows[0]["FCount"]) + 1}
|
||||
WHERE FYear = {year} and FMonth = {month} and FNumber = '{FNumber}'";
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL1 = $@"INSERT into T_Oth_DevelopmentInfo(FYear,FMonth,FNumber,FName,FCount)
|
||||
values ({year} ,{month},'{FNumber}','{FName}',1)";
|
||||
}
|
||||
db.ExecuteNonQuery(SQL1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user