|
@@ -1,11 +1,15 @@
|
|
|
package org.jeecg.modules.Index.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.system.api.ISysBaseAPI;
|
|
|
+import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.system.util.JwtUtil;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.modules.Index.entity.dto.IndexInfoParamDto;
|
|
@@ -19,6 +23,7 @@ import org.jeecg.modules.Index.service.IndexService;
|
|
|
import org.jeecg.modules.Index.service.IndexZcbService;
|
|
|
import org.jeecg.modules.Index.util.AuthMark;
|
|
|
import org.jeecg.modules.Index.util.CommonMethod;
|
|
|
+import org.jeecg.modules.costModelClPrice.entity.KzksCostModelClPrice;
|
|
|
import org.jeecg.modules.dataSourceSwitch.annotation.TargetDataSource;
|
|
|
import org.jeecg.modules.xmcbDetail.entity.ComContractInfoExchange;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -98,16 +103,22 @@ public class IndexController {
|
|
|
@ApiOperation(value = "首页一层当月合同额明细", notes = "首页一层当月合同额明细")
|
|
|
@PostMapping("getDetailIncome")
|
|
|
@TargetDataSource
|
|
|
- public Result<List<ComContractInfoExchange>> getDetailIncome(@RequestBody(required = false) List<String> departNameList, HttpServletRequest request){
|
|
|
- List<ComContractInfoExchange> comContractInfoExchangeList = indexService.getDetailIncome(request, departNameList);
|
|
|
- return Result.OK(comContractInfoExchangeList);
|
|
|
+ public Result<IPage<ComContractInfoExchange>> getDetailIncome(@RequestBody(required = false) List<String> departNameList, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest request){
|
|
|
+ Page<ComContractInfoExchange> page = new Page<ComContractInfoExchange>(pageNo, pageSize);
|
|
|
+ List<ComContractInfoExchange> pageList = indexService.getDetailIncome(page, request, departNameList);
|
|
|
+ page.setRecords(pageList);
|
|
|
+ return Result.OK(page);
|
|
|
}
|
|
|
@ApiOperation(value = "首页一层当月收款额明细", notes = "首页一层当月收款额明细")
|
|
|
@PostMapping("getDetailReceived")
|
|
|
@TargetDataSource
|
|
|
- public Result<List<ComContractInfoExchange>> getDetailReceived(@RequestBody(required = false) List<String> departNameList, HttpServletRequest request){
|
|
|
- List<ComContractInfoExchange> comContractInfoExchangeList = indexService.getDetailReceived(request, departNameList);
|
|
|
- return Result.OK(comContractInfoExchangeList);
|
|
|
+ public Result<IPage<ComContractInfoExchange>> getDetailReceived(@RequestBody(required = false) List<String> departNameList, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest request){
|
|
|
+ Page<ComContractInfoExchange> page = new Page<ComContractInfoExchange>(pageNo, pageSize);
|
|
|
+ List<ComContractInfoExchange> pageList = indexService.getDetailReceived(page, request, departNameList);
|
|
|
+ page.setRecords(pageList);
|
|
|
+ return Result.OK(page);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "计算已收款", notes = "计算已收款")
|