Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
6ce7fac1
Commit
6ce7fac1
authored
Apr 23, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求 #14923
parent
a6a17425
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
OrderController.java
src/main/java/com/egolm/shop/api/OrderController.java
+1
-1
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+6
-1
No files found.
src/main/java/com/egolm/shop/api/OrderController.java
View file @
6ce7fac1
...
@@ -67,7 +67,7 @@ public class OrderController {
...
@@ -67,7 +67,7 @@ public class OrderController {
@ApiOperation
(
"订单正式提交(JSON格式)"
)
@ApiOperation
(
"订单正式提交(JSON格式)"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"data"
,
dataType
=
"String"
,
required
=
false
,
value
=
"JSON格式"
,
defaultValue
=
"{\"shopNO\": \"00029975\",\"terminal\": \"wechat\",\"langID\": \"936\",\"payTypeID\":1,\"addrID\":\"111111\",\"orderMemo\":\"备注\",\"couponNO\":\"\",\"couponTypeID\":\"\", \"bankType\": \"xxx\", 'bankAccount': 'xxx', 'bankAccountName': 'xxx', 'revBankType': 'xxx', 'revBankAccount': 'xxx', 'revBankAccountNo': 'xxx', 'formId': 'xxx', 'email': 'xxx', 'salesmanNo': 'xxx'}"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"data"
,
dataType
=
"String"
,
required
=
false
,
value
=
"JSON格式"
,
defaultValue
=
"{\"shopNO\": \"00029975\",\"terminal\": \"wechat\",\"langID\": \"936\",\"payTypeID\":1,\"addrID\":\"111111\",\"orderMemo\":\"备注\",\"couponNO\":\"\",\"couponTypeID\":\"\", \"bankType\": \"xxx\", 'bankAccount': 'xxx', 'bankAccountName': 'xxx', 'revBankType': 'xxx', 'revBankAccount': 'xxx', 'revBankAccountNo': 'xxx', 'formId': 'xxx', 'email': 'xxx', 'salesmanNo': 'xxx'
,'onlinePayTypeID':'xxx','payCardNO':'PayCardNO'
}"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
})
})
...
...
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
6ce7fac1
...
@@ -124,6 +124,8 @@ public class OrderServiceImpl implements OrderService {
...
@@ -124,6 +124,8 @@ public class OrderServiceImpl implements OrderService {
String
revBankAccountNo
=
submitObj
.
getString
(
"revBankAccountNo"
);
String
revBankAccountNo
=
submitObj
.
getString
(
"revBankAccountNo"
);
String
email
=
submitObj
.
getString
(
"email"
);
String
email
=
submitObj
.
getString
(
"email"
);
String
salesmanNo
=
submitObj
.
getString
(
"salesmanNo"
);
String
salesmanNo
=
submitObj
.
getString
(
"salesmanNo"
);
String
onlinePayTypeID
=
submitObj
.
getString
(
"onlinePayTypeID"
);
//需求 #14923
String
payCardNO
=
submitObj
.
getString
(
"payCardNO"
);
bankAccountName
=
StringUtil
.
isBlank
(
bankAccountName
)
?
""
:
bankAccountName
;
bankAccountName
=
StringUtil
.
isBlank
(
bankAccountName
)
?
""
:
bankAccountName
;
revBankType
=
StringUtil
.
isBlank
(
revBankType
)
?
""
:
revBankType
;
revBankType
=
StringUtil
.
isBlank
(
revBankType
)
?
""
:
revBankType
;
revBankAccount
=
StringUtil
.
isBlank
(
revBankAccount
)
?
""
:
revBankAccount
;
revBankAccount
=
StringUtil
.
isBlank
(
revBankAccount
)
?
""
:
revBankAccount
;
...
@@ -133,12 +135,15 @@ public class OrderServiceImpl implements OrderService {
...
@@ -133,12 +135,15 @@ public class OrderServiceImpl implements OrderService {
+
"', '"
+
addrID
+
"', '"
+
orderMemo
+
"', '"
+
couponNO
+
"','"
+
couponTypeID
+
"', '', '1', '"
+
"', '"
+
addrID
+
"', '"
+
orderMemo
+
"', '"
+
couponNO
+
"','"
+
couponTypeID
+
"', '', '1', '"
+
(
bankType
==
null
?
""
:
bankType
)
+
"', '"
+
(
bankAccount
==
null
?
""
:
bankAccount
)
+
"', '"
+
(
bankType
==
null
?
""
:
bankType
)
+
"', '"
+
(
bankAccount
==
null
?
""
:
bankAccount
)
+
"', '"
+
bankAccountName
+
"', '"
+
revBankType
+
"', '"
+
revBankAccount
+
"', '"
+
revBankAccountNo
+
bankAccountName
+
"', '"
+
revBankType
+
"', '"
+
revBankAccount
+
"', '"
+
revBankAccountNo
+
"'"
;
+
"','"
+
onlinePayTypeID
+
"' ,'"
+
payCardNO
+
"' "
;
List
<
Map
<
String
,
Object
>>
commitMap
=
jdbcTemplate
.
executeMutil
(
sql
).
getDatas
().
get
(
0
);
List
<
Map
<
String
,
Object
>>
commitMap
=
jdbcTemplate
.
executeMutil
(
sql
).
getDatas
().
get
(
0
);
if
(
commitMap
!=
null
&&
commitMap
.
size
()
>
0
&&
commitMap
.
get
(
0
)
!=
null
if
(
commitMap
!=
null
&&
commitMap
.
size
()
>
0
&&
commitMap
.
get
(
0
)
!=
null
&&
Util
.
objTo
(
commitMap
.
get
(
0
).
get
(
"Status"
),
Integer
.
class
)
==
0
&&
Util
.
objTo
(
commitMap
.
get
(
0
).
get
(
"Status"
),
Integer
.
class
)
==
0
&&
Util
.
objTo
(
commitMap
.
get
(
commitMap
.
size
()
-
1
).
get
(
"Status"
),
Integer
.
class
)
==
0
)
{
&&
Util
.
objTo
(
commitMap
.
get
(
commitMap
.
size
()
-
1
).
get
(
"Status"
),
Integer
.
class
)
==
0
)
{
String
sSalesOrderID
=
(
String
)
commitMap
.
get
(
0
).
get
(
"SalesOrderID"
);
String
sSalesOrderID
=
(
String
)
commitMap
.
get
(
0
).
get
(
"SalesOrderID"
);
//String sOutTradeNO = (String) commitMap.get(0).get("OutTradeNO");
jdbcTemplate
.
update
(
jdbcTemplate
.
update
(
"update tSalesOrder set sFormID = ?, sEmail = ?, sSalesmanNO = ? where sSalesOrderID = ?"
,
"update tSalesOrder set sFormID = ?, sEmail = ?, sSalesmanNO = ? where sSalesOrderID = ?"
,
formId
,
email
,
salesmanNo
,
sSalesOrderID
);
formId
,
email
,
salesmanNo
,
sSalesOrderID
);
...
...
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