Commit 88ec2e14 by Joneq

提交代码

parent 016afbd4
Showing with 1 additions and 1 deletions
......@@ -272,7 +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)
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 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