|
@@ -501,13 +501,16 @@ public class BizCollectionController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("通过合同id查询具体收入支出")
|
|
@ApiOperation("通过合同id查询具体收入支出")
|
|
- @PostMapping("/getBycontract")
|
|
|
|
- public Map<String,List<ResStatisticsVo>> getByContract(ReqStatisticsVo conditions){
|
|
|
|
|
|
+ @PostMapping("/getByContract")
|
|
|
|
+ public AjaxResult getByContract(@RequestBody ReqStatisticsVo conditions) {
|
|
|
|
+ HashMap<String, List<ResStatisticsVo>> map = new HashMap<>();
|
|
//收款
|
|
//收款
|
|
- List<ResStatisticsVo> inList = collectionService.getByContractIn(conditions);
|
|
|
|
|
|
+ List<ResStatisticsVo> inList = collectionService.getByContractIn(conditions);
|
|
//支出
|
|
//支出
|
|
- List<ResStatisticsVo>outList = collectionService.getByContractOut(conditions);
|
|
|
|
- return null;
|
|
|
|
|
|
+ List<ResStatisticsVo> outList = collectionService.getByContractOut(conditions);
|
|
|
|
+ map.put("inList", inList);
|
|
|
|
+ map.put("outList", outList);
|
|
|
|
+ return success(AjaxResult.success(map));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|