DengBiao 1 anno fa
parent
commit
8b7fd0d7fd
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      app/admin/hdl/hdl_enterprise.go
  2. BIN
     

+ 2
- 2
app/admin/hdl/hdl_enterprise.go Vedi File

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


BIN
Vedi File


Caricamento…
Annulla
Salva