|
|
@@ -111,15 +111,15 @@ func SetNursingHomeWithSpec(c *gin.Context) { |
|
|
|
now := time.Now() |
|
|
|
if spec != nil { |
|
|
|
insertConfirm, err1 := nursingHomeWithSpec.NursingHomeWithSpecInsert(&model.NursingHomeWithSpec{ |
|
|
|
IsOpenBreakfast: spec.IsOpenBreakfast, |
|
|
|
IsOpenLunch: spec.IsOpenLunch, |
|
|
|
IsOpenDinner: spec.IsOpenDinner, |
|
|
|
EnterpriseId: req.EnterpriseId, |
|
|
|
BreakfastUnitPrice: req.BreakfastUnitPrice, |
|
|
|
LunchUnitPrice: req.LunchUnitPrice, |
|
|
|
DinnerUnitPrice: req.DinnerUnitPrice, |
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
IsOpenBreakfast: spec.IsOpenBreakfast, |
|
|
|
IsOpenLunch: spec.IsOpenLunch, |
|
|
|
IsOpenDinner: spec.IsOpenDinner, |
|
|
|
EnterpriseId: req.EnterpriseId, |
|
|
|
BreakfastUnitPrice: req.BreakfastUnitPrice, |
|
|
|
LunchUnitPrice: req.LunchUnitPrice, |
|
|
|
DinnerUnitPrice: req.DinnerUnitPrice, |
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
}) |
|
|
|
if err1 != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err1.Error()) |
|
|
@@ -131,12 +131,12 @@ func SetNursingHomeWithSpec(c *gin.Context) { |
|
|
|
} |
|
|
|
} else { |
|
|
|
insertConfirm, err1 := nursingHomeWithSpec.NursingHomeWithSpecInsert(&model.NursingHomeWithSpec{ |
|
|
|
EnterpriseId: req.EnterpriseId, |
|
|
|
BreakfastUnitPrice: req.BreakfastUnitPrice, |
|
|
|
LunchUnitPrice: req.LunchUnitPrice, |
|
|
|
DinnerUnitPrice: req.DinnerUnitPrice, |
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
EnterpriseId: req.EnterpriseId, |
|
|
|
BreakfastUnitPrice: req.BreakfastUnitPrice, |
|
|
|
LunchUnitPrice: req.LunchUnitPrice, |
|
|
|
DinnerUnitPrice: req.DinnerUnitPrice, |
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
}) |
|
|
|
if err1 != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err1.Error()) |
|
|
@@ -453,7 +453,7 @@ func NursingHomeOrdList(c *gin.Context) { |
|
|
|
"total": total, |
|
|
|
"kind_list": []map[string]string{ |
|
|
|
{ |
|
|
|
"name": "按学期购买", |
|
|
|
"name": "按年购买", |
|
|
|
"value": "1", |
|
|
|
}, |
|
|
|
{ |
|
|
|