|
|
@@ -44,7 +44,7 @@ public class KwfTruckReportController {
|
|
|
**/
|
|
|
@PostMapping("/statistics")
|
|
|
public HttpResult statistics(@RequestBody Map<String, Object> params) throws SystemException {
|
|
|
- params.put("entId", LoginUserHolder.getSystemType() != SystemTypeEnum.MANAGE.getCode() ? LoginUserHolder.getEntId() : null);
|
|
|
+ params.put("entId", LoginUserHolder.getEntId());
|
|
|
Map countMaps = reportService.statistics(params);
|
|
|
return HttpResult.ok(countMaps);
|
|
|
}
|
|
|
@@ -57,7 +57,7 @@ public class KwfTruckReportController {
|
|
|
**/
|
|
|
@PostMapping("/select")
|
|
|
public HttpResult findPage(@RequestBody Map<String, Object> params) throws SystemException {
|
|
|
- params.put("entId", LoginUserHolder.getSystemType() != SystemTypeEnum.MANAGE.getCode() ? LoginUserHolder.getEntId() : null);
|
|
|
+ params.put("entId", LoginUserHolder.getEntId());
|
|
|
// 设置分页参数
|
|
|
PageHelper.startPage(PageResult.getPage(params), PageResult.getPageSize(params));
|
|
|
List<KwfTruckReportVo> list = reportService.findPage(params);
|
|
|
@@ -73,7 +73,7 @@ public class KwfTruckReportController {
|
|
|
**/
|
|
|
@PostMapping("/export")
|
|
|
public HttpResult export(@RequestBody Map<String, Object> params) {
|
|
|
- params.put("entId", LoginUserHolder.getSystemType() != SystemTypeEnum.MANAGE.getCode() ? LoginUserHolder.getEntId() : null);
|
|
|
+ params.put("entId", LoginUserHolder.getEntId());
|
|
|
/**查询数据**/
|
|
|
List<KwfTruckReportVo> trucks = reportService.findPage(params);
|
|
|
|