|
@@ -486,17 +486,20 @@ type CheckEnt struct {
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- int64 authStatus ;//企业是否认证 -1 未通过,0 未认证,1 已认证. -2 已到期
|
|
|
- int64 frozenStatus ; //冻结 1正常 0冻结
|
|
|
+ int64 authStatus ;//企业是否认证 -1 未通过,0 未认证,1 已认证. -2 已到期 3待审核
|
|
|
+ int64 frozenStatus ; //冻结 0正常 1冻结
|
|
|
*/
|
|
|
func (this *CheckEnt) Check() (authStatus, frozenStatus int64, msg string) {
|
|
|
if this.EntId == 0 {
|
|
|
msg = "企业id为空"
|
|
|
return
|
|
|
}
|
|
|
- if r := this.Mysql.SelectBySql(`select auth_status,frozen_status from entniche_info where id =?`, this.EntId); r != nil && len(*r) > 0 {
|
|
|
+ if r := this.Mysql.SelectBySql(`select auth_status,frozen_status,audit_status from entniche_info where id =?`, this.EntId); r != nil && len(*r) > 0 {
|
|
|
authStatus = common.Int64All(common.If((*r)[0]["auth_status"] == nil, 0, (*r)[0]["auth_status"]))
|
|
|
- frozenStatus = common.Int64All(common.If((*r)[0]["frozen_status"] == nil, 1, (*r)[0]["frozen_status"]))
|
|
|
+ if (*r)[0]["auth_status"] != nil && common.Int64All((*r)[0]["auth_status"]) == 1 {
|
|
|
+ authStatus = 3
|
|
|
+ }
|
|
|
+ frozenStatus = common.Int64All(common.If((*r)[0]["frozen_status"] == nil, 0, (*r)[0]["frozen_status"]))
|
|
|
} else {
|
|
|
msg = "未查询到企业"
|
|
|
}
|