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
253435cc
authored
Nov 05, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
e973181b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
internal/server/http/server.go
internal/service/db_select.go
internal/server/http/server.go
View file @
253435cc
...
...
@@ -228,9 +228,15 @@ func submitOrder(c *bm.Context) {
res
*
gosoap
.
Response
)
jsonByte
,
_
:=
json
.
Marshal
(
ErpSubmitImage
)
jsonByte
,
err
:=
json
.
Marshal
(
ErpSubmitImage
)
if
err
!=
nil
{
service
.
ErrorReturn
(
c
,
err
.
Error
())
}
log
.
Info
(
string
(
jsonByte
))
soap
,
err
:
=
gosoap
.
SoapClient
(
service
.
ErpConfig
.
ErpOrderRequestApi
)
soap
,
err
=
gosoap
.
SoapClient
(
service
.
ErpConfig
.
ErpOrderRequestApi
)
if
err
!=
nil
{
service
.
ErrorReturn
(
c
,
err
.
Error
())
}
...
...
internal/service/db_select.go
View file @
253435cc
...
...
@@ -46,6 +46,7 @@ func SelectOrderInfoFromOrderId(c *bm.Context,orderId string)([]model.OrderAllIn
currentOrderAllInfo
.
OrderInfo
=
orderInfo
currentOrderAllInfo
.
OrderInfo
.
OrderImageInfo
=
GetOrderEntryImage
(
c
,
orderInfo
.
Issuebillid
,
orderInfo
.
Issueentryid
)
currentOrderAllInfo
.
OrderImageInfo
=
currentOrderAllInfo
.
OrderInfo
.
OrderImageInfo
orderAllInfo
=
append
(
orderAllInfo
,
currentOrderAllInfo
)
}
...
...
@@ -64,6 +65,9 @@ func GetOrderEntryImage(c *bm.Context,Issuebillid,Issueentryid string)([]model.O
var
orderAllImage
[]
model
.
OrderImage
imagerows
,
err
:=
db
.
Query
(
c
,
"select issuebillid,issueentryid,image_src from lie_order_goods_img where issuebillid = ? and issueentryid = ? order by id desc limit 0,?"
,
Issuebillid
,
Issueentryid
,
PhotoNum
)
if
err
!=
nil
{
log
.
Error
(
err
.
Error
())
}
defer
imagerows
.
Close
()
for
imagerows
.
Next
()
{
var
orderCurrentImage
model
.
OrderImage
...
...
@@ -71,6 +75,7 @@ func GetOrderEntryImage(c *bm.Context,Issuebillid,Issueentryid string)([]model.O
log
.
Error
(
"scan demo log error(%v)"
,
err
)
continue
}
orderAllImage
=
append
(
orderAllImage
,
orderCurrentImage
)
}
...
...
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