|
@@ -15,6 +15,7 @@ func AddCentralKitchenForSchoolPackage(req md.SaveCentralKitchenForSchoolPackage |
|
|
now := time.Now() |
|
|
now := time.Now() |
|
|
//TODO::判断当前月份是否存在 |
|
|
//TODO::判断当前月份是否存在 |
|
|
centralKitchenForSchoolPackageDb := db.CentralKitchenForSchoolPackageDb{} |
|
|
centralKitchenForSchoolPackageDb := db.CentralKitchenForSchoolPackageDb{} |
|
|
|
|
|
centralKitchenForSchoolPackageDb.Set() |
|
|
isHasPackage, err := centralKitchenForSchoolPackageDb.GetCentralKitchenForSchoolPackageByMonth(req.Year, req.Month) |
|
|
isHasPackage, err := centralKitchenForSchoolPackageDb.GetCentralKitchenForSchoolPackageByMonth(req.Year, req.Month) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|