diff --git a/app/admin/hdl/hdl_enterprise.go b/app/admin/hdl/hdl_enterprise.go index 8fe29b3..0d366bd 100644 --- a/app/admin/hdl/hdl_enterprise.go +++ b/app/admin/hdl/hdl_enterprise.go @@ -311,11 +311,11 @@ func EnterpriseUpdate(c *gin.Context) { //新增 grade 数据 && class 数据 var classes []*model.Class for _, v := range req.PeriodList { - if v.Id != 0 { + if v.Id == 0 { //TODO::新增 insertId, err1 := periodDb.PeriodInsert(&model.Period{ EnterpriseId: req.Id, - Name: req.Name, + Name: v.Name, BreakfastUnitPrice: "0.00", LunchUnitPrice: "0.00", DinnerUnitPrice: "0.00", diff --git a/static/template/sanHu/Pc.png b/static/template/sanHu/Pc.png new file mode 100644 index 0000000..f124943 Binary files /dev/null and b/static/template/sanHu/Pc.png differ