|
@@ -201,7 +201,7 @@ public class AppPageReportController {
|
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
|
map.put("totalReceivable", sellerWaterList.get(0).getReceivableAmount());
|
|
|
map.put("totalReceived", sellerWaterList.get(0).getReceivedAmount());
|
|
|
- map.put("amount",sellerWaterList);
|
|
|
+ map.put("amountDetails",sellerWaterList);
|
|
|
map.put("generalUser",sellerWaterList.get(0).getGeneralUserAmount());
|
|
|
map.put("bigUser",sellerWaterList.get(0).getBigUserAmount());
|
|
|
map.put("generalUserRate",generalRate);
|
|
@@ -268,6 +268,8 @@ public class AppPageReportController {
|
|
|
totalReceivedAmount=totalReceivedAmount.add(amount.getReceivedAmount());
|
|
|
totalGeneralUser=totalGeneralUser.add(amount.getGeneralUserAmount());
|
|
|
totalBigUser=totalBigUser.add(amount.getBigUserAmount());
|
|
|
+
|
|
|
+ amount.setRecoveryRate(totalReceivableAmount.compareTo(BigDecimal.ZERO)==0? BigDecimal.ZERO : totalReceivedAmount.multiply(new BigDecimal(100)).divide(totalReceivableAmount,2));
|
|
|
}
|
|
|
|
|
|
BigDecimal sum =totalBigUser.add(totalGeneralUser);
|
|
@@ -355,12 +357,37 @@ public class AppPageReportController {
|
|
|
return new AjaxMessage<>(ResultStatus.OK,map);
|
|
|
}
|
|
|
|
|
|
- @RequestMapping(value = "getSceneAmount",method = RequestMethod.GET)
|
|
|
- @ApiOperation(value = "App总览——资产情况本月本年近一年")
|
|
|
- public AjaxMessage<Object> getSceneAmount(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
|
- Map<String,Object> map = appPageReportService.findSceneAmount(companyOrgId);
|
|
|
+ @RequestMapping(value = "getSceneAmountForSameMonth",method = RequestMethod.GET)
|
|
|
+ @ApiOperation(value = "App总览——资产情况本月")
|
|
|
+ public AjaxMessage<Object> getSceneAmountForSameMonth(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
|
+ Map<String,Object> map = new HashMap<String,Object>();
|
|
|
+ List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,null);
|
|
|
+ List<Map<String,Object>> newAount = appPageReportService.findSceneAmount(companyOrgId,1);
|
|
|
+ map.put("assets",amount);
|
|
|
+ map.put("newAssets",newAount);
|
|
|
return new AjaxMessage<>(ResultStatus.OK,map);
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(value = "getSceneAmountForSameYear",method = RequestMethod.GET)
|
|
|
+ @ApiOperation(value = "App总览——资产情况本年")
|
|
|
+ public AjaxMessage<Object> getSceneAmountForSameYear(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
|
+ Map<String,Object> map = new HashMap<String,Object>();
|
|
|
+ LocalDate now = LocalDate.now();
|
|
|
+ List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,null);
|
|
|
+ List<Map<String,Object>> newAount = appPageReportService.findSceneAmount(companyOrgId,now.getMonthValue());
|
|
|
+ map.put("assets",amount);
|
|
|
+ map.put("newAssets",newAount);
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK,map);
|
|
|
+ }
|
|
|
|
|
|
+ @RequestMapping(value = "getSceneAmountForLast12Month",method = RequestMethod.GET)
|
|
|
+ @ApiOperation(value = "App总览——资产情况近一年")
|
|
|
+ public AjaxMessage<Object> getSceneAmountForLast12Month(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
|
+ Map<String,Object> map = new HashMap<String,Object>();
|
|
|
+ List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,null);
|
|
|
+ List<Map<String,Object>> newAount = appPageReportService.findSceneAmount(companyOrgId,12);
|
|
|
+ map.put("assets",amount);
|
|
|
+ map.put("newAssets",newAount);
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK,map);
|
|
|
+ }
|
|
|
}
|