|
@@ -174,19 +174,21 @@ public class SoSoDetailsController extends JeecgController<SoSoDetails, ISoSoDet
|
|
|
@AutoLog(value = "订单统计报表查询")
|
|
|
@ApiOperation(value="订单统计报表查询", notes="订单统计报表查询")
|
|
|
@GetMapping(value = "/getSO_SOMainReport")
|
|
|
- public Result<List<JSONObject>> getSO_SOMainReport(String vendorType,String startYearMonth,String endYearMonth,
|
|
|
- String department,String customer){
|
|
|
+ public Result<IPage<SoSoDetails>> getSO_SOMainReport(String vendorType,String startYearMonth,String endYearMonth,
|
|
|
+ String department,String customer,
|
|
|
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize){
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("startYearMonth",startYearMonth);
|
|
|
map.put("endYearMonth",endYearMonth);
|
|
|
map.put("vendorType",vendorType);
|
|
|
map.put("department",department);
|
|
|
map.put("customer",customer);
|
|
|
- Result<List<JSONObject>> result =new Result<>();
|
|
|
+ Result<IPage<SoSoDetails>> result =new Result<>();
|
|
|
+ Page<SoSoDetails> page = new Page<SoSoDetails>(pageNo, pageSize);
|
|
|
try {
|
|
|
- List<Map<String,Object>> list=soSoDetailsService.getSO_SOMainReport(map);
|
|
|
- List<JSONObject> resultList = JsonChangeUtils.toJSONObject(list);
|
|
|
- result.setResult(resultList);
|
|
|
+ IPage<SoSoDetails> list=soSoDetailsService.getSO_SOMainReport(page,map);
|
|
|
+ result.setResult(list);
|
|
|
result.success("查询成功");
|
|
|
} catch (Exception e) {
|
|
|
result.error500("查询失败:"+e.getMessage());
|
|
@@ -201,7 +203,7 @@ public class SoSoDetailsController extends JeecgController<SoSoDetails, ISoSoDet
|
|
|
@AutoLog(value = "订单报表统计图-部门")
|
|
|
@ApiOperation(value="订单报表统计图-部门", notes="订单报表统计图-部门")
|
|
|
@GetMapping(value = "/QuerySO_SOMainReportBydepartment")
|
|
|
- public Result<List<JSONObject>> QuerySO_SOMainReportBydepartment(String vendorType,String startYearMonth,String endYearMonth,
|
|
|
+ public Result<List<SoSoDetails>> QuerySO_SOMainReportBydepartment(String vendorType,String startYearMonth,String endYearMonth,
|
|
|
String department){
|
|
|
|
|
|
return null;
|
|
@@ -213,7 +215,7 @@ public class SoSoDetailsController extends JeecgController<SoSoDetails, ISoSoDet
|
|
|
@AutoLog(value = "订单报表统计图-客户")
|
|
|
@ApiOperation(value="订单报表统计图-客户", notes="订单报表统计图-客户")
|
|
|
@GetMapping(value = "/QuerySO_SOMainReportBycustomer")
|
|
|
- public Result<List<JSONObject>> QuerySO_SOMainReportBycustomer(String vendorType,String startYearMonth,String endYearMonth,
|
|
|
+ public Result<List<SoSoDetails>> QuerySO_SOMainReportBycustomer(String vendorType,String startYearMonth,String endYearMonth,
|
|
|
String customer){
|
|
|
|
|
|
return null;
|