|
@@ -514,12 +514,11 @@ func (t *BidCreditReport) ZmComboConsumption() error {
|
|
rid int64
|
|
rid int64
|
|
mail string
|
|
mail string
|
|
)
|
|
)
|
|
- order := util.Mysql.FindOne("dataexport_order", map[string]interface{}{"user_id": userId, "product_type": consts.ZmAnalysisReportProductName}, "user_mail", " order by create_time desc")
|
|
|
|
|
|
+ order := util.Mysql.FindOne("dataexport_order", map[string]interface{}{"user_id": userId, "product_type": consts.ZmAnalysisReportProductName}, "user_mail", " create_time desc")
|
|
if order != nil && len(*order) > 0 {
|
|
if order != nil && len(*order) > 0 {
|
|
mail = gconv.String((*order)["user_mail"])
|
|
mail = gconv.String((*order)["user_mail"])
|
|
}
|
|
}
|
|
if !util.Mysql.ExecTx("扣除芝麻服务", func(tx *sql.Tx) bool {
|
|
if !util.Mysql.ExecTx("扣除芝麻服务", func(tx *sql.Tx) bool {
|
|
-
|
|
|
|
rid = util.Mysql.InsertByTx(tx, "bid_credit_report", map[string]interface{}{
|
|
rid = util.Mysql.InsertByTx(tx, "bid_credit_report", map[string]interface{}{
|
|
"user_id": userId,
|
|
"user_id": userId,
|
|
"ent_name": entName,
|
|
"ent_name": entName,
|