|
@@ -1,7 +1,9 @@
|
|
package com.boman.report.controller;
|
|
package com.boman.report.controller;
|
|
|
|
|
|
import com.boman.common.core.web.controller.BaseController;
|
|
import com.boman.common.core.web.controller.BaseController;
|
|
|
|
+import com.boman.common.core.web.page.TableDataInfo;
|
|
import com.boman.domain.dto.AjaxResult;
|
|
import com.boman.domain.dto.AjaxResult;
|
|
|
|
+import com.boman.domain.entity.StatisticReportPersonnel;
|
|
import com.boman.report.service.StatisticReportService;
|
|
import com.boman.report.service.StatisticReportService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/statistic/report")
|
|
@RequestMapping("/statistic/report")
|
|
public class StatisticReportController extends BaseController {
|
|
public class StatisticReportController extends BaseController {
|
|
@@ -35,9 +39,10 @@ public class StatisticReportController extends BaseController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("/list")
|
|
@RequestMapping("/list")
|
|
- public AjaxResult list(@RequestBody StatisticReport report) {
|
|
|
|
|
|
+ public TableDataInfo list(@RequestBody StatisticReport report) {
|
|
startPage();
|
|
startPage();
|
|
- return AjaxResult.success(reportService.selectList(report));
|
|
|
|
|
|
+ List<StatisticReport> list = reportService.selectList(report);
|
|
|
|
+ return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("/saveOrUpdate")
|
|
@RequestMapping("/saveOrUpdate")
|