) page.getRecords();
+ String fileName = null;
+ if (IsAppendProjectEnum.APPEND_PROJECT.getCode().equals(param.getIsSupplement())){
+ fileName = "待办中心_我发起的_增补项目列表";
+ }else if (IsAppendProjectEnum.NOT_APPEND_PROJECT.getCode().equals(param.getIsSupplement())){
+ fileName = "待办中心_我发起的_非增补项目列表";
+ }
+ ExcelDownUtil.setFileName(fileName,response);
+ //数据导出处理函数
+ try {
+ EasyExcel.write(response.getOutputStream(), ResMySubmittedExportDTO.class)
+ .autoCloseStream(false)
+ .registerWriteHandler(ExcelExportStyle.formalStyle())
+ .sheet(fileName)
+ .doWrite(collect);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+
+ }
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqProcessHandlerDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqProcessHandlerDTO.java
index 1e9e424..3a8bbb1 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqProcessHandlerDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqProcessHandlerDTO.java
@@ -1,5 +1,7 @@
package com.ningdatech.pmapi.todocenter.model.dto.req;
import com.ningdatech.pmapi.common.model.FileBasicInfo;
+import com.ningdatech.pmapi.todocenter.bean.entity.ProcessComment;
+import com.ningdatech.pmapi.todocenter.enums.ProcessHandlerEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@@ -31,7 +33,7 @@ public class ReqProcessHandlerDTO {
/**
* 操作类型
*/
- private Action action;
+ private ProcessHandlerEnum action;
/**
* 目标用户
*/
@@ -40,43 +42,48 @@ public class ReqProcessHandlerDTO {
* 目标节点
*/
private String targetNode;
- /**
- * 审核通过意见
- */
- private String auditPassOpinion;
-
- /**
- * 审核通过附件
- */
- private FileBasicInfo auditPassAppendix;
- /**
- * 盖章通过意见
- */
- private String sealPassOpinion;
-
- /**
- * 盖章通过附件
- */
- private FileBasicInfo sealPassAppendix;
- /**
- * 审核退回意见
- */
- private String auditBackOpinion;
- /**
- * 审核退回附件
- */
- private FileBasicInfo auditBackAppendix;
- /**
- * 审核驳回意见
- */
- private String auditRejectOpinion;
/**
- * 审核驳回附件
+ * 审核信息
*/
- private FileBasicInfo auditRejectAppendix;
- public enum Action{
- //通过、盖章并通过、退回、撤回、驳回,审核意见类型
- pass, seal_pass ,back, withdraw, reject;
- }
+ private ProcessComment auditInfo;
+ ///**
+ // * 审核通过意见
+ // */
+ //private String auditPassOpinion;
+ //
+ ///**
+ // * 审核通过附件
+ // */
+ //private FileBasicInfo auditPassAppendix;
+ ///**
+ // * 盖章通过意见
+ // */
+ //private String sealPassOpinion;
+ //
+ ///**
+ // * 盖章通过附件
+ // */
+ //private FileBasicInfo sealPassAppendix;
+ ///**
+ // * 审核退回意见
+ // */
+ //private String auditBackOpinion;
+ ///**
+ // * 审核退回附件
+ // */
+ //private FileBasicInfo auditBackAppendix;
+ ///**
+ // * 审核驳回意见
+ // */
+ //private String auditRejectOpinion;
+ //
+ ///**
+ // * 审核驳回附件
+ // */
+ //private FileBasicInfo auditRejectAppendix;
+ //public enum Action{
+ // //通过、盖章并通过、退回、撤回、驳回
+ // pass, seal_pass ,back, withdraw, reject;
+ //}
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqToBeProcessedDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqToBeProcessedDTO.java
index 8e8f96e..37ed70d 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqToBeProcessedDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ReqToBeProcessedDTO.java
@@ -10,6 +10,8 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
+import javax.validation.constraints.NotNull;
+
/**
* 待办中心-待我处理查询实体信息
*
@@ -26,10 +28,10 @@ public class ReqToBeProcessedDTO extends PagePo implements Serializable {
private String projectName;
@ApiModelProperty("申报单位名称")
- private String reportUnitName;
+ private String buildUnitName;
@ApiModelProperty("预算年度")
- private Integer budgetYear;
+ private Integer projectYear;
@ApiModelProperty("流程发起开始时间")
private LocalDateTime processLaunchStartTime;
@@ -37,6 +39,7 @@ public class ReqToBeProcessedDTO extends PagePo implements Serializable {
@ApiModelProperty("流程发起结束时间")
private LocalDateTime processLaunchEndTime;
- @ApiModelProperty(value = "是否增补项目",allowableValues = "非增补项目 false,增补项目 true")
- private Boolean isSupplement;
+ @ApiModelProperty(value = "是否增补项目",allowableValues = "非增补项目 0,增补项目 1")
+ @NotNull(message = "是否增补字段不能为空!")
+ private Integer isSupplement;
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResHandledExportDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResHandledExportDTO.java
new file mode 100644
index 0000000..0492bdb
--- /dev/null
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResHandledExportDTO.java
@@ -0,0 +1,44 @@
+package com.ningdatech.pmapi.todocenter.model.dto.res;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * 待办中心我已处理项目列表导出实体
+ *
+ * @author CMM
+ * @since 2023/01/19 16:42
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class ResHandledExportDTO implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @ExcelProperty("项目名称")
+ private String projectName;
+
+ @ExcelProperty("申报单位")
+ private String reportUnitName;
+
+ @ExcelProperty("申报金额")
+ private Integer reportAmount;
+
+ @ExcelProperty("预算年度")
+ private Integer budgetYear;
+
+ @ExcelProperty("流程状态")
+ private String processStatusName;
+
+ @ExcelProperty("发起时间")
+ private LocalDateTime processLaunchTime;
+
+ @ExcelProperty("处理时间")
+ private LocalDateTime processHandleTime;
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeProjectListExportDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResMySubmittedExportDTO.java
similarity index 87%
rename from pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeProjectListExportDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResMySubmittedExportDTO.java
index 600eea6..ce8bd02 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeProjectListExportDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResMySubmittedExportDTO.java
@@ -1,15 +1,16 @@
package com.ningdatech.pmapi.todocenter.model.dto.res;
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
import com.alibaba.excel.annotation.ExcelProperty;
+
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
-import java.io.Serializable;
-import java.time.LocalDateTime;
-
/**
- * 待办中心待我处理项目列表导出实体
+ * 待办中心我发起的项目列表导出实体
*
* @author CMM
* @since 2023/01/19 16:42
@@ -17,7 +18,7 @@ import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor
-public class ResToBeProjectListExportDTO implements Serializable {
+public class ResMySubmittedExportDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ExcelProperty("项目名称")
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeExportDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeExportDTO.java
new file mode 100644
index 0000000..e3b83d1
--- /dev/null
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeExportDTO.java
@@ -0,0 +1,42 @@
+package com.ningdatech.pmapi.todocenter.model.dto.res;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+/**
+ * 待办中心待我处理项目列表导出实体
+ *
+ * @author CMM
+ * @since 2023/01/19 16:42
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class ResToBeExportDTO implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @ExcelProperty("项目名称")
+ private String projectName;
+
+ @ExcelProperty("申报单位")
+ private String buildUnitName;
+
+ @ExcelProperty("申报金额")
+ private Integer declareAmount;
+
+ @ExcelProperty("预算年度")
+ private Integer projectYear;
+
+ @ExcelProperty("流程状态")
+ private String processStatusName;
+
+ @ExcelProperty("发起时间")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
+ private LocalDateTime processLaunchTime;
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeProcessedDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeProcessedDTO.java
index 0df7691..88725c1 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeProcessedDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/res/ResToBeProcessedDTO.java
@@ -1,13 +1,20 @@
package com.ningdatech.pmapi.todocenter.model.dto.res;
import java.io.Serializable;
+import java.math.BigDecimal;
import java.time.LocalDateTime;
+import java.util.List;
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ningdatech.pmapi.user.entity.UserInfo;
+import com.wflow.workflow.bean.vo.ProcessInstanceVo;
import com.wflow.workflow.bean.vo.ProcessTaskVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
+import org.springframework.format.annotation.DateTimeFormat;
/**
* 待办中心-待我处理返回实体信息
@@ -18,26 +25,27 @@ import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
+@ExcelIgnoreUnannotated
public class ResToBeProcessedDTO implements Serializable {
private static final long serialVersionUID = 1L;
- @ApiModelProperty("项目ID")
- private String projectId;
+ @ApiModelProperty("流程实例编号")
+ private String instanceCode;
@ApiModelProperty("项目名称")
private String projectName;
@ApiModelProperty("申报单位ID")
- private String reportUnitId;
+ private String buildUnitId;
@ApiModelProperty("申报单位名称")
- private String reportUnitName;
+ private String buildUnitName;
@ApiModelProperty("申报金额")
- private Integer reportAmount;
+ private BigDecimal declareAmount;
@ApiModelProperty("预算年度")
- private Integer budgetYear;
+ private Integer projectYear;
@ApiModelProperty("流程状态")
private Integer processStatus;
@@ -46,8 +54,19 @@ public class ResToBeProcessedDTO implements Serializable {
private String processStatusName;
@ApiModelProperty("流程发起时间")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private LocalDateTime processLaunchTime;
+ @ApiModelProperty("流程处理时间")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
+ private LocalDateTime processHandleTime;
+
@ApiModelProperty("流程任务信息")
private ProcessTaskVo processTaskInfo;
+
+ @ApiModelProperty("流程实例信息")
+ private ProcessInstanceVo processInstanceInfo;
+
+ @ApiModelProperty("流程发起人信息")
+ private UserInfo owner;
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/zwdd/model/MessageContent.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/zwdd/model/MessageContent.java
new file mode 100644
index 0000000..167ae02
--- /dev/null
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/zwdd/model/MessageContent.java
@@ -0,0 +1,13 @@
+package com.ningdatech.pmapi.todocenter.zwdd.model;
+
+import lombok.Data;
+
+/**
+ * 消息内容
+ * @author CMM
+ * @since 2023/02/01 14:54
+ */
+@Data
+public class MessageContent {
+ private String content;
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/zwdd/model/MessageText.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/zwdd/model/MessageText.java
new file mode 100644
index 0000000..4c84252
--- /dev/null
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/zwdd/model/MessageText.java
@@ -0,0 +1,17 @@
+package com.ningdatech.pmapi.todocenter.zwdd.model;
+
+import lombok.Data;
+
+/**
+ * 文本消息
+ * @author CMM
+ * @since 2023/02/01 14:53
+ */
+@Data
+public class MessageText {
+
+ private String msgType;
+
+ private MessageContent text;
+
+}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/service/IUserInfoService.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/service/IUserInfoService.java
index caf95c4..f93880c 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/user/service/IUserInfoService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/service/IUserInfoService.java
@@ -3,6 +3,9 @@ package com.ningdatech.pmapi.user.service;
import com.ningdatech.pmapi.user.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
+import java.util.Map;
+import java.util.Set;
+
/**
*
* 用户信息表 服务类
@@ -13,4 +16,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface IUserInfoService extends IService {
+ Map getUserMapByIds(Set staterUsers);
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserInfoServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserInfoServiceImpl.java
index 602dac4..19ae598 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserInfoServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserInfoServiceImpl.java
@@ -4,8 +4,17 @@ import com.ningdatech.pmapi.user.entity.UserInfo;
import com.ningdatech.pmapi.user.mapper.UserInfoMapper;
import com.ningdatech.pmapi.user.service.IUserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.apache.catalina.User;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.stream.Collectors;
+
/**
*
* 用户信息表 服务实现类
@@ -15,6 +24,12 @@ import org.springframework.stereotype.Service;
* @since 2023-01-04
*/
@Service
+@RequiredArgsConstructor
public class UserInfoServiceImpl extends ServiceImpl implements IUserInfoService {
-
+ private final UserInfoMapper userInfoMapper;
+ @Override
+ public Map getUserMapByIds(Set staterUsers) {
+ List userInfos = userInfoMapper.selectBatchIds(staterUsers);
+ return userInfos.stream().collect(Collectors.toMap(UserInfo::getId,u -> u ));
+ }
}
diff --git a/pmapi/src/main/resources/application-dev.yml b/pmapi/src/main/resources/application-dev.yml
index 8892203..96fe00f 100644
--- a/pmapi/src/main/resources/application-dev.yml
+++ b/pmapi/src/main/resources/application-dev.yml
@@ -153,4 +153,19 @@ sa-token:
# token风格
token-style: uuid
# 是否输出操作日志
- is-log: false
\ No newline at end of file
+ is-log: false
+
+#专有钉钉
+ding:
+ #扫码
+ app-auth-key: file-manage_dingoa-zte2LbiAfIj
+ app-auth-secret: H794aFZf271QbfUr50pbBpBTlXSrWIP71q9RTR34
+ #扫码
+ app-sso-auth-key: fgdn_wjlzjkxt_hz
+ app-sso-auth-secret: dafe1e6f7d424032acb81f5c2a797a1f
+ #免登/获取信息
+ app-key: file-manage-4Mjx9358wuxjyYFjY3
+ app-secret: hE41938wqyQ5LOpc1QDRA9e7gb5YugoClWD3nY4O
+ #专有钉钉在开发管理工作台,右键查看网页源码realmId: '31141',浙政钉固定196729
+ tenantId: 31141
+ domain: openplatform.dg-work.cn
\ No newline at end of file