|
|
@@ -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", |
|
|
|