ci: 企标计划实体类字段变更
This commit is contained in:
+50
@@ -0,0 +1,50 @@
|
|||||||
|
package com.jero.modules.activiti.process.common.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: Mzaxd
|
||||||
|
* @Date: 2023/10/12 9:37
|
||||||
|
* 流程类型
|
||||||
|
*/
|
||||||
|
|
||||||
|
public enum ProcessType {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企标立项变更
|
||||||
|
*/
|
||||||
|
ES_INIT_CHANGE("企标立项/变更计划", "1", "es-init-change"),
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
private final String name;
|
||||||
|
private final String value;
|
||||||
|
private final String processKey;
|
||||||
|
|
||||||
|
ProcessType(String name, String value, String processKey) {
|
||||||
|
this.name = name;
|
||||||
|
this.value = value;
|
||||||
|
this.processKey = processKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessTypeNameByProcessKey(String processKey) {
|
||||||
|
for (ProcessType processType : ProcessType.values()) {
|
||||||
|
if (processType.getProcessKey().equals(processKey)) {
|
||||||
|
return processType.getName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessKey() {
|
||||||
|
return processKey;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
+1
-1
@@ -73,7 +73,7 @@ public class ActFlowCommonService {
|
|||||||
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
||||||
|
|
||||||
if (task == null) {
|
if (task == null) {
|
||||||
log.error("completeProcess - task is null!!");
|
log.error("找不到对应任务");
|
||||||
throw new JeroBootException("找不到对应任务");
|
throw new JeroBootException("找不到对应任务");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+10
@@ -279,6 +279,11 @@ public class ProcessEsInitChange implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String remarks;
|
private String remarks;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上传附件
|
||||||
|
*/
|
||||||
|
private String uploadAttachment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 附件
|
* 附件
|
||||||
*/
|
*/
|
||||||
@@ -354,6 +359,11 @@ public class ProcessEsInitChange implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String authDept;
|
private String authDept;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配合单位
|
||||||
|
*/
|
||||||
|
private String cooperationUnit;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private static final long serialVersionUID = 1781238971297838971L;
|
private static final long serialVersionUID = 1781238971297838971L;
|
||||||
}
|
}
|
||||||
+4
-2
@@ -83,9 +83,9 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
|||||||
// 保存到业务流程表
|
// 保存到业务流程表
|
||||||
saveBatch(esInitChangeList);
|
saveBatch(esInitChangeList);
|
||||||
ProcessEsInitChange initChange = esInitChangeList.get(0);
|
ProcessEsInitChange initChange = esInitChangeList.get(0);
|
||||||
// TODO 根据业务需求设置流程状态
|
|
||||||
// 对数据进行其他操作
|
// 对数据进行其他操作
|
||||||
String beanName = "initChange";
|
String beanName = "initChangeService";
|
||||||
|
|
||||||
ProcessInstance processInstance = actFlowCommonService.startProcess(processDefinitionKey, beanName, initChange.getId());
|
ProcessInstance processInstance = actFlowCommonService.startProcess(processDefinitionKey, beanName, initChange.getId());
|
||||||
|
|
||||||
@@ -148,6 +148,8 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
|||||||
@Override
|
@Override
|
||||||
public void saveToDraft(List<ProcessEsInitChange> esInitChange) {
|
public void saveToDraft(List<ProcessEsInitChange> esInitChange) {
|
||||||
// TODO 保存到草稿
|
// TODO 保存到草稿
|
||||||
|
|
||||||
|
saveOrUpdateBatch(esInitChange);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-2
@@ -225,8 +225,8 @@ public class EnterpriseStandardPlan implements Serializable {
|
|||||||
@ApiModelProperty(value = "备注")
|
@ApiModelProperty(value = "备注")
|
||||||
private String remarks;
|
private String remarks;
|
||||||
|
|
||||||
@ApiModelProperty(value = "附件")
|
@ApiModelProperty(value = "上传附件")
|
||||||
private String attachment;
|
private String uploadAttachment;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value = "附件文件名")
|
@ApiModelProperty(value = "附件文件名")
|
||||||
@@ -238,4 +238,7 @@ public class EnterpriseStandardPlan implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String qualityFlag_dictText;
|
private String qualityFlag_dictText;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "配合单位")
|
||||||
|
private String cooperationUnit;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -54,8 +54,9 @@
|
|||||||
<result property="standardLeadingNecessity" column="standard_leading_necessity" jdbcType="VARCHAR"/>
|
<result property="standardLeadingNecessity" column="standard_leading_necessity" jdbcType="VARCHAR"/>
|
||||||
<result property="projectExpectedEffects" column="project_expected_effects" jdbcType="VARCHAR"/>
|
<result property="projectExpectedEffects" column="project_expected_effects" jdbcType="VARCHAR"/>
|
||||||
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
||||||
<result property="attachment" column="attachment" jdbcType="VARCHAR"/>
|
<result property="uploadAttachment" column="upload_attachment" jdbcType="VARCHAR"/>
|
||||||
<result property="qualityFlag" column="quality_flag" jdbcType="VARCHAR"/>
|
<result property="qualityFlag" column="quality_flag" jdbcType="VARCHAR"/>
|
||||||
|
<result property="cooperationUnit" column="cooperation_unit" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
@@ -75,7 +76,7 @@
|
|||||||
review_date,approval_date,release_date,
|
review_date,approval_date,release_date,
|
||||||
change_status,project_background,similar_na_standards_analysis,
|
change_status,project_background,similar_na_standards_analysis,
|
||||||
similar_en_standards_analysis,standard_leading_necessity,project_expected_effects,
|
similar_en_standards_analysis,standard_leading_necessity,project_expected_effects,
|
||||||
remarks,attachment,qualityFlag
|
remarks,attachment,qualityFlag,cooperationUnit
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="page" resultType="com.jero.modules.laws.enterprise.entity.vo.EnterpriseStandardPlanVo">
|
<select id="page" resultType="com.jero.modules.laws.enterprise.entity.vo.EnterpriseStandardPlanVo">
|
||||||
@@ -217,7 +218,6 @@
|
|||||||
p.compilation_description,
|
p.compilation_description,
|
||||||
o1.file_name AS compilationFileName,
|
o1.file_name AS compilationFileName,
|
||||||
p.component_name,
|
p.component_name,
|
||||||
p.applicable_profession,
|
|
||||||
u1.username as mainDraftingUser,
|
u1.username as mainDraftingUser,
|
||||||
d.depart_name as mainDraftingUnit,
|
d.depart_name as mainDraftingUnit,
|
||||||
u2.username as mainDraftingUnitResponsiblePerson,
|
u2.username as mainDraftingUnitResponsiblePerson,
|
||||||
@@ -236,7 +236,7 @@
|
|||||||
p.standard_leading_necessity,
|
p.standard_leading_necessity,
|
||||||
p.project_expected_effects,
|
p.project_expected_effects,
|
||||||
p.remarks,
|
p.remarks,
|
||||||
p.attachment,
|
p.upload_attachment,
|
||||||
o2.file_name AS attachmentFileName,
|
o2.file_name AS attachmentFileName,
|
||||||
p.quality_flag
|
p.quality_flag
|
||||||
FROM
|
FROM
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
LEFT JOIN sys_user AS u3 ON u3.id = p.standard_promoter
|
LEFT JOIN sys_user AS u3 ON u3.id = p.standard_promoter
|
||||||
LEFT JOIN sys_depart AS d ON d.id = p.main_drafting_unit
|
LEFT JOIN sys_depart AS d ON d.id = p.main_drafting_unit
|
||||||
LEFt JOIN oss_file AS o1 ON o1.id = p.compilation_description
|
LEFt JOIN oss_file AS o1 ON o1.id = p.compilation_description
|
||||||
LEFt JOIN oss_file AS o2 ON o2.id = p.attachment
|
LEFt JOIN oss_file AS o2 ON o2.id = p.upload_attachment
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
(SELECT
|
(SELECT
|
||||||
ad.plan_id as id,
|
ad.plan_id as id,
|
||||||
|
|||||||
Reference in New Issue
Block a user