add
This commit is contained in:
@@ -437,12 +437,12 @@ func GetUserUnionBindImg(db *DaoDB, unionID, actID string) (userBinds *model.Use
|
|||||||
return userBinds, err
|
return userBinds, err
|
||||||
}
|
}
|
||||||
func GetUserVendorOrder(db *DaoDB, userID, localWayBill string) (userVendorOrder *model.UserVendorOrder, err error) {
|
func GetUserVendorOrder(db *DaoDB, userID, localWayBill string) (userVendorOrder *model.UserVendorOrder, err error) {
|
||||||
sql := `SELECT * FROM user_vendor_order WHERE `
|
sql := `SELECT * FROM user_vendor_order WHERE deleted_at = ? `
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
utils.DefaultTimeValue,
|
utils.DefaultTimeValue,
|
||||||
}
|
}
|
||||||
if userID != "" {
|
if userID != "" {
|
||||||
sql += " user_id = ?"
|
sql += "AND user_id = ?"
|
||||||
sqlParams = append(sqlParams, userID)
|
sqlParams = append(sqlParams, userID)
|
||||||
}
|
}
|
||||||
if localWayBill != "" {
|
if localWayBill != "" {
|
||||||
|
|||||||
@@ -210,9 +210,9 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
|
|||||||
globals.SugarLogger.Debugf("dgergergesgreger== %s ", order.OtherWayBill)
|
globals.SugarLogger.Debugf("dgergergesgreger== %s ", order.OtherWayBill)
|
||||||
globals.SugarLogger.Debugf("hjghauifhwquihfuiojqw== %s ", order.LastOperator)
|
globals.SugarLogger.Debugf("hjghauifhwquihfuiojqw== %s ", order.LastOperator)
|
||||||
|
|
||||||
if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil {
|
//if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil {
|
||||||
return err
|
// return err
|
||||||
}
|
//}
|
||||||
globals.SugarLogger.Debugf("sdhgeagqweg344w33qgweag== %s ", order.OtherWayBill)
|
globals.SugarLogger.Debugf("sdhgeagqweg344w33qgweag== %s ", order.OtherWayBill)
|
||||||
globals.SugarLogger.Debugf("jbhbhjdsgbgjhghiwsg== %s ", order.LastOperator)
|
globals.SugarLogger.Debugf("jbhbhjdsgbgjhghiwsg== %s ", order.LastOperator)
|
||||||
if time.Now().Unix()-order.CreatedAt.Unix() <= 30 {
|
if time.Now().Unix()-order.CreatedAt.Unix() <= 30 {
|
||||||
|
|||||||
Reference in New Issue
Block a user