作者 Your Name

调整查询

@@ -533,7 +533,7 @@ func (srv ProductTroubleService) ListRewardSummary(param *query.ListRewardSummar @@ -533,7 +533,7 @@ func (srv ProductTroubleService) ListRewardSummary(param *query.ListRewardSummar
533 if err != nil { 533 if err != nil {
534 return 0, nil, application.ThrowError(application.ARG_ERROR, "日期格式错误") 534 return 0, nil, application.ThrowError(application.ARG_ERROR, "日期格式错误")
535 } else { 535 } else {
536 - endDate.Add((86400 - 1) * time.Second) 536 + endDate = endDate.Add((86400 - 1) * time.Second)
537 condition["endDate"] = endDate 537 condition["endDate"] = endDate
538 } 538 }
539 539
@@ -559,7 +559,7 @@ func (srv ProductTroubleService) ListRewardSummary(param *query.ListRewardSummar @@ -559,7 +559,7 @@ func (srv ProductTroubleService) ListRewardSummary(param *query.ListRewardSummar
559 for _, v := range rewardSummaryList { 559 for _, v := range rewardSummaryList {
560 item := dto.RewardSummaryList{ 560 item := dto.RewardSummaryList{
561 Id: v.Id, 561 Id: v.Id,
562 - RecordDate: v.RecordDate.Format("2006-01-02"), 562 + RecordDate: v.RecordDate.Local().Format("2006-01-02"),
563 WorkshopName: v.WorkStation.WorkshopName, 563 WorkshopName: v.WorkStation.WorkshopName,
564 LineName: v.WorkStation.LineName, 564 LineName: v.WorkStation.LineName,
565 SectionName: v.WorkStation.SectionName, 565 SectionName: v.WorkStation.SectionName,