forked from free-lancers/electricity_bill_calc_service
enhance(god):清除报表中不同部分的时候同时重置报表的进度状态。
This commit is contained in:
@@ -436,7 +436,12 @@ func searchReports(c *gin.Context) {
|
||||
result.NotAccept("查询参数[page]格式不正确。")
|
||||
return
|
||||
}
|
||||
records, totalItems, err := service.ReportService.SearchReport(requestUser, requestPark, requestKeyword, requestPeriod, requestPage)
|
||||
requestAllReports, err := strconv.ParseBool(c.DefaultQuery("all", "false"))
|
||||
if err != nil {
|
||||
result.NotAccept("查询参数[all]格式不正确。")
|
||||
return
|
||||
}
|
||||
records, totalItems, err := service.ReportService.SearchReport(requestUser, requestPark, requestKeyword, requestPeriod, requestPage, !requestAllReports)
|
||||
if err != nil {
|
||||
result.NotFound(err.Error())
|
||||
return
|
||||
|
Reference in New Issue
Block a user