1
This commit is contained in:
@@ -83,6 +83,8 @@ func addOrderOrWaybillStatus(status *model.OrderStatus, db *dao.DaoDB) (isDuplic
|
||||
status.ID = 0
|
||||
status.Remark = utils.LimitUTF8StringLen(status.Remark, 255)
|
||||
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 !created {
|
||||
isDuplicated = true
|
||||
@@ -99,6 +101,7 @@ func addOrderOrWaybillStatus(status *model.OrderStatus, db *dao.DaoDB) (isDuplic
|
||||
} else {
|
||||
dao.Commit(db, txDB)
|
||||
}
|
||||
globals.SugarLogger.Debugf("=================isDuplicated:%v", isDuplicated)
|
||||
return isDuplicated, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user