xuzhiheng пре 2 година
родитељ
комит
c43a051ca7
2 измењених фајлова са 27 додато и 26 уклоњено
  1. 1 1
      rpc/etc/biservice.yaml
  2. 26 25
      service/yearEndReport.go

+ 1 - 1
rpc/etc/biservice.yaml

@@ -1,4 +1,4 @@
-Name: entmanageapplication.rpc
+Name: biservice.rpc
 ListenOn: 0.0.0.0:9998
 Etcd:
   Hosts:

+ 26 - 25
service/yearEndReport.go

@@ -61,31 +61,32 @@ func AddProject(this *biservice.AddProjectReq, addCountLimit int) *biservice.Add
 				bidstatus = 0
 			}
 			JyBiMysql.Insert("dwd_f_report_data_baseinfo", map[string]interface{}{
-				"infoid":        infoid,
-				"position_id":   this.PositionId,
-				"position_type": 0,
-				"account_id":    this.AccountId,
-				"company_name":  this.CompanyName,
-				"user_id":       this.UserId,
-				"user_name":     this.UserName,
-				"status":        0,
-				"projectname":   common.ObjToString(project["projectname"]),
-				"bidamount":     common.Float64All(project["bidamount"]),
-				"bidstatus":     bidstatus,
-				"updatetime":    nowTime,
-				"createtime":    nowTime,
-				"publishtime":   time.Unix(publishtime, 0).Format("2006-01-02 15:04:05"),
-				"jg_year":       time.Unix(publishtime, 0).Format("2006"),
-				"jg_y_month":    time.Unix(publishtime, 0).Format("200601"),
-				"jg_y_m_day":    time.Unix(publishtime, 0).Format("20060102"),
-				"source":        this.Source,
-				"buyer":         common.ObjToString(project["buyer"]),
-				"s_winner":      common.ObjToString(project["s_winner"]),
-				"area_code":     area_code,
-				"province_code": province_code,
-				"city_code":     city_code,
-				"district_code": district_code,
-				"jybxhref":      `https://www.jianyu360.cn/article/content/` + util.CommonEncodeArticle("content", infoid) + `.html`,
+				"infoid":            infoid,
+				"position_id":       this.PositionId,
+				"position_type":     0,
+				"account_id":        this.AccountId,
+				"company_name":      this.CompanyName,
+				"user_id":           this.UserId,
+				"user_name":         this.UserName,
+				"status":            0,
+				"projectname":       common.ObjToString(project["projectname"]),
+				"bidamount":         common.Float64All(project["bidamount"]),
+				"bidamount_private": common.Float64All(project["bidamount"]),
+				"bidstatus":         bidstatus,
+				"updatetime":        nowTime,
+				"createtime":        nowTime,
+				"publishtime":       time.Unix(publishtime, 0).Format("2006-01-02 15:04:05"),
+				"jg_year":           time.Unix(publishtime, 0).Format("2006"),
+				"jg_y_month":        time.Unix(publishtime, 0).Format("200601"),
+				"jg_y_m_day":        time.Unix(publishtime, 0).Format("20060102"),
+				"source":            this.Source,
+				"buyer":             common.ObjToString(project["buyer"]),
+				"s_winner":          common.ObjToString(project["s_winner"]),
+				"area_code":         area_code,
+				"province_code":     province_code,
+				"city_code":         city_code,
+				"district_code":     district_code,
+				"jybxhref":          `https://www.jianyu360.cn/article/content/` + util.CommonEncodeArticle("content", infoid) + `.html`,
 			})
 		}
 	}