|
@@ -6,6 +6,7 @@ import (
|
|
|
"fmt"
|
|
|
"log"
|
|
|
"strconv"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
@@ -495,6 +496,7 @@ func (this *ExamineList) GetSql() (selectSql, countSql string) {
|
|
|
type CheckEnt struct {
|
|
|
EntId int64
|
|
|
Mysql *mysql.Mysql
|
|
|
+ Url string
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -547,12 +549,16 @@ func (this *CheckEnt) Info() *EntInfoData {
|
|
|
info := EntInfoData{}
|
|
|
if r != nil && len(*r) > 0 {
|
|
|
data := (*r)[0]
|
|
|
+ license := common.ObjToString(data["license"]) //老企业认证只传了后缀,需要拼接
|
|
|
+ if !strings.Contains(license, "http") {
|
|
|
+ license = this.Url + license
|
|
|
+ }
|
|
|
info.OrganizationType = common.ObjToString(data["organization_type"])
|
|
|
info.CreditCode = common.ObjToString(data["code"])
|
|
|
info.Name = common.ObjToString(data["name"])
|
|
|
info.CompanyType = common.Int64All(data["auth_type"])
|
|
|
info.AreaNumber = common.ObjToString(data["area_number"])
|
|
|
- info.Business = common.ObjToString(data["license"])
|
|
|
+ info.Business = license
|
|
|
info.OfficialLetter = common.ObjToString(data["official_letter"])
|
|
|
info.AuthStartTime = common.ObjToString(data["auth_startTime"]) //创建时间 即为认证通过时间
|
|
|
info.AuthEndTime = common.ObjToString(data["auth_endTime"]) //有效截止日期
|