@@ -1848,6 +1848,13 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD | |||||
} | } | ||||
} | } | ||||
//xls.DeleteSheet("template") //删除模板表 | //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) | xls.SaveAs("./static" + downloadPath) | ||||
break | break | ||||
@@ -137,6 +137,11 @@ func SaveSelfSupportForSchoolUserIdentity(c *gin.Context) { | |||||
now := time.Now() | now := time.Now() | ||||
var identity = enum.UserIdentityForSelfSupportForStudent | var identity = enum.UserIdentityForSelfSupportForStudent | ||||
var kind = enum.UserIdentityKindForCommon | var kind = enum.UserIdentityKindForCommon | ||||
if req.CertType == 0 { | |||||
req.CertType = enum.UserIdentityCertTypeForIdCard | |||||
} | |||||
if req.Kind == enum.UserIdentityKindForWorker { | if req.Kind == enum.UserIdentityKindForWorker { | ||||
kind = enum.UserIdentityKindForWorker | kind = enum.UserIdentityKindForWorker | ||||
identity = enum.UserIdentityForSelfSupportForWorker | identity = enum.UserIdentityForSelfSupportForWorker | ||||
@@ -23,7 +23,7 @@ type SaveSelfSupportForSchoolUserIdentityReq struct { | |||||
IsTeacher bool `json:"is_teacher" label:"是否教师"` | IsTeacher bool `json:"is_teacher" label:"是否教师"` | ||||
Name string `json:"name" binding:"required" label:"姓名"` | Name string `json:"name" binding:"required" label:"姓名"` | ||||
IdNo string `json:"id_no" 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"` | GradeId int `json:"grade_id" label:"年级id"` | ||||
ClassId int `json:"class_id" label:"班级id"` | ClassId int `json:"class_id" label:"班级id"` | ||||
} | } | ||||