Commit a9ba5692 by 朱继来

调整快速找料任务

parent d53280a0
......@@ -105,8 +105,8 @@ func setFindGoods(status, task_id, task_type, task_display_degree int) {
current_time := time.Now().Unix() // 当前时间
// 查看用户是否分配
var salesman model.Salesman
db.Get(&salesman, "select * from lie_salesman where user_id = ?", feedback.Outter_Uid)
var salesman model.InvoiceComUser
db.Get(&salesman, "select * from lie_invoice_com_user where user_id = ?", feedback.User_Id)
if salesman.Sale_Id == 0 { // 若未分配,则从客服池获取
var kefu model.Kefu
......
package model
type InvoiceComUser struct {
Id int `json:"id" db:"id"`
Com_Id int `json:"com_id" db:"com_id"`
User_Id int `json:"user_id" db:"user_id"`
Sale_Id int `json:"sale_id" db:"sale_id"`
Status int `json:"status" db:"status"`
Sale_Type int `json:"sale_type" db:"sale_type"`
Create_Time int `json:"create_time" db:"create_time"`
Update_Time int `json:"update_time" db:"update_time"`
}
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