|
|
@@ -650,6 +650,7 @@ func SelfSupportForSchoolAddWorker(c *gin.Context) { |
|
|
|
Uid: 0, |
|
|
|
Name: req.Name, |
|
|
|
IdNo: req.IdNo, |
|
|
|
CertType: enum.UserIdentityCertTypeForIdCard, |
|
|
|
Kind: enum.UserIdentityKindForWorker, |
|
|
|
Identity: enum.UserIdentityForSelfSupportForWorker, |
|
|
|
EnterpriseId: req.EnterpriseId, |
|
|
@@ -701,6 +702,7 @@ func SelfSupportForSchoolAddTeacher(c *gin.Context) { |
|
|
|
Uid: 0, |
|
|
|
Name: req.Name, |
|
|
|
IdNo: req.IdNo, |
|
|
|
CertType: enum.UserIdentityCertTypeForIdCard, |
|
|
|
Kind: enum.UserIdentityKindForCommon, |
|
|
|
Identity: enum.UserIdentityForSelfSupportForTeacher, |
|
|
|
EnterpriseId: req.EnterpriseId, |
|
|
@@ -930,6 +932,7 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) { |
|
|
|
Uid: 0, |
|
|
|
Name: name, |
|
|
|
IdNo: idNo, |
|
|
|
CertType: enum.UserIdentityCertTypeForIdCard, |
|
|
|
Kind: enum.UserIdentityKindForCommon, |
|
|
|
Identity: enum.UserIdentityForSelfSupportForTeacher, |
|
|
|
EnterpriseId: enterpriseId, |
|
|
@@ -1070,6 +1073,39 @@ func SelfSupportForSchoolOrdList(c *gin.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
func SelfSupportForSchoolConsumeLimit(c *gin.Context) { |
|
|
|
var req md.SelfSupportForSchoolOrdListReq |
|
|
|
err := c.ShouldBindJSON(&req) |
|
|
|
if err != nil { |
|
|
|
err = validate.HandleValidateErr(err) |
|
|
|
err1 := err.(e.E) |
|
|
|
e.OutErr(c, err1.Code, err1.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
resp, total, err := svc2.SelfSupportForSchoolOrdList(req) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
e.OutSuc(c, map[string]interface{}{ |
|
|
|
"list": resp, |
|
|
|
"total": total, |
|
|
|
"enterprise_kind_list": md.EnterpriseKindForSchool, |
|
|
|
"order_status_list": []map[string]interface{}{ |
|
|
|
{ |
|
|
|
"name": enum.SelfSupportForSchoolOrdOrderStatus.String(enum.SelfSupportForSchoolOrdOrderStatusForWait), |
|
|
|
"value": enum.SelfSupportForSchoolOrdOrderStatusForWait, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": enum.SelfSupportForSchoolOrdOrderStatus.String(enum.SelfSupportForSchoolOrdOrderStatusForSuccess), |
|
|
|
"value": enum.SelfSupportForSchoolOrdOrderStatusForSuccess, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
func SelfSupportForSchoolOrdListExport(c *gin.Context) { |
|
|
|
var req md.SelfSupportForSchoolOrdListReq |
|
|
|
err := c.ShouldBindJSON(&req) |
|
|
|