浏览代码

update

add_mode
DengBiao 1年前
父节点
当前提交
701a1729bb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go

+ 2
- 2
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go 查看文件

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


正在加载...
取消
保存