|
@@ -161,6 +161,10 @@ WHERE
|
|
|
}
|
|
|
updateData["return_status"] = 2
|
|
|
//isFirstReturn := config.JysqlDB.Count("return_money_record", map[string]interface{}{"state": 1, "order_code": orderCode}) == 0
|
|
|
+ count, _ := g.DB().GetCount(ctx, fmt.Sprintf("SELECT count(*) FROM return_money_record where order_code='%s' and bank_flow='%s'", orderCode, BNKFLW))
|
|
|
+ if count > 0 {
|
|
|
+ continue
|
|
|
+ }
|
|
|
returnReq, _ := g.DB().Insert(ctx, "return_money_record", map[string]interface{}{
|
|
|
"order_code": orderCode,
|
|
|
"return_time": returnTime,
|