|
@@ -1,12 +1,13 @@
|
|
|
package service
|
|
|
|
|
|
import (
|
|
|
- . "bp.jydev.jianyu360.cn/BaseService/biService/entity"
|
|
|
"bytes"
|
|
|
"encoding/json"
|
|
|
"io/ioutil"
|
|
|
"log"
|
|
|
"net/http"
|
|
|
+
|
|
|
+ . "bp.jydev.jianyu360.cn/BaseService/biService/entity"
|
|
|
)
|
|
|
|
|
|
type Operate struct {
|
|
@@ -32,12 +33,8 @@ func (a *Operate) InfoOperate() bool {
|
|
|
}
|
|
|
sendParam["nid"] = a.NewId
|
|
|
} else {
|
|
|
- //删除
|
|
|
- //清除mysql数据
|
|
|
- if BiService.Delete("customer_data_ttzl", map[string]interface{}{"id_new": a.NewId}) {
|
|
|
- //清除es数据
|
|
|
- Es.DelById("ttbid", "ttbid", a.NewId)
|
|
|
- } else {
|
|
|
+ //清除es数据 清除mysql数据
|
|
|
+ if !DelById("ttbid", a.NewId) || !BiService.Delete("customer_data_ttzl", map[string]interface{}{"id_new": a.NewId}) {
|
|
|
return false
|
|
|
}
|
|
|
projectId := (*data)["projectId"]
|