|
|
@@ -752,8 +752,8 @@ func CentralKitchenForSchoolReserveList(req md.CentralKitchenForSchoolReserveLis |
|
|
|
|
|
|
|
var months []time.Month |
|
|
|
if req.StartDate != "" { |
|
|
|
sDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local) |
|
|
|
eDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.EndDate, time.Local) |
|
|
|
sDate, _ := time.ParseInLocation("2006-01-02", req.StartDate, time.Local) |
|
|
|
eDate, _ := time.ParseInLocation("2006-01-02", req.EndDate, time.Local) |
|
|
|
_, sMonth, _ := sDate.Date() |
|
|
|
_, eMonth, _ := eDate.Date() |
|
|
|
diffMonth := sMonth - eMonth |
|
|
|