Bläddra i källkod

update

add_mode
DengBiao 1 år sedan
förälder
incheckning
21d02c857f
3 ändrade filer med 13 tillägg och 1 borttagningar
  1. +7
    -0
      app/admin/svc/svc_data_statisstics.go
  2. +5
    -0
      app/customer/hdl/hdl_user_identity.go
  3. +1
    -1
      app/customer/md/md_user_identity.go

+ 7
- 0
app/admin/svc/svc_data_statisstics.go Visa fil

@@ -1848,6 +1848,13 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
}
}
//xls.DeleteSheet("template") //删除模板表

//xls.SetSheetRow("template", "A"+strconv.Itoa(j), &[]interface{}{"总计",
// v["早餐"]["count"], v["早餐"]["sum"],
// v["午餐"]["count"], v["午餐"]["sum"],
// v["晚餐"]["count"], v["晚餐"]["sum"],
// v["合计"]["count"], v["合计"]["sum"],
//})
//将文件保存至服务器
xls.SaveAs("./static" + downloadPath)
break


+ 5
- 0
app/customer/hdl/hdl_user_identity.go Visa fil

@@ -137,6 +137,11 @@ func SaveSelfSupportForSchoolUserIdentity(c *gin.Context) {
now := time.Now()
var identity = enum.UserIdentityForSelfSupportForStudent
var kind = enum.UserIdentityKindForCommon

if req.CertType == 0 {
req.CertType = enum.UserIdentityCertTypeForIdCard
}

if req.Kind == enum.UserIdentityKindForWorker {
kind = enum.UserIdentityKindForWorker
identity = enum.UserIdentityForSelfSupportForWorker


+ 1
- 1
app/customer/md/md_user_identity.go Visa fil

@@ -23,7 +23,7 @@ type SaveSelfSupportForSchoolUserIdentityReq struct {
IsTeacher bool `json:"is_teacher" label:"是否教师"`
Name string `json:"name" binding:"required" label:"姓名"`
IdNo string `json:"id_no" binding:"required" label:"身份证号码"`
CertType int `json:"cert_type" binding:"required" label:"证件类型(1:身份证 2:学工号 3:护照)"`
CertType int `json:"cert_type" label:"证件类型(1:身份证 2:学工号 3:护照)"`
GradeId int `json:"grade_id" label:"年级id"`
ClassId int `json:"class_id" label:"班级id"`
}


Laddar…
Avbryt
Spara