Commit 88943fa6 by 朱继来

添加操作日志

parent 859d698b
...@@ -82,17 +82,17 @@ func Insert(order_id int, operator_id int, operator_type int, event string) (err ...@@ -82,17 +82,17 @@ func Insert(order_id int, operator_id int, operator_type int, event string) (err
panic(err) panic(err)
} }
// id, err := result.LastInsertId() id, err := result.LastInsertId()
// if err != nil { if err != nil {
// panic(err) panic(err)
// } }
// affected, err := result.RowsAffected() affected, err := result.RowsAffected()
// if err != nil { if err != nil {
// panic(err) panic(err)
// } }
// fmt.Printf("last insert id:%d affect rows:%d\n", id, affected) fmt.Printf("last insert id:%d affect rows:%d\n", id, affected)
return err return err
} }
\ No newline at end of file
...@@ -9,7 +9,6 @@ import ( ...@@ -9,7 +9,6 @@ import (
"github.com/ichunt2019/logger" "github.com/ichunt2019/logger"
"sync" "sync"
"time" "time"
"go-queue-server/dal/order/OrderActionLog"
) )
......
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
"encoding/json" "encoding/json"
"strings" "strings"
"io/ioutil" "io/ioutil"
"go-queue-server/dal/order/OrderActionLog"
) )
type JosnResp struct { type JosnResp struct {
...@@ -46,9 +47,11 @@ func SendPurchaseEmail(data string) (err error) { ...@@ -46,9 +47,11 @@ func SendPurchaseEmail(data string) (err error) {
json.Unmarshal([]byte(data), &data_map) json.Unmarshal([]byte(data), &data_map)
order_id := data_map["order_id"]; order_id := data_map["order_id"];
operator_id := data_map["operator_id"];
operator_event := data_map["operator_event"];
// 添加操作日志 // 添加操作日志
OrderActionLog.Insert(order_id, operator_id, 2, operator_event)
// 推送ERP // 推送ERP
......
package ding
import (
"net/http"
"encoding/json"
)
func send() {
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment