Commit 7d7c7e80 by Joneq

提交代码

parent 5f88ad4f
Showing with 1 additions and 9 deletions
......@@ -11,7 +11,6 @@ import (
"photo_taking/internal/dao"
"photo_taking/internal/model"
"photo_taking/internal/service"
"strconv"
"strings"
)
......@@ -273,14 +272,7 @@ func getOrderDetailId(c *bm.Context) {
service.ErrorReturn(c,"数据库连接失败")
}
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)
if err != nil {
service.ErrorReturn(c,err.Error())
}else{
service.ErrorReturn(c,strconv.FormatInt(id,10))
}
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 LIMIT 100) abc where show_zan >= ?", materialno,ordersn,num).Scan(&id)
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