소스 검색

update

consumeLimit
DengBiao 1 년 전
부모
커밋
71075ee8df
1개의 변경된 파일14개의 추가작업 그리고 12개의 파일을 삭제
  1. +14
    -12
      app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go

+ 14
- 12
app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go 파일 보기

@@ -916,6 +916,19 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) {
e.OutErr(c, e.ERR_NO_DATA, "未查询到对应记录")
return
}

selfSupportForSchoolInfoDb := db.SelfSupportForSchoolInfoDb{}
selfSupportForSchoolInfoDb.Set(enterpriseId)
selfSupportForSchoolInfo, err1 := selfSupportForSchoolInfoDb.GetSelfSupportForSchoolInfo()
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
if selfSupportForSchoolInfo == nil {
e.OutErr(c, e.ERR, "当前学校暂未完成《一脸通行入驻》")
return
}

files, _ := c.FormFile("file")
dst := "./static/upload/" + files.Filename
err = c.SaveUploadedFile(files, dst)
@@ -982,17 +995,6 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) {
return
}
if info == nil {
selfSupportForSchoolInfoDb := db.SelfSupportForSchoolInfoDb{}
selfSupportForSchoolInfoDb.Set(enterpriseId)
selfSupportForSchoolInfo, err1 := selfSupportForSchoolInfoDb.GetSelfSupportForSchoolInfo()
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
if selfSupportForSchoolInfo == nil {
e.OutErr(c, e.ERR, "当前学校暂未完成《一脸通行入驻》")
return
}
info = &model.SelfSupportForUserFaceInfo{
EnterpriseId: enterpriseId,
UserIdentityId: insertAffected,
@@ -1058,7 +1060,7 @@ func ImportV2(c *gin.Context) {
}

func SelfSupportForSchoolDownloadTemplateExcel(c *gin.Context) {
e.OutSuc(c, "/template/自营学校(教师信息导入模板).xls", nil)
e.OutSuc(c, "/template/自营学校(教师信息导入模板).xlsx", nil)
return
}



불러오는 중...
취소
저장