作者 唐旭辉

调试

... ... @@ -2,6 +2,7 @@ package models
import (
"fmt"
"time"
"github.com/astaxie/beego/orm"
)
... ... @@ -22,7 +23,7 @@ type Chance struct {
ReviewStatus int8 `orm:"column(review_status)" description:"审核状态 0:待处理 1:待审核 2:被退回 3:已通过 "`
EnableStatus int8 `orm:"column(enable_status)" description:"有效状态 0:无效 1:有效 "`
UpdateAt string `orm:"column(update_at)" description:"更新时间"`
CreateAt string `orm:"column(create_at)" description:"创建时间"`
CreateAt time.Time `orm:"column(create_at);type(timestamp);" description:"创建时间"`
BasicScore float64 `orm:"column(basic_score);null;digits(4);decimals(1)" description:"基础评分"`
ExtraScore float64 `orm:"column(extra_score);null;digits(4);decimals(1)" description:"附加评分"`
ValueScore float64 `orm:"column(value_score);null;digits(4);decimals(1)" description:"价值评分"`
... ...
... ... @@ -348,7 +348,7 @@ func GetChanceDetail(chanceid int64, companyid int64) (ResponseChanceInfo, error
log.Error("机会的公司不匹配")
return returnData, protocol.NewErrWithMessage("1")
}
returnData.CreateTime = chanceInfo.CreateAt
returnData.CreateTime = chanceInfo.CreateAt.Format("2006-01-02 15:04:05")
var (
chanceContent []protocol.InputElement
)
... ...