瀏覽代碼

fix:拟在建概况统计修改

duxin 1 年之前
父節點
當前提交
5540e09f55
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/jfw/front/nzjProject.go

+ 3 - 3
src/jfw/front/nzjProject.go

@@ -266,8 +266,8 @@ WHERE
 		//拼接项目概况
 		if equity < 3 { //非会员打码
 			projectname := common.InterfaceToStr(detail["projectname"])
-			detail["generalSituation"] = fmt.Sprintf("项目概况:%s项目是剑鱼标讯网站%s发布的%s行业项目信息,该项目投资总额%s万元,建设周期为%s至%s,且目前处于%s阶段。我们将持续跟踪并发布%s进展信息,感兴趣的用户开通大会员查看项目详情。",
-				projectname, timeFmt(common.InterfaceToStr(detail["createtime"])), common.InterfaceToStr(detail["industry"]), common.If(common.Float64All(detail["total_investment"]) > 0, common.InterfaceToStr(detail["total_investment"]), "-"),
+			detail["generalSituation"] = fmt.Sprintf("%s项目是剑鱼标讯网站%s发布的%s行业项目信息,该项目投资总额%s万元,建设周期为%s至%s,且目前处于%s阶段。我们将持续跟踪并发布%s进展信息,感兴趣的用户开通大会员查看项目详情。",
+				projectname, timeFmt(common.InterfaceToStr(detail["firsttime"])), common.InterfaceToStr(detail["industry"]), common.If(common.Float64All(detail["total_investment"]) > 0, common.InterfaceToStr(detail["total_investment"]), "-"),
 				timeFmt(common.InterfaceToStr(detail["project_startdate"])), timeFmt(common.InterfaceToStr(detail["project_completedate"])), common.InterfaceToStr(detail["project_stage"]), projectname)
 			if detail["owner"] != nil && detail["owner"] != "" {
 				detail["owner"] = codeContent
@@ -371,7 +371,7 @@ func timeFmt(tm string) string {
 	if len(tms) == 2 {
 		return tms[0]
 	}
-	return "-"
+	return ""
 }
 
 func getNzjList(infoMap map[string]interface{}) (count int64, list *[]map[string]interface{}) {