Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
photo_taking
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e973181b
authored
Nov 04, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改为post传送
parent
81c05e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
internal/server/http/server.go
internal/server/http/server.go
View file @
e973181b
...
...
@@ -45,7 +45,7 @@ func initRouter(e *bm.Engine) {
//获取订单信息
g
.
GET
(
"/get_order_info/:order_id"
,
getOrderInfo
)
//提交明细信息
g
.
GET
(
"/scan_order_detail/:order_id/:scan_str
"
,
getOrderDetailId
)
g
.
POST
(
"/scan_order_detail
"
,
getOrderDetailId
)
//增加订单图片
g
.
POST
(
"/add_order_image"
,
addOrderImage
)
//提交订单
...
...
@@ -255,10 +255,10 @@ func submitOrder(c *bm.Context) {
//获取订单详情ID
func
getOrderDetailId
(
c
*
bm
.
Context
)
{
ordersn
,
_
:=
c
.
Params
.
Get
(
"order_id"
)
ordersn
:=
c
.
Request
.
PostFormValue
(
"order_id"
)
//example |knVJXfVxSYa1o0qjZwznaI4IhhY=|PUI202007220425|100|00160657
scan_str
,
_
:=
c
.
Params
.
Get
(
"scan_str"
)
scan_str
:=
c
.
Request
.
PostFormValue
(
"scan_str"
)
//查询sql select id from (SELECT *,qty-scanqty show_zan FROM `lie_erp_order` where materialno = ? and ordersn = ? order by show_zan asc) abc where show_zan >= ?
...
...
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