...
|
...
|
@@ -500,21 +500,22 @@ func (srv ProductTroubleService) ListRewardSummary(param *query.ListRewardSummar |
|
|
}
|
|
|
//搜索条件日期
|
|
|
if len(param.BeginDate) > 0 {
|
|
|
_, err = time.Parse("2006-01-02", param.BeginDate)
|
|
|
beginDate, err := time.ParseInLocation("2006-01-02", param.BeginDate, time.Local)
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.ARG_ERROR, "日期格式错误")
|
|
|
} else {
|
|
|
condition["beginDate"] = param.BeginDate
|
|
|
condition["beginDate"] = beginDate
|
|
|
}
|
|
|
|
|
|
}
|
|
|
//搜索条件日期
|
|
|
if len(param.EndDate) > 0 {
|
|
|
_, err = time.Parse("2006-01-02", param.EndDate)
|
|
|
endDate, err := time.ParseInLocation("2006-01-02", param.EndDate, time.Local)
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.ARG_ERROR, "日期格式错误")
|
|
|
} else {
|
|
|
condition["endDate"] = param.EndDate
|
|
|
endDate.Add((86400 - 1) * time.Second)
|
|
|
condition["endDate"] = endDate
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|