|
@@ -57,7 +57,7 @@ func StartTask1() {
|
|
|
isExists, err := redis.Exists("qmx_filter", "qmx_auto_return_"+fmt.Sprint(id))
|
|
|
if !isExists || err != nil {
|
|
|
log.Println("自动回款匹配成功", id, orderCode)
|
|
|
- updateData := map[string]interface{}{"return_status": 1}
|
|
|
+ updateData := map[string]interface{}{"return_status": 1, "order_status": 1}
|
|
|
contract := util.JysqlDB.FindOne("contract", map[string]interface{}{"order_code": orderCode}, "", "")
|
|
|
count := util.JysqlDB.Count("return_money_record", map[string]interface{}{"order_code": orderCode})
|
|
|
if count < 1 && contract != nil && qu.IntAll((*contract)["contract_archive_status"]) != 1 {
|