Commit 253435cc by Joneq

提交代码

parent e973181b
......@@ -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())
}
soap, err := gosoap.SoapClient(service.ErpConfig.ErpOrderRequestApi)
log.Info(string(jsonByte))
soap, err = gosoap.SoapClient(service.ErpConfig.ErpOrderRequestApi)
if err != nil {
service.ErrorReturn(c,err.Error())
}
......
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment