|
@@ -14,6 +14,7 @@ import (
|
|
|
resourcepb "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/pb"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/resource"
|
|
|
usercenterclient "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
|
|
|
+ "github.com/zeromicro/go-zero/core/logx"
|
|
|
)
|
|
|
|
|
|
var VarEntInfo = &EntInfo{}
|
|
@@ -157,7 +158,6 @@ func (this *EntInfo) Add() (bool, int64) {
|
|
|
}
|
|
|
return this.Mysql.ExecTx("创建企业", func(tx *sql.Tx) bool {
|
|
|
this.Id = int(this.Mysql.InsertByTx(tx, Entniche_info, m))
|
|
|
- log.Println("---this id:", this.Id, m)
|
|
|
//
|
|
|
var ok_2 int64
|
|
|
if len(this.Competitors) > 0 {
|
|
@@ -315,7 +315,7 @@ func (this *Examine) EntExamine() bool {
|
|
|
resp, err := this.ResourceLib.PowerHandle(context.Background(), req)
|
|
|
//0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
|
|
|
if resp.Status == 0 || err != nil {
|
|
|
- log.Println("信息发布开通失败", this.EntId, resp.Status, "err:", err)
|
|
|
+ logx.Infof("信息发布开通失败", this.EntId, resp.Status, "err:", err)
|
|
|
return false
|
|
|
}
|
|
|
|
|
@@ -429,8 +429,8 @@ func (this *List) GetSql() (selectSql, selectCountSql string) {
|
|
|
pageNum, _ := strconv.Atoi(this.PageNum)
|
|
|
offset := pageNum * limit
|
|
|
selectSql += fmt.Sprintf("order by auth_endTime desc limit %v,%v", offset, limit)
|
|
|
- log.Println("sql:", selectSql)
|
|
|
- log.Println("sqlcout:", selectCountSql)
|
|
|
+ logx.Info("sql:", selectSql)
|
|
|
+ logx.Info("sqlcout:", selectCountSql)
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -490,8 +490,8 @@ func (this *ExamineList) GetSql() (selectSql, countSql string) {
|
|
|
pageNum, _ := strconv.Atoi(this.PageNum)
|
|
|
offset := pageNum * limit
|
|
|
selectSql += fmt.Sprintf(" order by authTime limit %v,%v", offset, limit)
|
|
|
- log.Println("sql:", selectSql)
|
|
|
- log.Println("sqlcout:", countSql)
|
|
|
+ logx.Info("sql:", selectSql)
|
|
|
+ logx.Info("sqlcout:", countSql)
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -620,14 +620,12 @@ func (this *UpdateEnt) UpdateEnt() (int64, string) {
|
|
|
//冻结
|
|
|
req.Type = -1
|
|
|
}
|
|
|
- log.Println("==============>", needUpdate)
|
|
|
if needUpdate {
|
|
|
- log.Println("调用参数:", req)
|
|
|
//调用中台服务 开通权限
|
|
|
resp, err := this.ResourceLib.PowerHandle(context.Background(), req)
|
|
|
//0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
|
|
|
if resp.Status == 0 || err != nil {
|
|
|
- log.Println("信息发布开通", this.EntId, req, "err:", err)
|
|
|
+ logx.Infof("信息发布开通", this.EntId, req, "err:", err)
|
|
|
return -1, "失败"
|
|
|
}
|
|
|
}
|
|
@@ -722,7 +720,6 @@ func (this *GetStatusByCodeStruct) GetStatusByCode() (int, bool, string) {
|
|
|
if entids != "" {
|
|
|
entids = entids[:len(entids)-1]
|
|
|
}
|
|
|
- log.Println(entids, "=========")
|
|
|
isin = this.Mysql.CountBySql(`select count(1) from entniche_user where ent_id in(?) and phone =?`, entids, this.Phone) > 0
|
|
|
}
|
|
|
}
|