Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
1345b13721
1 changed files with 8 additions and 11 deletions
  1. +8
    -11
      app/admin/hdl/enterprise_manage/hdl_enterprise.go

+ 8
- 11
app/admin/hdl/enterprise_manage/hdl_enterprise.go View File

@@ -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{}{


Loading…
Cancel
Save