Explorar el Código

1ipad端

master
huangjiajun hace 7 meses
padre
commit
4716d41afc
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +1
    -1
      app/db/db_order_goods_list.go
  2. +2
    -2
      app/ipad/svc/svc_order_make.go

+ 1
- 1
app/db/db_order_goods_list.go Ver fichero

@@ -8,7 +8,7 @@ import (

func GetOrderGoodsListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.OrderGoods, int64) {
var order []model.OrderGoods
sess := eg.Where("state!=5")
sess := eg.Where("state!=5 and num!=success_num")

if param["oid"] != "" {
sess.And("oid = ?", param["oid"])


+ 2
- 2
app/ipad/svc/svc_order_make.go Ver fichero

@@ -210,8 +210,8 @@ func NewOrderSortingEnd(c *gin.Context) {
//修改制作记录
for _, v := range args.OrderInfo {
record := db.GetOrderGoods(sess, v["oid"], args.Gid, args.SkuId)
record.SuccessNum = utils.StrToInt(v["num"])
if utils.StrToInt(v["num"]) == record.Num {
record.SuccessNum += utils.StrToInt(v["num"])
if record.SuccessNum >= record.Num {
record.State = 4
}
record.AdminId = utils.StrToInt(args.AdminId)


Cargando…
Cancelar
Guardar