|
@@ -270,12 +270,13 @@ func (this *UserInfoReq) EntnicheSub() *map[string]interface{} {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- res, _ = this.Mgo.FindOne("entniche_rule", map[string]interface{}{
|
|
|
+ var ok bool
|
|
|
+ res, ok = this.Mgo.FindOne("entniche_rule", map[string]interface{}{
|
|
|
"i_deptid": deptId,
|
|
|
"i_entid": this.EntId,
|
|
|
})
|
|
|
log.Println(res_, "+++")
|
|
|
- if len(res_) > 0 {
|
|
|
+ if ok && res != nil && len(res_) > 0 {
|
|
|
oenitche, ok := (*res)["o_entniche"].(map[string]interface{})
|
|
|
if ok && oenitche != nil {
|
|
|
oenitche["a_buyerclass"] = res_["a_buyerclass"]
|