Commit 80acd8d8 authored by lcl's avatar lcl

项目概览

parent d354a022
...@@ -8,13 +8,11 @@ import com.dsk.system.domain.business.dto.BusinessSearchDto; ...@@ -8,13 +8,11 @@ import com.dsk.system.domain.business.dto.BusinessSearchDto;
import com.dsk.system.service.IBusinessOverviewService; import com.dsk.system.service.IBusinessOverviewService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/** /**
* 项目概览 * 项目概览
*
* @author lcl * @author lcl
* @create 2023/8/14 * @create 2023/8/14
*/ */
...@@ -30,40 +28,43 @@ public class BusinessOverviewController extends BaseController { ...@@ -30,40 +28,43 @@ public class BusinessOverviewController extends BaseController {
* 项目状态统计 * 项目状态统计
*/ */
@GetMapping("/status/statistics") @GetMapping("/status/statistics")
public AjaxResult statusStatistics(){ public AjaxResult statusStatistics() {
return AjaxResult.success(baseService.statusStatistics(new BusinessSearchDto(SecurityUtils.getUserId()))); return AjaxResult.success(baseService.statusStatistics(new BusinessSearchDto(SecurityUtils.getUserId())));
} }
/** /**
* 项目资金分析 * 项目资金分析
*/ */
@GetMapping("/amount/analyze") @GetMapping("/amount/analyze")
public AjaxResult amountAnalyze(){ public AjaxResult amountAnalyze() {
return AjaxResult.success(baseService.amountAnalyze(new BusinessSearchDto(SecurityUtils.getUserId(),0))); return AjaxResult.success(baseService.amountAnalyze(new BusinessSearchDto(SecurityUtils.getUserId(), 0)));
} }
/** /**
* 项目类型分析 * 项目类型分析
*/ */
@GetMapping("/type/analyze") @GetMapping("/type/analyze/{status}")
public AjaxResult typeAnalyze(){ public AjaxResult typeAnalyze(@PathVariable Integer status) {
return AjaxResult.success(baseService.typeAnalyze(new BusinessSearchDto(SecurityUtils.getUserId(),2))); return AjaxResult.success(baseService.typeAnalyze(new BusinessSearchDto(SecurityUtils.getUserId(), status)));
} }
/** /**
* 公招项目地区统计 * 公招项目地区统计
*
* @return * @return
*/ */
@GetMapping("/countGroupByProvince") @GetMapping("/countGroupByProvince")
public AjaxResult countGroupByProvince(@RequestBody JSONObject object){ public AjaxResult countGroupByProvince(@RequestBody JSONObject object) {
return baseService.countGroupByProvince(object); return baseService.countGroupByProvince(object);
} }
/** /**
* 公招项目投资金额统计 * 公招项目投资金额统计
*
* @return * @return
*/ */
@GetMapping("/rangByMoney") @GetMapping("/rangByMoney")
public AjaxResult rangByMoney(@RequestBody JSONObject object){ public AjaxResult rangByMoney(@RequestBody JSONObject object) {
return baseService.rangByMoney(object); return baseService.rangByMoney(object);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment