Browse Source

debug 部署

master
PoffyZhang 1 year ago
parent
commit
ed2996831d
12 changed files with 249 additions and 6 deletions
  1. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/provincial/controller/TestController.java
  2. +12
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
  3. +10
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.java
  4. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.xml
  5. +29
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/TodoCenterStatisticsVO.java
  6. +22
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/TodoVO.java
  7. +13
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/service/StatisticsService.java
  8. +17
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/service/impl/StatisticsServiceImpl.java
  9. +16
    -5
      pmapi/src/main/java/com/ningdatech/pmapi/workbench/controller/WorkbenchController.java
  10. +27
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java
  11. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/TodoCenterStatisticsPO.java
  12. +62
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/provincial/controller/TestController.java View File

@@ -1,5 +1,6 @@
package com.ningdatech.pmapi.provincial.controller;

import cn.hutool.core.io.resource.ResourceUtil;
import com.ningdatech.basic.model.ApiResponse;
import com.ningdatech.pmapi.projectdeclared.manage.ReviewByProvincialDeptManage;
import com.ningdatech.pmapi.projectlib.model.entity.Project;
@@ -12,6 +13,8 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.io.IOException;
import java.io.InputStream;

/**
* @Classname TestController
@@ -43,4 +46,21 @@ public class TestController {
private ApiResponse detail(@RequestParam String projectId){
return joinReviewProvincialBureauService.processInfo(projectId);
}

@GetMapping("/path")
@ApiOperation("测试获取详情")
private String path() throws IOException {
// String template = ResourceUtil.getResource("template").getPath();
// return template;

InputStream in = this.getClass().getResourceAsStream("/template/simsun.ttc");
StringBuilder sb = new StringBuilder();
int n;
while ((n=in.read())!=-1){
sb.append((char)n);
System.out.print((char)n);
}

return sb.toString();
}
}

+ 12
- 1
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -2,7 +2,6 @@ package com.ningdatech.pmapi.todocenter.manage;

import cn.hutool.core.codec.Base64;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.io.resource.ResourceUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
@@ -56,6 +55,8 @@ import com.ningdatech.pmapi.todocenter.model.req.ProcessDetailReq;
import com.ningdatech.pmapi.todocenter.model.req.ToBeProcessedExportReq;
import com.ningdatech.pmapi.todocenter.model.req.ToBeProcessedReq;
import com.ningdatech.pmapi.todocenter.model.vo.ResToBeProcessedVO;
import com.ningdatech.pmapi.todocenter.model.vo.TodoCenterStatisticsVO;
import com.ningdatech.pmapi.todocenter.service.StatisticsService;
import com.ningdatech.pmapi.todocenter.utils.BuildUserUtils;
import com.ningdatech.pmapi.todocenter.utils.PdfUtils;
import com.ningdatech.pmapi.user.entity.UserInfo;
@@ -1145,4 +1146,14 @@ public class TodoCenterManage {
Project declaredProject = projectService.getById(projectId);
return getSealedPdf(req, declaredProject);
}

//获取当前登录人的 待办中心统计数据
public TodoCenterStatisticsVO todoCenterStatistics(Integer year){
TodoCenterStatisticsVO resVo = new TodoCenterStatisticsVO();

//为了查询效率 还是自己去写统计接口
// statisticsService.

return resVo;
}
}

+ 10
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.java View File

@@ -0,0 +1,10 @@
package com.ningdatech.pmapi.todocenter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wflow.bean.entity.WflowDepartments;

public interface StatisticsMapper extends BaseMapper {



}

+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.xml View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ningdatech.pmapi.todocenter.mapper.StatisticsMapper">

</mapper>

+ 29
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/TodoCenterStatisticsVO.java View File

@@ -0,0 +1,29 @@
package com.ningdatech.pmapi.todocenter.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
* @Classname TodoCenterStatistics
* @Description
* @Date 2023/3/20 11:02
* @Author PoffyZhang
*/
@Data
public class TodoCenterStatisticsVO {

@ApiModelProperty("待处理数")
private Integer todoNum;
@ApiModelProperty("已处理数")
private Integer idoNum;
@ApiModelProperty("我发起数")
private Integer mysubmitNum;
@ApiModelProperty("抄送我数")
private Integer ccmeNum;

@ApiModelProperty("待我处理列表 5个")
private List<TodoVO> todoList;

}

+ 22
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/TodoVO.java View File

@@ -0,0 +1,22 @@
package com.ningdatech.pmapi.todocenter.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* @Classname TodoVO
* @Description
* @Date 2023/3/20 11:04
* @Author PoffyZhang
*/
@Data
public class TodoVO {

@ApiModelProperty("项目工作流nodeId")
private String nodeId;
@ApiModelProperty("项目ID")
private Long projectId;
@ApiModelProperty("项目名称")
private String projectName;

}

