Commit 52d141d5 authored by wangqiang's avatar wangqiang

修改标记todo的内容

parent 6eb97009
...@@ -30,34 +30,39 @@ import com.yonde.dex.basedata.entity.vo.IdOnlyVO; ...@@ -30,34 +30,39 @@ import com.yonde.dex.basedata.entity.vo.IdOnlyVO;
import cn.hutool.core.convert.Convert; import cn.hutool.core.convert.Convert;
import cn.hutool.core.lang.TypeReference; import cn.hutool.core.lang.TypeReference;
import com.yonde.dex.basedata.entity.data.VersionRelationType; import com.yonde.dex.basedata.entity.data.VersionRelationType;
import com.yonde.dex.basedata.entity.vo.DxIdVOEmbeddable;
import com.yonde.dex.secretcode.plugin.common.entity.DxSecretVOHolder;
import com.yonde.dex.dfs.objfilelink.plugin.common.entity.DxObjFileLinkVOHolder;
import com.yonde.dex.version.plugin.common.entity.DxIterationVOEmbeddable;
import com.yonde.dcs.plan.common.vo.ExtPlanDocLinkVO;
import com.yonde.dex.basedata.entity.users.DxUserVO;
import com.yonde.dex.lcycle.plugin.common.entity.DxLifecycleManageBaseVOHolder; import com.yonde.dex.lcycle.plugin.common.entity.DxLifecycleManageBaseVOHolder;
import com.yonde.dex.lcycle.plugin.common.entity.DxLifecycleManageBaseVOEmbeddable; import com.yonde.dex.lcycle.plugin.common.entity.DxLifecycleManageBaseVOEmbeddable;
import com.yonde.dex.basedata.entity.vo.DxIdVOEmbeddable;
import com.yonde.dex.tree.plugin.common.entity.DxTreeContextVOEmbeddable; import com.yonde.dex.tree.plugin.common.entity.DxTreeContextVOEmbeddable;
import com.yonde.dex.basedata.entity.vo.IdVO; import com.yonde.dex.basedata.entity.vo.IdVO;
import com.yonde.dex.dfs.objfilelink.plugin.common.entity.DxObjFileLinkVOHolder; import com.yonde.dex.secretcode.plugin.common.entity.DxSecretVOEmbeddable;
import com.yonde.dex.tree.plugin.common.entity.DxTreeContextVOHolder; import com.yonde.dex.tree.plugin.common.entity.DxTreeContextVOHolder;
import com.yonde.dex.version.plugin.common.entity.DxIterationVOEmbeddable; import com.yonde.dcs.plan.common.vo.ExtPlanReplyLinkVO;
import com.yonde.dex.dfs.objfilelink.plugin.common.entity.DxObjFileLinkVOEmbeddable; import com.yonde.dex.dfs.objfilelink.plugin.common.entity.DxObjFileLinkVOEmbeddable;
import com.yonde.dex.version.plugin.common.entity.DxIterationVOHolder; import com.yonde.dex.version.plugin.common.entity.DxIterationVOHolder;
import com.yonde.dex.basedata.entity.users.DxUserVO;
/** /**
* @description: ExtPlan-VO * @description: ExtPlan-VO
* @author: dexadmin * @author: dexadmin
* @version: V * @version: V
* @date: 2024-7-26 9:34:06 * @date: 2024-8-1 18:16:27
**/ **/
@JsonTypeInfo( use = JsonTypeInfo.Id.CLASS, property = "dxClassname", visible = true, defaultImpl = ExtPlanVO.class) @JsonTypeInfo( use = JsonTypeInfo.Id.CLASS, property = "dxClassname", visible = true, defaultImpl = ExtPlanVO.class)
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@ToString(callSuper = true) @ToString(callSuper = true)
public class ExtPlanVO extends IdOnlyVO implements IdVO ,DxTreeContextVOHolder<ExtPlanVO> ,DxLifecycleManageBaseVOHolder ,DxIterationVOHolder<ExtPlanVO> ,DxObjFileLinkVOHolder{ public class ExtPlanVO extends IdOnlyVO implements IdVO ,DxTreeContextVOHolder<ExtPlanVO> ,DxLifecycleManageBaseVOHolder ,DxIterationVOHolder<ExtPlanVO> ,DxObjFileLinkVOHolder ,DxSecretVOHolder{
public static final String DX_OBJ_FILE_LINK_EMBEDDABLE_PROP_NAME = "dxObjFileLinkEmbeddable"; public static final String DX_OBJ_FILE_LINK_EMBEDDABLE_PROP_NAME = "dxObjFileLinkEmbeddable";
public static final String DX_TREE_CONTEXT_EMBEDDABLE_PROP_NAME = "dxTreeContextEmbeddable"; public static final String DX_TREE_CONTEXT_EMBEDDABLE_PROP_NAME = "dxTreeContextEmbeddable";
public static final String DX_LIFECYCLE_MANAGE_BASE_EMBEDDABLE_PROP_NAME = "dxLifecycleManageBaseEmbeddable"; public static final String DX_LIFECYCLE_MANAGE_BASE_EMBEDDABLE_PROP_NAME = "dxLifecycleManageBaseEmbeddable";
public static final String DX_ID_EMBEDDABLE_PROP_NAME = "dxIdEmbeddable"; public static final String DX_ID_EMBEDDABLE_PROP_NAME = "dxIdEmbeddable";
public static final String DX_SECRET_EMBEDDABLE_PROP_NAME = "dxSecretEmbeddable";
public static final String DX_ITERATION_EMBEDDABLE_PROP_NAME = "dxIterationEmbeddable"; public static final String DX_ITERATION_EMBEDDABLE_PROP_NAME = "dxIterationEmbeddable";
public static final String ACTUAL_COMPLATE_TIME_PROP_NAME = "actualComplateTime"; public static final String ACTUAL_COMPLATE_TIME_PROP_NAME = "actualComplateTime";
public static final String ACTUAL_START_TIME_PROP_NAME = "actualStartTime"; public static final String ACTUAL_START_TIME_PROP_NAME = "actualStartTime";
...@@ -67,6 +72,8 @@ public class ExtPlanVO extends IdOnlyVO implements IdVO ,DxTreeContextVOHolder<E ...@@ -67,6 +72,8 @@ public class ExtPlanVO extends IdOnlyVO implements IdVO ,DxTreeContextVOHolder<E
public static final String COMPLETION_PROP_NAME = "completion"; public static final String COMPLETION_PROP_NAME = "completion";
public static final String CONSTRUCT_PERIOD_PROP_NAME = "constructPeriod"; public static final String CONSTRUCT_PERIOD_PROP_NAME = "constructPeriod";
public static final String CONTRACT_NO_PROP_NAME = "contractNo"; public static final String CONTRACT_NO_PROP_NAME = "contractNo";
public static final String EXT_PLAN_DOC_LINKS_PROP_NAME = "extPlanDocLinks";
public static final String EXT_PLAN_REPLY_LINKS_PROP_NAME = "extPlanReplyLinks";
public static final String FEEDBACK_DESCRIPT_PROP_NAME = "feedbackDescript"; public static final String FEEDBACK_DESCRIPT_PROP_NAME = "feedbackDescript";
public static final String FEEDBACK_TYPE_PROP_NAME = "feedbackType"; public static final String FEEDBACK_TYPE_PROP_NAME = "feedbackType";
public static final String FILE_CODE_PROP_NAME = "fileCode"; public static final String FILE_CODE_PROP_NAME = "fileCode";
...@@ -90,191 +97,205 @@ public class ExtPlanVO extends IdOnlyVO implements IdVO ,DxTreeContextVOHolder<E ...@@ -90,191 +97,205 @@ public class ExtPlanVO extends IdOnlyVO implements IdVO ,DxTreeContextVOHolder<E
public static final String VERIFIER_PROP_NAME = "verifier"; public static final String VERIFIER_PROP_NAME = "verifier";
/** /**
* 扩展VO属性 * 扩展VO属性
*/ */
@DexEmbedded() @DexEmbedded()
@JsonIgnore @JsonIgnore
private DxObjFileLinkVOEmbeddable dxObjFileLinkEmbeddable; private DxObjFileLinkVOEmbeddable dxObjFileLinkEmbeddable;
/** /**
* 扩展VO属性 * 扩展VO属性
*/ */
@DexEmbedded() @DexEmbedded()
@JsonIgnore @JsonIgnore
private DxTreeContextVOEmbeddable<ExtPlanVO> dxTreeContextEmbeddable; private DxTreeContextVOEmbeddable<ExtPlanVO> dxTreeContextEmbeddable;
/** /**
* 扩展VO属性 * 扩展VO属性
*/ */
@DexEmbedded() @DexEmbedded()
@JsonIgnore @JsonIgnore
private DxLifecycleManageBaseVOEmbeddable dxLifecycleManageBaseEmbeddable; private DxLifecycleManageBaseVOEmbeddable dxLifecycleManageBaseEmbeddable;
/** /**
* dao扩展对象 * dao扩展对象
*/ */
@DexEmbedded() @DexEmbedded()
@JsonIgnore @JsonIgnore
private DxIdVOEmbeddable dxIdEmbeddable; private DxIdVOEmbeddable dxIdEmbeddable;
/** /**
* 扩展VO属性 * 扩展VO属性
*/ */
@DexEmbedded() @DexEmbedded()
@JsonIgnore @JsonIgnore
private DxIterationVOEmbeddable<ExtPlanVO> dxIterationEmbeddable; private DxSecretVOEmbeddable dxSecretEmbeddable;
private List<ExtPlanDocLinkVO> extPlanDocLinkVO; /**
* 扩展VO属性
*/
@DexEmbedded()
@JsonIgnore
private DxIterationVOEmbeddable<ExtPlanVO> dxIterationEmbeddable;
/** /**
* 实际完成时间 * 实际完成时间
*/ */
private LocalDateTime actualComplateTime; private LocalDateTime actualComplateTime;
/** /**
* 实际开始时间 * 实际开始时间
*/ */
private LocalDateTime actualStartTime; private LocalDateTime actualStartTime;
/** /**
* 批准者 * 批准者
*/ */
private String approver; private String approver;
/** /**
* 业务计划类型 * 业务计划类型
*/ */
private String businessPlanType; private String businessPlanType;
/** /**
* 完成时间 * 完成时间
*/ */
private LocalDateTime completeTime; private LocalDateTime completeTime;
/** /**
* 完成情况 * 完成情况
*/ */
private String completion; private String completion;
/** /**
* 工期 * 工期
*/ */
private String constructPeriod; private String constructPeriod;
/** /**
* 合同编号 * 合同编号
*/ */
private String contractNo; private String contractNo;
/** /**
* 反馈情况说明 * 计划文档关系集合
*/ */
@RelationProperty(refProperty = "source")
@VersionProperty(curVersion = VersionRelationType.VERSION, refVersion = VersionRelationType.NONE)
private List<ExtPlanDocLinkVO> extPlanDocLinks;
/**
* ExtPlanReplyLink集合
*/
@RelationProperty(refProperty = "source")
@VersionProperty(curVersion = VersionRelationType.VERSION, refVersion = VersionRelationType.NONE)
private List<ExtPlanReplyLinkVO> extPlanReplyLinks;
/**
* 反馈情况说明
*/
private String feedbackDescript; private String feedbackDescript;
/** /**
* 反馈类型 * 反馈类型
*/ */
private String feedbackType; private String feedbackType;
/** /**
* 文件代号 * 文件代号
*/ */
private String fileCode; private String fileCode;
/** /**
* 文件名称 * 文件名称
*/ */
private String fileName; private String fileName;
/** /**
* 文件编号 * 文件编号
*/ */
private String fileNumber; private String fileNumber;
/** /**
* 文件分类 * 文件分类
*/ */
private String fileType; private String fileType;
/** /**
* 是否产生计划任务 * 是否产生计划任务
*/ */
private Boolean hasPlanTasks; private Boolean hasPlanTasks;
/** /**
* 操作 * 操作
*/ */
private String operate; private String operate;
/** /**
* 阶段状态 * 阶段状态
*/ */
private String phaseState; private String phaseState;
/** /**
* 计划执行人 * 计划执行人
*/ */
private String planExecutor; private String planExecutor;
/** /**
* 计划级别 * 计划级别
*/ */
private String planLevel; private String planLevel;
/** /**
* 项目代号 * 项目代号
*/ */
private String projectCode; private String projectCode;
/** /**
* 审核者 * 审核者
*/ */
private String review; private String review;
/** /**
* 开始时间 * 开始时间
*/ */
private LocalDateTime startTime; private LocalDateTime startTime;
/** /**
* 父级计划编号 * 父级计划编号
*/ */
private String superPlanCode; private String superPlanCode;
/** /**
* 管理信息系统编码 * 管理信息系统编码
*/ */
private String systemCode; private String systemCode;
/** /**
* 任务名称 * 任务名称
*/ */
private String taskName; private String taskName;
/** /**
* 任务编号 * 任务编号
*/ */
private String taskNumber; private String taskNumber;
/** /**
* 任务完成状态 * 任务完成状态
*/ */
private String taskState; private String taskState;
/** /**
* 未完成情况 * 未完成情况
*/ */
private String unfinishSituat; private String unfinishSituat;
/** /**
* 审定者 * 审定者
*/
private String verifier;
/**
* 密级
*/ */
private String secretCode; private String verifier;
} }
......
...@@ -472,11 +472,8 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V ...@@ -472,11 +472,8 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
switch (extPlanVO.getState()) { switch (extPlanVO.getState()) {
//未完成 //未完成
case Constants.UNFINISHED: case Constants.UNFINISHED:
//todo wq: 2.0是使用extPlanVO.getSourcePlanDocLink,但是在4.1未找到,先手动在VO中添加该属性。先将下面2行代码注释 if ("交付文件类".equals(extPlanVO.getFeedbackType()) && !CollectionUtils.isEmpty(extPlanVO.getExtPlanDocLinks())) {
// if ("交付文件类".equals(extPlanVO.getFeedbackType()) && !CollectionUtils.isEmpty(extPlanVO.getSourcePlanDocLink())) { for (ExtPlanDocLinkVO planDocLink : extPlanVO.getExtPlanDocLinks()) {
// for (PlanDocLinkVO planDocLink : extPlanVO.getSourcePlanDocLink()) {
if ("交付文件类".equals(extPlanVO.getFeedbackType()) && !CollectionUtils.isEmpty(extPlanVO.getExtPlanDocLinkVO())) {
for (ExtPlanDocLinkVO planDocLink : extPlanVO.getExtPlanDocLinkVO()) {
if (!ObjectUtils.isEmpty(planDocLink.getTarget())) { if (!ObjectUtils.isEmpty(planDocLink.getTarget())) {
if (!extPlanVO.getNumber().equals(excelVO.getNumber())) { if (!extPlanVO.getNumber().equals(excelVO.getNumber())) {
stringBuffer.append(String.format("第%s行的计划编号不允许修改", i + 1) + "</br>"); stringBuffer.append(String.format("第%s行的计划编号不允许修改", i + 1) + "</br>");
......
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