wkyuer hai 1 mes
pai
achega
bbe49dbff9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      service/service.go

+ 1 - 1
service/service.go

@@ -221,7 +221,7 @@ func BuyProductList(this *entmanageapplication.BuyProductListReq) *entmanageappl
 }
 
 func addPower(waitEmpowerId int64, identity *usercenter.Identity) {
-	data := JyMysql.FindOne(EntnicheOrder, map[string]interface{}{"wait_empower_id": waitEmpowerId}, "", "")
+	data := JyMysql.FindOne(EntnicheOrder, map[string]interface{}{"wait_empower_id": waitEmpowerId}, "", "create_time desc")
 	if data != nil && len(*data) > 0 {
 		orderId := common.Int64All((*data)["order_detail_id"])
 		orderData := JyMysql.FindOne(JyOrderDetail, map[string]interface{}{"id": orderId}, "", "")