Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
Njzj.Biz.Bocoms.Openapis.V4.5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Njzj.Biz.Bocoms.Openapis.V4.5
Commits
7c4771f4
Commit
7c4771f4
authored
Oct 19, 2023
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
68854abf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
Configs.cs
Configs.cs
+2
-1
Njzj.Biz.Bocoms.Openapis.V4.5.csproj
Njzj.Biz.Bocoms.Openapis.V4.5.csproj
+5
-0
WriteOffJob.cs
WriteOffJob.cs
+6
-6
No files found.
Configs.cs
View file @
7c4771f4
...
...
@@ -16,7 +16,8 @@ namespace Com.Bocom.OpenApi
/// 测试环境
/// </summary>
//internal static string APIGW_URL_ADDRESS = "https://open.test.bankcomm.com:9443/uat";//"https://117.184.192.242:9443";
internal
static
string
basicUrlQrCode
=
"https://open.test.bankcomm.com:9443"
;
//"https://117.184.192.242:9443";
internal
static
string
basicUrlQrCode
=
"https://117.184.192.242:9443"
;
//"https://open.test.bankcomm.com:9443";
//internal static string basicUrlQrCode = "https://open.test.bankcomm.com:9443";
/// <summary>
/// 智慧记账正式环境
...
...
Njzj.Biz.Bocoms.Openapis.V4.5.csproj
View file @
7c4771f4
...
...
@@ -146,6 +146,10 @@
<Name>
Kivii.Biz.Finances.V2.0
</Name>
<Private>
False
</Private>
</ProjectReference>
<ProjectReference
Include=
"..\Njzj.Biz.Finances.Bocoms\Njzj.Biz.Finances.Bocoms.V4.5.csproj"
>
<Project>
{ff478a9b-20f1-471e-b163-7a70b1933c25}
</Project>
<Name>
Njzj.Biz.Finances.Bocoms.V4.5
</Name>
</ProjectReference>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
WriteOffJob.cs
View file @
7c4771f4
...
...
@@ -165,7 +165,7 @@ namespace Njzj.Bocoms.Openapis
var
writeOff
=
matchWriteOffs
.
FirstOrDefault
(
o
=>
o
.
BizKvid
==
settlement
.
Kvid
);
if
(
writeOff
==
null
)
{
TaskContext
.
Message
=
$"Error:10004,[
{
settlement
.
Kvid
}
]未找到此账单通知信息!"
;
TaskContext
.
Message
=
$"Error:10004,[
{
settlement
.
Kvid
}
]未找到此账单通知信息
,WO:
{
matchWriteOffs
.
Count
}
,ST:
{
preSettlements
.
Count
}
,CST:
{
preSettlements
.
FindIndex
(
o
=>
o
.
Kvid
==
settlement
.
Kvid
)}
!"
;
continue
;
}
var
currentPayments
=
new
List
<
Payment
>();
...
...
@@ -175,7 +175,7 @@ namespace Njzj.Bocoms.Openapis
var
splitSerial
=
pay
.
vch_no
.
Split
(
'-'
);
if
(
splitSerial
.
Length
!=
3
)
{
TaskContext
.
Message
=
$"Error:10005,[
{
writeOff
.
BillId
}
]vch_no号格式不符合Split规则!"
;
TaskContext
.
Message
=
$"Error:10005,[
{
writeOff
.
BillId
}
]vch_no号格式不符合Split规则
,WO:
{
matchWriteOffs
.
Count
}
,ST:
{
preSettlements
.
Count
}
,CST:
{
preSettlements
.
FindIndex
(
o
=>
o
.
Kvid
==
settlement
.
Kvid
)}
!"
;
continue
;
}
//var serialNumber = splitSerial[1];
...
...
@@ -184,26 +184,26 @@ namespace Njzj.Bocoms.Openapis
serialNumber
=
$"
{
serialNumber
}{
number
}
"
;
if
(
serialNumber
.
IsNullOrEmpty
())
{
TaskContext
.
Message
=
$"Error:10006,[
{
writeOff
.
BillId
}
]vch_no截取的流水号是空
!
"
;
TaskContext
.
Message
=
$"Error:10006,[
{
writeOff
.
BillId
}
]vch_no截取的流水号是空
,WO:
{
matchWriteOffs
.
Count
}
,ST:
{
preSettlements
.
Count
}
,CST:
{
preSettlements
.
FindIndex
(
o
=>
o
.
Kvid
==
settlement
.
Kvid
)}
"
;
continue
;
}
var
payment
=
payments
.
FirstOrDefault
(
o
=>
o
.
SerialNumber
==
serialNumber
);
if
(
payment
==
null
)
{
TaskContext
.
Message
=
$"Error:20002,[
{
writeOff
.
BillId
}
]未找到此流水号[
{
serialNumber
}
]的到账信息
!
"
;
TaskContext
.
Message
=
$"Error:20002,[
{
writeOff
.
BillId
}
]未找到此流水号[
{
serialNumber
}
]的到账信息
,WO:
{
matchWriteOffs
.
Count
}
,ST:
{
preSettlements
.
Count
}
,CST:
{
preSettlements
.
FindIndex
(
o
=>
o
.
Kvid
==
settlement
.
Kvid
)}
"
;
continue
;
}
var
amountTotal
=
pay
.
jnl_write_off_amt
.
ToDecimal
();
if
(
payment
.
Amount
-
payment
.
AmountUsed
<
amountTotal
)
{
TaskContext
.
Message
=
$"Error:20003,流水[
{
payment
.
SerialNumber
}
]可用金额不足
!
"
;
TaskContext
.
Message
=
$"Error:20003,流水[
{
payment
.
SerialNumber
}
]可用金额不足
,WO:
{
matchWriteOffs
.
Count
}
,ST:
{
preSettlements
.
Count
}
,CST:
{
preSettlements
.
FindIndex
(
o
=>
o
.
Kvid
==
settlement
.
Kvid
)}
"
;
continue
;
}
//var splits = connF.Select<Payment>(o => o.RootKvid==payment.Kvid && o.OwnerKvid == settlement.OwnerKvid && o.OffsetKvid == Guid.Empty && o.Type == PaymentType.Split && o.Currency == settlement.Currency);
var
splits
=
connF
.
Select
<
Payment
>(
o
=>
o
.
RootKvid
==
payment
.
Kvid
&&
o
.
OffsetKvid
==
Guid
.
Empty
&&
o
.
Type
==
PaymentType
.
Split
&&
o
.
Currency
==
settlement
.
Currency
);
if
(
splits
.
IsNullOrEmpty
())
{
TaskContext
.
Message
=
$"Error:20004,流水[
{
payment
.
SerialNumber
}
]暂未认领
!
"
;
TaskContext
.
Message
=
$"Error:20004,流水[
{
payment
.
SerialNumber
}
]暂未认领
,WO:
{
matchWriteOffs
.
Count
}
,ST:
{
preSettlements
.
Count
}
,CST:
{
preSettlements
.
FindIndex
(
o
=>
o
.
Kvid
==
settlement
.
Kvid
)}
"
;
continue
;
}
foreach
(
var
split
in
splits
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment