Commit badb5ac4 by Joneq

提交代码

parent 07417266
Showing with 7 additions and 1 deletions
......@@ -11,6 +11,7 @@ import (
"photo_taking/internal/dao"
"photo_taking/internal/model"
"photo_taking/internal/service"
"strconv"
"strings"
)
......@@ -274,7 +275,12 @@ func getOrderDetailId(c *bm.Context) {
err = db.QueryRow(c, "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 >= ?", materialno,ordersn,num).Scan(&id)
db.Exec(c,"insert into lie_order_goods_img (image_src)values('?')",err.Error())
if err != nil {
service.ErrorReturn(c,err.Error())
}else{
service.ErrorReturn(c,strconv.FormatInt(id,10))
}
if id == 0 {
service.ErrorReturn(c,"该订单暂无符合数量的数据")
......
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