+ 13
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/service/StatisticsService.java View File

@@ -0,0 +1,13 @@
package com.ningdatech.pmapi.todocenter.service;

/**
* @Classname StatisticsService
* @Description
* @Date 2023/3/20 11:20
* @Author PoffyZhang
*/
public interface StatisticsService {



}

+ 17
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/service/impl/StatisticsServiceImpl.java View File

@@ -0,0 +1,17 @@
package com.ningdatech.pmapi.todocenter.service.impl;

import com.ningdatech.pmapi.todocenter.service.StatisticsService;
import org.springframework.stereotype.Service;

/**
* @Classname StatisticsService
* @Description
* @Date 2023/3/20 11:20
* @Author PoffyZhang
*/
@Service
public class StatisticsServiceImpl implements StatisticsService {


}

+ 16
- 5
pmapi/src/main/java/com/ningdatech/pmapi/workbench/controller/WorkbenchController.java View File

@@ -1,20 +1,31 @@
package com.ningdatech.pmapi.workbench.controller;

import com.ningdatech.pmapi.workbench.manage.WorkbenchManage;
import com.ningdatech.pmapi.workbench.model.vo.WorkbenchVO;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

/**
* 工作台前端控制器
*
* @author CMM
* @author ZPF
* @since 2023/03/17 15:35
*/
@RestController
@AllArgsConstructor
@Api(tags = "工作台控制器")
@RequestMapping("/api/v1/todo-center")
@RequestMapping("/api/v1/workbench")
public class WorkbenchController {

private WorkbenchManage workbenchManage;

/**
* @param year
* @return
*/
@GetMapping
public WorkbenchVO workbench(@RequestParam(defaultValue = "2023") Integer year){
return workbenchManage.getWorkbenchData(year);
}

}

+ 27
- 0
pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java View File

@@ -0,0 +1,27 @@
package com.ningdatech.pmapi.workbench.manage;

import com.ningdatech.pmapi.todocenter.manage.TodoCenterManage;
import com.ningdatech.pmapi.workbench.model.vo.WorkbenchVO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

/**
* @Classname WorkbenchManage
* @Description
* @Date 2023/3/20 10:56
* @Author PoffyZhang
*/
@Component
@AllArgsConstructor
public class WorkbenchManage {

private TodoCenterManage todoCenterManage;

public WorkbenchVO getWorkbenchData(Integer year){
//1.待办中心数据
todoCenterManage.todoCenterStatistics(year);

return null;
}

}

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/TodoCenterStatisticsPO.java View File

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.workbench.model;

import lombok.Data;

/**
* @Classname TodoCenterStatisticsPO
* @Description
* @Date 2023/3/20 11:51
* @Author PoffyZhang
*/
@Data
public class TodoCenterStatisticsPO {

// private

}

+ 62
- 0
pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java View File

@@ -0,0 +1,62 @@
package com.ningdatech.pmapi.workbench.model.vo;

import com.ningdatech.pmapi.projectlib.model.vo.ProjectLibListItemVO;
import com.ningdatech.pmapi.sys.model.vo.NoticeListItemVO;
import com.ningdatech.pmapi.todocenter.model.vo.TodoCenterStatisticsVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
* @Classname WorkbenchVO
* @Description
* @Date 2023/3/20 9:33
* @Author PoffyZhang
*/
@Data
public class WorkbenchVO implements Serializable {

@ApiModelProperty("待办中心统计数据 以及代办处理")
public TodoCenterStatisticsVO todoCerter;

@ApiModelProperty("单位申报管理统计数据")
public DeclaredStatistics orgDeclared;

@ApiModelProperty("区域申报管理统计数据 只有区域管理员才有数据")
public DeclaredStatistics regionDeclared;

@ApiModelProperty("项目动态")
public List<ProjectLibListItemVO> projects;

@ApiModelProperty("公告列表")
public NoticeListItemVO noticeList;

@Data
public static class DeclaredStatistics {
@ApiModelProperty("总项目数")
private Integer totalNum;
@ApiModelProperty("建设项目数")
private Integer buildNum;
@ApiModelProperty("运维项目数")
private Integer operationNum;

@ApiModelProperty("待立项数")
private Integer notApprovedNum;
@ApiModelProperty("已立项数")
private Integer approvedNum;
@ApiModelProperty("建设中数")
private Integer constructionNum;
@ApiModelProperty("待验收数")
private Integer tobeInspectedNum;
@ApiModelProperty("已归档数")
private Integer archivedNum;

@ApiModelProperty("申报总金额")
private BigDecimal declaredAmount;
@ApiModelProperty("立项总金额")
private BigDecimal approvalAmount;
}
}

Loading…
Cancel
Save