Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Third.Chinaerdos.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
陶然
Kivii.Third.Chinaerdos.V4.5
Commits
540887cc
Commit
540887cc
authored
Jan 08, 2025
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接优化
parent
6d42ce29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
ErdosBase.cs
Src/Entities/ErdosBase.cs
+18
-2
OrderExtension.cs
Src/Extensions/OrderExtension.cs
+1
-1
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/Entities/ErdosBase.cs
View file @
540887cc
...
...
@@ -14,7 +14,6 @@ namespace Kivii.Third.Chinaerdos.Entities
{
public
class
ErdosOrderBase
:
IEntityIsThirdReportOrder
{
private
JsonServiceClient
_client
=
null
;
public
Report
OnInstanceThirdReport
(
Guid
ThirdReportOrderKvid
)
{
...
...
@@ -111,13 +110,30 @@ namespace Kivii.Third.Chinaerdos.Entities
//catch { }
rtns
.
Results
.
AddRange
(
results
);
rtns
.
Total
=
rtns
.
Results
.
Count
;
var
thread
=
KiviiContext
.
NewThread
(()
=>
{
//没有关联报告的 自动执行符合条件的关联
OrderExtension
.
LinkReports
();
});
thread
.
Start
();
return
rtns
;
}
public
bool
OnRejectThirdReport
(
Guid
ThirdReportOrderKvid
)
{
if
(
ThirdReportOrderKvid
==
Guid
.
Empty
)
return
false
;
var
conn
=
KiviiContext
.
GetOpenedDbConnection
<
ThirdReportOrder
>();
var
third
=
conn
.
SingleById
<
ThirdReportOrder
>(
ThirdReportOrderKvid
);
if
(
third
==
null
)
return
false
;
if
(
third
.
ThirdType
!=
typeof
(
ErdosOrder
).
FullName
)
return
false
;
//订单还未受理的才退回 否则不能退回
if
(
third
.
IsAccepted
)
return
false
;
// third.AutoLinkReports();
if
(
third
.
IsUploaded
)
return
false
;
var
client
=
new
JsonHttpClient
(
Configs
.
_defaultUrl
);
var
resp
=
client
.
RejectOrder
(
third
.
SerialNumber
,
Configs
.
_token
,
Configs
.
_secret
);
if
(
resp
.
code
==
200
)
return
true
;
return
false
;
}
public
bool
OnUploadThirdReport
(
Guid
ThirdReportOrderKvid
)
...
...
Src/Extensions/OrderExtension.cs
View file @
540887cc
...
...
@@ -98,7 +98,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
}
}
public
static
OrderResponse
RejectOrder
(
JsonHttpClient
_client
,
string
orderNo
,
string
apptoken
=
null
,
string
appsecret
=
null
)
public
static
OrderResponse
RejectOrder
(
this
JsonHttpClient
_client
,
string
orderNo
,
string
apptoken
=
null
,
string
appsecret
=
null
)
{
(
_client
==
null
).
ThrowIfTrue
(
"RejectOrder:请传入_client"
);
if
(
apptoken
.
IsNullOrEmpty
())
apptoken
=
Configs
.
_token
;
//.ThrowIfTrue("RejectOrder:请传入apptoken");
...
...
Src/Properties/AssemblyInfo.cs
View file @
540887cc
...
...
@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.202
4.102
80")]
[assembly: AssemblyFileVersion("5.4.202
4.102
80")]
[assembly: AssemblyVersion("5.4.202
5.10
80")]
[assembly: AssemblyFileVersion("5.4.202
5.10
80")]
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