|
@@ -553,6 +553,11 @@ func (this *CheckEnt) Info() *EntInfoData {
|
|
|
if !strings.Contains(license, "http") {
|
|
|
license = this.Url + license
|
|
|
}
|
|
|
+ submitTime := common.ObjToString(data["craetetime"])
|
|
|
+ auth_data := this.Mysql.SelectBySql(`select authTime from auth_record where entId = ? and authStatus=1 order by id desc limit 1`, this.EntId)
|
|
|
+ if auth_data != nil && len(*auth_data) > 0 {
|
|
|
+ submitTime = common.ObjToString((*auth_data)[0]["authTime"])
|
|
|
+ }
|
|
|
info.OrganizationType = common.ObjToString(data["organization_type"])
|
|
|
info.CreditCode = common.ObjToString(data["code"])
|
|
|
info.Name = common.ObjToString(data["name"])
|
|
@@ -568,7 +573,7 @@ func (this *CheckEnt) Info() *EntInfoData {
|
|
|
info.ContactPhone = common.ObjToString(data["linkman_phone"])
|
|
|
info.AuthType = common.Int64All(data["audit_status"])
|
|
|
info.AreaNumber = GetArea(info.AreaNumber, this.Mysql)
|
|
|
- info.CreateTime = common.ObjToString(data["createtime"])
|
|
|
+ info.CreateTime = submitTime
|
|
|
info.AuthReason = common.ObjToString(data["auth_reason"])
|
|
|
}
|
|
|
return &info
|