|
|
@@ -25,34 +25,31 @@ func EnterpriseManageInfo(c *gin.Context) { |
|
|
|
e.OutErr(c, e.ERR_NO_DATA, "未查询到对应记录") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
var resp interface{} |
|
|
|
switch enterprise.Kind { |
|
|
|
case enum.EnterpriseKindByCentralKitchenForSchool: |
|
|
|
//判断校企类型 |
|
|
|
if enterprise.Pvd == enum.EnterprisePvdForOnlinePayment && enterprise.Mode == enum.EnterpriseModeForSchool { |
|
|
|
err, resp = svc.CentralKitchenForSchoolInfo(utils.StrToInt(enterpriseId)) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
break |
|
|
|
case enum.EnterpriseKindByCentralKitchenForFactory: |
|
|
|
break |
|
|
|
case enum.EnterpriseKindBySelfSupportForSchool: |
|
|
|
} |
|
|
|
if enterprise.Pvd == enum.EnterprisePvdForFaceScanPayment && enterprise.Mode == enum.EnterpriseModeForSchool { |
|
|
|
err, resp = svc.SelfSupportForSchoolInfo(utils.StrToInt(enterpriseId)) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
break |
|
|
|
case enum.EnterpriseKindBySelfSupportForFactory: |
|
|
|
break |
|
|
|
case enum.EnterpriseKindByNursingHome: |
|
|
|
} |
|
|
|
if enterprise.Kind == enum.EnterpriseKindByNursingHome { |
|
|
|
err, resp = svc.NursingHomeInfo(utils.StrToInt(enterpriseId)) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
break |
|
|
|
} |
|
|
|
|
|
|
|
e.OutSuc(c, map[string]interface{}{ |
|
|
|
"info": resp, |
|
|
|
"kind": []map[string]interface{}{ |
|
|
|