فهرست منبع

fix:字段类型调整、新增提交时间

zhangxinlei1996 3 سال پیش
والد
کامیت
d093590343
7فایلهای تغییر یافته به همراه75 افزوده شده و 76 حذف شده
  1. 1 2
      api/internal/logic/entinfologic.go
  2. 5 4
      api/internal/types/types.go
  3. 5 4
      api/userCenter.api
  4. 7 9
      entity/ent.go
  5. 36 36
      rpc/pb/userCenter.pb.go
  6. 2 2
      rpc/userCenter.proto
  7. 19 19
      service/entService.go

+ 1 - 2
api/internal/logic/entinfologic.go

@@ -2,7 +2,6 @@ package logic
 
 import (
 	"context"
-	"log"
 
 	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
 	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
@@ -28,7 +27,6 @@ func NewEntInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EntInfoLo
 
 func (l *EntInfoLogic) EntInfo(req *types.CheckEntReq) (resp *types.EntInfoResp, err error) {
 	// todo: add your logic here and delete this line
-	log.Println("----------<", req)
 	res, err := entity.UserCenterRpc.EntInfo(l.ctx, &pb.CheckEntReq{
 		EntId: req.EntId,
 	})
@@ -47,6 +45,7 @@ func (l *EntInfoLogic) EntInfo(req *types.CheckEntReq) (resp *types.EntInfoResp,
 		ContactPerson:    res.Data.ContactPerson,
 		ContactPhone:     res.Data.ContactPhone,
 		AuthType:         res.Data.AuthType,
+		SubmitTime:       res.Data.CreateTime,
 	}
 	return &types.EntInfoResp{
 		Error_code: res.ErrorCode,

+ 5 - 4
api/internal/types/types.go

@@ -70,7 +70,7 @@ type EntList struct {
 	Id               int64  `json:"id"`
 	ComPanyType      int64  `json:"comPanyType"`      // 机构性质    1企业   2党政机关事业单位及其他
 	Name             string `json:"name"`             //机构名称
-	OrganizationType int64  `json:"organizationType"` //机构类型  1企业   2党政机关事业单位及其他
+	OrganizationType string `json:"organizationType"` //机构类型  1企业   2党政机关事业单位及其他
 	Createtime       string `json:"createTime"`       //创建时间
 	ValidTime        string `json:"validTime"`        //有效截至日期
 	AuthStatus       int64  `json:"authStatus"`       //认证状态
@@ -120,7 +120,7 @@ type EntInfoResp struct {
 
 type EntInfo struct {
 	Name             string `json:"name"`
-	OrganizationType int64  `json:"organizationType"`
+	OrganizationType string `json:"organizationType"`
 	CreditCode       string `json:"creditCode"`
 	CompanyType      int64  `json:"companyType"`
 	AreaNumber       string `json:"areaNumber"`
@@ -132,7 +132,8 @@ type EntInfo struct {
 	AuthState        int64  `json:"authStatus"`
 	ContactPerson    string `json:"contactPerson"`
 	ContactPhone     string `json:"contactPhone"`
-	AuthType         int64  `json:"authType"` //审核状态 1:待审核  2:审核通过 3:审核不通过
+	AuthType         int64  `json:"authType"`   //审核状态 1:待审核  2:审核通过 3:审核不通过
+	SubmitTime       string `json:"submitTime"` //提交时间 即库中的createtime
 }
 
 type ExamineInfoReq struct {
@@ -147,7 +148,7 @@ type ExamineInfoResp struct {
 
 type ExamineInfo struct {
 	Name             string `json:"name"`
-	OrganizationType int64  `json:"organizationType"`
+	OrganizationType string `json:"organizationType"`
 	CreditCode       string `json:"creditCode"`
 	CompanyType      int64  `json:"companyType"`
 	AreaNumber       string `json:"areaNumber"`

+ 5 - 4
api/userCenter.api

@@ -75,7 +75,7 @@ type (
 		Id               int64  `json:"id"`
 		ComPanyType      int64  `json:"comPanyType"`      // 机构性质    1企业   2党政机关事业单位及其他
 		Name             string `json:"name"`             //机构名称
-		OrganizationType int64  `json:"organizationType"` //机构类型  1企业   2党政机关事业单位及其他
+		OrganizationType string `json:"organizationType"` //机构类型  1企业   2党政机关事业单位及其他
 		Createtime       string `json:"createTime"`       //创建时间
 		ValidTime        string `json:"validTime"`        //有效截至日期
 		AuthStatus       int64  `json:"authStatus"`       //认证状态
@@ -128,7 +128,7 @@ type (
 
 	EntInfo {
 		Name             string `json:"name"`
-		OrganizationType int64  `json:"organizationType"`
+		OrganizationType string `json:"organizationType"`
 		CreditCode       string `json:"creditCode"`
 		CompanyType      int64  `json:"companyType"`
 		AreaNumber       string `json:"areaNumber"`
@@ -140,7 +140,8 @@ type (
 		AuthState        int64  `json:"authStatus"`
 		ContactPerson    string `json:"contactPerson"`
 		ContactPhone     string `json:"contactPhone"`
-		AuthType         int64  `json:"authType"` //审核状态 1:待审核  2:审核通过 3:审核不通过
+		AuthType         int64  `json:"authType"`   //审核状态 1:待审核  2:审核通过 3:审核不通过
+		SubmitTime       string `json:"submitTime"` //提交时间 即库中的createtime
 
 	}
 
@@ -158,7 +159,7 @@ type (
 
 	ExamineInfo {
 		Name             string `json:"name"`
-		OrganizationType int64  `json:"organizationType"`
+		OrganizationType string `json:"organizationType"`
 		CreditCode       string `json:"creditCode"`
 		CompanyType      int64  `json:"companyType"`
 		AreaNumber       string `json:"areaNumber"`

+ 7 - 9
entity/ent.go

@@ -61,7 +61,7 @@ type EntInfo struct {
 	Audit_status       int           //审核状态 1:待审核  2:审核通过 3:审核不通过
 	Linkman_phone      string        //联系人手机号
 	Linkman_name       string        //联系人姓名
-	Organization_type  int           //机构类型  1投标企业  2招标采购单位 3厂商 4招标代理机构 5经销商  6服务提供商  7其他
+	Organization_type  string        //机构类型  1投标企业  2招标采购单位 3厂商 4招标代理机构 5经销商  6服务提供商  7其他
 	Official_letter    string        //认证公函
 	AreaNumber         string        //行政区号
 	Mysql              *mysql.Mysql
@@ -142,7 +142,7 @@ func (this *EntInfo) Add() (bool, int64) {
 	if this.Linkman_phone != "" {
 		m["linkman_phone"] = this.Linkman_phone
 	}
-	if this.Organization_type >= 0 {
+	if this.Organization_type != "" {
 		m["organization_type"] = this.Organization_type
 	}
 	if this.Official_letter != "" {
@@ -234,7 +234,7 @@ func (this *EntInfo) Update() bool {
 	if this.License != "" {
 		m["license"] = this.License
 	}
-	if this.Organization_type >= 0 {
+	if this.Organization_type != "" {
 		m["organization_type"] = this.Organization_type
 	}
 	if this.Official_letter != "" {
@@ -246,9 +246,6 @@ func (this *EntInfo) Update() bool {
 	if this.Auth_type >= 0 {
 		m["auth_type"] = this.Auth_type
 	}
-	if this.Organization_type >= 0 {
-		m["organization_type"] = this.Organization_type
-	}
 	if this.Code != "" {
 		m["code"] = this.Code
 	}
@@ -532,7 +529,7 @@ type EntInfoData struct {
 	CreditCode       string //统一社会信用代码
 	Business         string //营业执照
 	OfficialLetter   string //认证公函
-	OrganizationType int64  //机构类型 1投标企业 2招标采购单位 3厂商 4招标代理机构 5经销商 6服务提供商 7其他
+	OrganizationType string //机构类型 1投标企业 2招标采购单位 3厂商 4招标代理机构 5经销商 6服务提供商 7其他
 	AuthType         int64  //1待审核 2审核通过 3审核不通过
 	ForzenStatus     int64  //1冻结 0未冻结
 	AuditUser        string //审核人
@@ -550,7 +547,7 @@ func (this *CheckEnt) Info() *EntInfoData {
 	info := EntInfoData{}
 	if r != nil && len(*r) > 0 {
 		data := (*r)[0]
-		info.OrganizationType = common.Int64All(data["organization_type"])
+		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"])
@@ -565,6 +562,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"])
 	}
 	return &info
 }
@@ -638,7 +636,7 @@ func (this *ExamineInfo) Info() *EntInfoData {
 	if r != nil && len(*r) > 0 {
 		data := (*r)[0]
 		log.Println(data)
-		info.OrganizationType = common.Int64All(data["organizationType"])
+		info.OrganizationType = common.ObjToString(data["organizationType"])
 		info.CreditCode = common.ObjToString(data["creditCode"])
 		info.Name = common.ObjToString(data["name"])
 		info.CompanyType = common.Int64All(data["comPanyType"])

+ 36 - 36
rpc/pb/userCenter.pb.go

@@ -680,14 +680,14 @@ type EntList struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Id               int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                             //机构id
-	ComPanyType      int64  `protobuf:"varint,2,opt,name=comPanyType,proto3" json:"comPanyType,omitempty"`           // 机构性质    1企业   2党政机关事业单位及其他
-	Name             string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`                          //机构名称
-	OrganizationType int64  `protobuf:"varint,4,opt,name=organizationType,proto3" json:"organizationType,omitempty"` //机构类型  1企业   2党政机关事业单位及其他
-	Createtime       string `protobuf:"bytes,5,opt,name=createtime,proto3" json:"createtime,omitempty"`              //创建时间
-	ValidTime        string `protobuf:"bytes,6,opt,name=validTime,proto3" json:"validTime,omitempty"`                //有效截至日期
-	AuthStatus       int64  `protobuf:"varint,7,opt,name=authStatus,proto3" json:"authStatus,omitempty"`             //认证状态
-	FrozenStatus     int64  `protobuf:"varint,8,opt,name=frozenStatus,proto3" json:"frozenStatus,omitempty"`         //冻结状态 1冻结 0未冻结
+	Id               int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                            //机构id
+	ComPanyType      int64  `protobuf:"varint,2,opt,name=comPanyType,proto3" json:"comPanyType,omitempty"`          // 机构性质    1企业   2党政机关事业单位及其他
+	Name             string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`                         //机构名称
+	OrganizationType string `protobuf:"bytes,4,opt,name=organizationType,proto3" json:"organizationType,omitempty"` //机构类型  1企业   2党政机关事业单位及其他
+	Createtime       string `protobuf:"bytes,5,opt,name=createtime,proto3" json:"createtime,omitempty"`             //创建时间
+	ValidTime        string `protobuf:"bytes,6,opt,name=validTime,proto3" json:"validTime,omitempty"`               //有效截至日期
+	AuthStatus       int64  `protobuf:"varint,7,opt,name=authStatus,proto3" json:"authStatus,omitempty"`            //认证状态
+	FrozenStatus     int64  `protobuf:"varint,8,opt,name=frozenStatus,proto3" json:"frozenStatus,omitempty"`        //冻结状态 1冻结 0未冻结
 }
 
 func (x *EntList) Reset() {
@@ -743,11 +743,11 @@ func (x *EntList) GetName() string {
 	return ""
 }
 
-func (x *EntList) GetOrganizationType() int64 {
+func (x *EntList) GetOrganizationType() string {
 	if x != nil {
 		return x.OrganizationType
 	}
-	return 0
+	return ""
 }
 
 func (x *EntList) GetCreatetime() string {
@@ -1300,28 +1300,28 @@ type EntInfoData struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Name             string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                           //名称
-	AreaNumber       string `protobuf:"bytes,2,opt,name=areaNumber,proto3" json:"areaNumber,omitempty"`               //区域代码
-	ContactPerson    string `protobuf:"bytes,3,opt,name=contactPerson,proto3" json:"contactPerson,omitempty"`         //联系人
-	ContactPhone     string `protobuf:"bytes,4,opt,name=contactPhone,proto3" json:"contactPhone,omitempty"`           //联系电话
-	AuthState        int64  `protobuf:"varint,5,opt,name=authState,proto3" json:"authState,omitempty"`                //0未认证 1已认证
-	Industry         string `protobuf:"bytes,6,opt,name=industry,proto3" json:"industry,omitempty"`                   //行业
-	CompanyType      int64  `protobuf:"varint,7,opt,name=companyType,proto3" json:"companyType,omitempty"`            //1-事业单位 0-企业
-	CreditCode       string `protobuf:"bytes,8,opt,name=creditCode,proto3" json:"creditCode,omitempty"`               //统一社会信用代码
-	LegalPerson      string `protobuf:"bytes,9,opt,name=legalPerson,proto3" json:"legalPerson,omitempty"`             //法人姓名
-	Business         string `protobuf:"bytes,10,opt,name=business,proto3" json:"business,omitempty"`                  //营业执照
-	OfficialLetter   string `protobuf:"bytes,11,opt,name=officialLetter,proto3" json:"officialLetter,omitempty"`      //认证公函
-	OrganizationType int64  `protobuf:"varint,12,opt,name=organizationType,proto3" json:"organizationType,omitempty"` //1企业 2党政机关事业单位及其他
-	AuthType         int64  `protobuf:"varint,13,opt,name=authType,proto3" json:"authType,omitempty"`                 //1待审核 2审核通过 3审核不通过
-	ForzenStatus     int64  `protobuf:"varint,14,opt,name=forzenStatus,proto3" json:"forzenStatus,omitempty"`         //1冻结 0未冻结
-	AuditUser        string `protobuf:"bytes,15,opt,name=auditUser,proto3" json:"auditUser,omitempty"`                //审核人
-	AuditTime        string `protobuf:"bytes,16,opt,name=auditTime,proto3" json:"auditTime,omitempty"`                //审核时间
-	CreateTime       string `protobuf:"bytes,17,opt,name=createTime,proto3" json:"createTime,omitempty"`              //创建时间
-	AuthStartTime    string `protobuf:"bytes,18,opt,name=authStartTime,proto3" json:"authStartTime,omitempty"`        //认证开始时间
-	AuthEndTime      string `protobuf:"bytes,19,opt,name=authEndTime,proto3" json:"authEndTime,omitempty"`            //认证截止时间
-	AuthReason       string `protobuf:"bytes,20,opt,name=authReason,proto3" json:"authReason,omitempty"`              //审核原因
-	AuthTime         string `protobuf:"bytes,21,opt,name=authTime,proto3" json:"authTime,omitempty"`                  //申请时间
-	RegPhone         string `protobuf:"bytes,22,opt,name=regPhone,proto3" json:"regPhone,omitempty"`                  //注册人手机号
+	Name             string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                          //名称
+	AreaNumber       string `protobuf:"bytes,2,opt,name=areaNumber,proto3" json:"areaNumber,omitempty"`              //区域代码
+	ContactPerson    string `protobuf:"bytes,3,opt,name=contactPerson,proto3" json:"contactPerson,omitempty"`        //联系人
+	ContactPhone     string `protobuf:"bytes,4,opt,name=contactPhone,proto3" json:"contactPhone,omitempty"`          //联系电话
+	AuthState        int64  `protobuf:"varint,5,opt,name=authState,proto3" json:"authState,omitempty"`               //0未认证 1已认证
+	Industry         string `protobuf:"bytes,6,opt,name=industry,proto3" json:"industry,omitempty"`                  //行业
+	CompanyType      int64  `protobuf:"varint,7,opt,name=companyType,proto3" json:"companyType,omitempty"`           //1-事业单位 0-企业
+	CreditCode       string `protobuf:"bytes,8,opt,name=creditCode,proto3" json:"creditCode,omitempty"`              //统一社会信用代码
+	LegalPerson      string `protobuf:"bytes,9,opt,name=legalPerson,proto3" json:"legalPerson,omitempty"`            //法人姓名
+	Business         string `protobuf:"bytes,10,opt,name=business,proto3" json:"business,omitempty"`                 //营业执照
+	OfficialLetter   string `protobuf:"bytes,11,opt,name=officialLetter,proto3" json:"officialLetter,omitempty"`     //认证公函
+	OrganizationType string `protobuf:"bytes,12,opt,name=organizationType,proto3" json:"organizationType,omitempty"` //机构类型  1投标企业  2招标采购单位 3厂商 4招标代理机构 5经销商  6服务提供商  7其他,  多个,隔开
+	AuthType         int64  `protobuf:"varint,13,opt,name=authType,proto3" json:"authType,omitempty"`                //1待审核 2审核通过 3审核不通过
+	ForzenStatus     int64  `protobuf:"varint,14,opt,name=forzenStatus,proto3" json:"forzenStatus,omitempty"`        //1冻结 0未冻结
+	AuditUser        string `protobuf:"bytes,15,opt,name=auditUser,proto3" json:"auditUser,omitempty"`               //审核人
+	AuditTime        string `protobuf:"bytes,16,opt,name=auditTime,proto3" json:"auditTime,omitempty"`               //审核时间
+	CreateTime       string `protobuf:"bytes,17,opt,name=createTime,proto3" json:"createTime,omitempty"`             //创建时间
+	AuthStartTime    string `protobuf:"bytes,18,opt,name=authStartTime,proto3" json:"authStartTime,omitempty"`       //认证开始时间
+	AuthEndTime      string `protobuf:"bytes,19,opt,name=authEndTime,proto3" json:"authEndTime,omitempty"`           //认证截止时间
+	AuthReason       string `protobuf:"bytes,20,opt,name=authReason,proto3" json:"authReason,omitempty"`             //审核原因
+	AuthTime         string `protobuf:"bytes,21,opt,name=authTime,proto3" json:"authTime,omitempty"`                 //申请时间
+	RegPhone         string `protobuf:"bytes,22,opt,name=regPhone,proto3" json:"regPhone,omitempty"`                 //注册人手机号
 }
 
 func (x *EntInfoData) Reset() {
@@ -1433,11 +1433,11 @@ func (x *EntInfoData) GetOfficialLetter() string {
 	return ""
 }
 
-func (x *EntInfoData) GetOrganizationType() int64 {
+func (x *EntInfoData) GetOrganizationType() string {
 	if x != nil {
 		return x.OrganizationType
 	}
-	return 0
+	return ""
 }
 
 func (x *EntInfoData) GetAuthType() int64 {
@@ -1814,7 +1814,7 @@ var file_userCenter_proto_rawDesc = []byte{
 	0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x50, 0x61, 0x6e, 0x79, 0x54, 0x79,
 	0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
 	0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69,
-	0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
+	0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
 	0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
 	0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65,
 	0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69,
@@ -1916,7 +1916,7 @@ var file_userCenter_proto_rawDesc = []byte{
 	0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x69,
 	0x61, 0x6c, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x6f, 0x72, 0x67, 0x61,
 	0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01,
-	0x28, 0x03, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+	0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
 	0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65,
 	0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65,
 	0x12, 0x22, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x7a, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,

+ 2 - 2
rpc/userCenter.proto

@@ -83,7 +83,7 @@ message EntList {
 	int64 id =1; //机构id
 	int64 comPanyType =2;// 机构性质    1企业   2党政机关事业单位及其他
 	string name =3;//机构名称
-	int64 organizationType=4;//机构类型  1企业   2党政机关事业单位及其他	
+	string organizationType=4;//机构类型  1企业   2党政机关事业单位及其他	
 	string createtime =5;//创建时间
 	string validTime=6; //有效截至日期
 	int64 authStatus=7;//认证状态
@@ -160,7 +160,7 @@ message EntInfoData{
 	string legalPerson =9;     //法人姓名
 	string business =10;       //营业执照	
 	string officialLetter =11; //认证公函	
-	int64 organizationType =12;//1企业 2党政机关事业单位及其他
+	string organizationType =12;//机构类型  1投标企业  2招标采购单位 3厂商 4招标代理机构 5经销商  6服务提供商  7其他,  多个,隔开
 	int64 authType =13;        //1待审核 2审核通过 3审核不通过
 	int64 forzenStatus =14;    //1冻结 0未冻结
 	string auditUser =15;      //审核人

+ 19 - 19
service/entService.go

@@ -34,20 +34,19 @@ func (this *EntService) CreateEnt(data *userCenter.EntAuthReq) (int64, string, i
 	if data.Name == "" || data.Phone == "" || data.CreditCode == "" {
 		return entity.ErrorCode, "参数异常", entity.ErrorCode, 0
 	}
-	organType, _ := strconv.Atoi(data.OrganizationType)
 	authType, _ := strconv.Atoi(data.ComPanyType)
 	entinfo := &entity.EntInfo{
 		Name:              data.Name,       //企业名称
 		Phone:             data.Phone,      //注册人手机号
 		Code:              data.CreditCode, //统一社会信用代码
 		Createtime:        time.Now().Format("2006-01-02 15:04:05"),
-		Organization_type: organType,           //机构类型  1投标企业  2招标采购单位 3厂商 4招标代理机构 5经销商  6服务提供商  7其他
-		Auth_type:         authType,            // 认证类型 1-事业单位 0-企业
-		License:           data.Business,       //营业执照
-		Official_letter:   data.OfficialLetter, //认证公函
-		Linkman_phone:     data.AuthPhone,      //联系人手机号
-		Linkman_name:      data.AuthName,       //联系人姓名
-		AreaNumber:        data.AreaNumber,     //
+		Organization_type: data.OrganizationType, //机构类型  1投标企业  2招标采购单位 3厂商 4招标代理机构 5经销商  6服务提供商  7其他
+		Auth_type:         authType,              // 认证类型 1-事业单位 0-企业
+		License:           data.Business,         //营业执照
+		Official_letter:   data.OfficialLetter,   //认证公函
+		Linkman_phone:     data.AuthPhone,        //联系人手机号
+		Linkman_name:      data.AuthName,         //联系人姓名
+		AreaNumber:        data.AreaNumber,       //
 		Frozen_status:     1,
 		Auth_status:       0,
 		Audit_status:      1,
@@ -62,7 +61,7 @@ func (this *EntService) CreateEnt(data *userCenter.EntAuthReq) (int64, string, i
 			audit_status, _ := v["audit_status"].(int64)
 			auth_status, _ := v["auth_status"].(int64)
 			ent_name, _ := v["name"].(string)
-			phone, _ := v["phone"].(string)
+			// phone, _ := v["phone"].(string)
 			if audit_status == 1 {
 				return entity.ErrorCode, EXAMINEINGMSG, entity.ErrorCode, 0
 			}
@@ -77,7 +76,7 @@ func (this *EntService) CreateEnt(data *userCenter.EntAuthReq) (int64, string, i
 				}
 			}
 			entinfo.Id = int(id)
-			entinfo.Phone = phone //更换注册人手机号为管理员手机号
+			// entinfo.Phone = phone //更换注册人手机号为管理员手机号
 			if entinfo.Update() {
 				return entity.SuccessCode, OKMSG, 1, int64(entinfo.Id)
 			}
@@ -91,7 +90,7 @@ func (this *EntService) CreateEnt(data *userCenter.EntAuthReq) (int64, string, i
 			audit_status, _ := v["audit_status"].(int64)
 			auth_status, _ := v["auth_status"].(int64)
 			ent_name, _ := v["name"].(string)
-			phone, _ := v["phone"].(string)
+			// phone, _ := v["phone"].(string)
 			//该企业下员工 可以重新认证
 			if ent_name != entinfo.Name { //企业名称不同 创建全新企业
 				if ok, entid := entinfo.Add(); ok {
@@ -109,7 +108,7 @@ func (this *EntService) CreateEnt(data *userCenter.EntAuthReq) (int64, string, i
 
 			}
 			entinfo.Id = int(id)
-			entinfo.Phone = phone //更换注册人手机号为管理员手机号
+			// entinfo.Phone = phone //更换注册人手机号为管理员手机号
 			if entinfo.Update() {
 				return entity.SuccessCode, OKMSG, 1, int64(entinfo.Id)
 			}
@@ -166,13 +165,13 @@ func (this *EntService) EntList(data *userCenter.EntListReq) (int64, string, *us
 	for _, v := range *r {
 		log.Println(v)
 		list = append(list, &userCenter.EntList{
-			Id:               common.Int64All(v["id"]),               //机构id
-			ComPanyType:      common.Int64All(v["comPanyType"]),      // 机构性质    1企业   2党政机关事业单位及其他
-			Name:             common.ObjToString(v["name"]),          //机构名称
-			OrganizationType: common.Int64All(v["organizationType"]), //机构类型  1企业   2党政机关事业单位及其他
-			Createtime:       common.ObjToString(v["createTime"]),    //创建时间
-			ValidTime:        common.ObjToString(v["validTime"]),     //有效截至日期
-			AuthStatus:       common.Int64All(v["authStatus"]),       //认证状态
+			Id:               common.Int64All(v["id"]),                  //机构id
+			ComPanyType:      common.Int64All(v["comPanyType"]),         // 机构性质    1企业   2党政机关事业单位及其他
+			Name:             common.ObjToString(v["name"]),             //机构名称
+			OrganizationType: common.ObjToString(v["organizationType"]), //机构类型  1企业   2党政机关事业单位及其他
+			Createtime:       common.ObjToString(v["createTime"]),       //创建时间
+			ValidTime:        common.ObjToString(v["validTime"]),        //有效截至日期
+			AuthStatus:       common.Int64All(v["authStatus"]),          //认证状态
 			FrozenStatus:     common.Int64All(v["frozenStatus"]),
 		})
 	}
@@ -251,6 +250,7 @@ func (this *EntService) Info(data *userCenter.CheckEntReq) (int64, string, *user
 		ContactPerson:    rdata.ContactPerson,
 		ContactPhone:     rdata.ContactPhone,
 		AuthType:         rdata.AuthType,
+		CreateTime:       rdata.CreateTime,
 	}
 	return 0, "", entInfoData
 }