1
This commit is contained in:
@@ -83,6 +83,8 @@ func addOrderOrWaybillStatus(status *model.OrderStatus, db *dao.DaoDB) (isDuplic
|
|||||||
status.ID = 0
|
status.ID = 0
|
||||||
status.Remark = utils.LimitUTF8StringLen(status.Remark, 255)
|
status.Remark = utils.LimitUTF8StringLen(status.Remark, 255)
|
||||||
created, _, err := db.Db.ReadOrCreate(status, "VendorOrderID", "VendorID", "OrderType", "Status", "VendorStatus", "StatusTime")
|
created, _, err := db.Db.ReadOrCreate(status, "VendorOrderID", "VendorID", "OrderType", "Status", "VendorStatus", "StatusTime")
|
||||||
|
globals.SugarLogger.Debugf("=================created:%v", created)
|
||||||
|
globals.SugarLogger.Debugf("=================err:%v", err)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if !created {
|
if !created {
|
||||||
isDuplicated = true
|
isDuplicated = true
|
||||||
@@ -99,6 +101,7 @@ func addOrderOrWaybillStatus(status *model.OrderStatus, db *dao.DaoDB) (isDuplic
|
|||||||
} else {
|
} else {
|
||||||
dao.Commit(db, txDB)
|
dao.Commit(db, txDB)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("=================isDuplicated:%v", isDuplicated)
|
||||||
return isDuplicated, err
|
return isDuplicated, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user