feat: 企标制修订流程优化
This commit is contained in:
+3
-8
@@ -1,9 +1,12 @@
|
||||
package com.jero.modules.activiti.process.esInitChange.entity.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author: Mzaxd
|
||||
* @Date: 2023/10/13 14:17
|
||||
*/
|
||||
@Getter
|
||||
public enum ESPProjectStatus {
|
||||
|
||||
NOT_STARTED("未开始", "1"),
|
||||
@@ -23,14 +26,6 @@ public enum ESPProjectStatus {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getValueByName(String name) {
|
||||
for (ESPProjectStatus status : ESPProjectStatus.values()) {
|
||||
if (status.getName().equals(name)) {
|
||||
|
||||
+3
-4
@@ -234,8 +234,7 @@ public class EsRevisionServiceImpl extends ServiceImpl<EsRevisionMapper, Process
|
||||
throw new JeroBootException(ResultCommon.INVALID_ESP);
|
||||
}
|
||||
// 设置状态为运行中
|
||||
esp.setProjectStatus(ESPProjectStatus.IN_PROGRESS.getValue());
|
||||
espService.updateById(esp);
|
||||
espService.changeProjectStatus(espId, ESPProjectStatus.IN_PROGRESS);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -534,8 +533,8 @@ public class EsRevisionServiceImpl extends ServiceImpl<EsRevisionMapper, Process
|
||||
List<String> adviceUserList = Arrays.asList(workGroup.split(","));
|
||||
// 如果人员超过600则提示
|
||||
if (adviceUserList.size() > 600) {
|
||||
log.error("当前提交部门人员超过600人");
|
||||
throw new JeroBootException("当前提交部门人员超过600人,请重新选择!");
|
||||
log.error("当前提交人员超过600人");
|
||||
throw new JeroBootException("当前提交人员超过600人,请重新选择!");
|
||||
}
|
||||
runtimeService.setVariableLocal(executionId, "adviceUserList", adviceUserList);
|
||||
runtimeService.setVariable(executionId, executionId + "-adviceDeadline", adviceDeadline);
|
||||
|
||||
+10
-2
@@ -1,10 +1,11 @@
|
||||
package com.jero.modules.laws.enterprise.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.activiti.process.esInitChange.entity.enums.ESPProjectStatus;
|
||||
import com.jero.modules.laws.enterprise.entity.EnterpriseStandardPlan;
|
||||
import com.jero.modules.laws.enterprise.entity.dto.ESPlanQueryDTO;
|
||||
import com.jero.modules.laws.enterprise.entity.vo.EnterpriseStandardPlanVo;
|
||||
import com.jero.modules.laws.enterprise.entity.EnterpriseStandardPlan;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@@ -63,4 +64,11 @@ public interface EnterpriseStandardPlanService extends IService<EnterpriseStanda
|
||||
* 年度制修订计划导入
|
||||
*/
|
||||
void importAnnualRevisionPlan(MultipartFile file, HttpServletResponse response) throws IOException;
|
||||
|
||||
/**
|
||||
* 修改企标计划项目状态
|
||||
* @param planId
|
||||
* @param status
|
||||
*/
|
||||
void changeProjectStatus(String planId, ESPProjectStatus status);
|
||||
}
|
||||
|
||||
+7
@@ -271,6 +271,13 @@ public class EnterpriseStandardPlanServiceImpl extends ServiceImpl<EnterpriseSta
|
||||
log.info("年度制修订计划表数据导入结束");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void changeProjectStatus(String planId, ESPProjectStatus status) {
|
||||
EnterpriseStandardPlan plan = this.getById(planId);
|
||||
plan.setProjectStatus(status.getValue());
|
||||
this.updateById(plan);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user