Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QG
customer-service
Commits
b8b6daa8
Commit
b8b6daa8
authored
Nov 14, 2022
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改核销单号字段
parent
292fc390
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
TransactionReceiptRecord.java
.../quantgroup/customer/entity/TransactionReceiptRecord.java
+2
-2
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+6
-5
No files found.
src/main/java/cn/quantgroup/customer/entity/TransactionReceiptRecord.java
View file @
b8b6daa8
...
@@ -35,8 +35,8 @@ public class TransactionReceiptRecord {
...
@@ -35,8 +35,8 @@ public class TransactionReceiptRecord {
@Column
(
name
=
"order_no"
)
@Column
(
name
=
"order_no"
)
private
String
orderNo
;
private
String
orderNo
;
@Column
(
name
=
"
order_id
"
)
@Column
(
name
=
"
consume_no
"
)
private
String
orderId
;
private
String
consumeNo
;
@Column
(
name
=
"batch_no"
)
@Column
(
name
=
"batch_no"
)
private
Integer
batchNo
=
0
;
private
Integer
batchNo
=
0
;
...
...
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
b8b6daa8
...
@@ -235,7 +235,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -235,7 +235,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
}
}
//保存时如果有其中一项为空则默认为导入失败,其他则默认初始状态
//保存时如果有其中一项为空则默认为导入失败,其他则默认初始状态
if
(
record
.
getUserId
()
==
null
||
record
.
getUserId
()
==
0
if
(
record
.
getUserId
()
==
null
||
record
.
getUserId
()
==
0
||
StringUtils
.
isEmpty
(
record
.
getUserName
())){
||
StringUtils
.
isEmpty
(
record
.
getUserName
())
||
(
StringUtils
.
isEmpty
(
record
.
getOrderNo
())
&&
StringUtils
.
isEmpty
(
record
.
getConsumeNo
()))){
record
.
setImportStatus
(
VoucherExportStatus
.
EXPORT_FAIL
.
getCode
());
record
.
setImportStatus
(
VoucherExportStatus
.
EXPORT_FAIL
.
getCode
());
//默认导出失败
//默认导出失败
record
.
setExportStatus
(
VoucherExportStatus
.
EXPORT_FAIL
.
getCode
());
record
.
setExportStatus
(
VoucherExportStatus
.
EXPORT_FAIL
.
getCode
());
...
@@ -319,7 +320,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -319,7 +320,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
}
else
if
(
c
==
4
){
}
else
if
(
c
==
4
){
record
.
setOrderNo
(
cellValue
);
record
.
setOrderNo
(
cellValue
);
}
else
if
(
c
==
5
)
{
}
else
if
(
c
==
5
)
{
record
.
set
OrderId
(
cellValue
);
record
.
set
ConsumeNo
(
cellValue
);
}
}
}
}
recordList
.
add
(
record
);
recordList
.
add
(
record
);
...
@@ -356,7 +357,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -356,7 +357,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
for
(
TransactionReceiptRecord
record
:
transactionReceiptRecordList
){
for
(
TransactionReceiptRecord
record
:
transactionReceiptRecordList
){
Integer
userId
=
record
.
getUserId
();
Integer
userId
=
record
.
getUserId
();
String
orderNo
=
record
.
getOrderNo
();
String
orderNo
=
record
.
getOrderNo
();
String
orderId
=
record
.
getOrderId
();
String
consumeNo
=
record
.
getConsumeNo
();
//调用kdsp接口获取交易凭证订单信息
//调用kdsp接口获取交易凭证订单信息
String
url
=
kdspOperationUrl
+
"/api/kdsp/op/fa-cui/transaction-proof/query"
;
String
url
=
kdspOperationUrl
+
"/api/kdsp/op/fa-cui/transaction-proof/query"
;
//String url = "http://kdsp-operation-test7.liangkebang.net/api/kdsp/op/fa-cui/transaction-proof/query";
//String url = "http://kdsp-operation-test7.liangkebang.net/api/kdsp/op/fa-cui/transaction-proof/query";
...
@@ -371,8 +372,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -371,8 +372,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
if
(
StringUtils
.
isNotBlank
(
orderNo
))
{
if
(
StringUtils
.
isNotBlank
(
orderNo
))
{
param
.
put
(
"orderNo"
,
orderNo
);
param
.
put
(
"orderNo"
,
orderNo
);
}
}
if
(
StringUtils
.
isNotBlank
(
orderId
))
{
if
(
StringUtils
.
isNotBlank
(
consumeNo
))
{
param
.
put
(
"consumeNo"
,
orderId
);
param
.
put
(
"consumeNo"
,
consumeNo
);
}
}
List
<
Map
>
paramList
=
new
ArrayList
<>();
List
<
Map
>
paramList
=
new
ArrayList
<>();
paramList
.
add
(
param
);
paramList
.
add
(
param
);
...
...
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