点击流程状态查看流程详情(平台件)

This commit is contained in:
zhn
2023-09-21 20:44:37 +08:00
parent f5eb3befc6
commit df2101cdfd
4 changed files with 60 additions and 14 deletions
@@ -562,16 +562,5 @@ public class PhoneProjectLawsInventoryEOController extends JeroController<Projec
return this.projectLawsInventoryEOService.finalizationVerify(params);
}
/**
* 点击流程状态查看流程详情(平台件)
*
* @return
*/
@AutoLog(value = "点击流程状态查看流程详情(平台件)")
@ApiOperation(value="点击流程状态查看流程详情(平台件)", notes="点击流程状态查看流程详情(平台件)")
@GetMapping(value = "/queryPlatformList")
public Result<List<ProjectLawsInventoryEO>> queryPlatformList(String lawsInventoryId,String flowFlag,String cut) {
List<ProjectLawsInventoryEO> list = projectLawsInventoryEOService.queryPlatformList(lawsInventoryId,flowFlag,cut);
return Result.OK(list);
}
}
@@ -575,4 +575,16 @@ public class ProjectLawsInventoryEOController extends JeroController<ProjectLaws
public Result<?> finalizationVerify(@RequestParam Map<String,Object> params){
return this.projectLawsInventoryEOService.finalizationVerify(params);
}
/**
* 点击流程状态查看流程详情(平台件)
*
* @return
*/
@AutoLog(value = "点击流程状态查看流程详情(平台件)")
@ApiOperation(value="点击流程状态查看流程详情(平台件)", notes="点击流程状态查看流程详情(平台件)")
@GetMapping(value = "/queryPlatformList")
public Result<List<ProjectLawsInventoryEO>> queryPlatformList(String lawsInventoryId,String flowFlag,String cut) {
List<ProjectLawsInventoryEO> list = projectLawsInventoryEOService.queryPlatformList(lawsInventoryId,flowFlag,cut);
return Result.OK(list);
}
}
@@ -0,0 +1,45 @@
package com.jero.modules.project.enums;
/**
* 任务状态枚举类
*/
public enum FlowFlagEnum {
DESIGN("设计符合性流程状态","design"),
VERIFY("验证符合性流程状态","verify"),
;
String name;
String value;
private FlowFlagEnum(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public static String getTextByValue(String value) {
FlowFlagEnum[] values = values();
for (FlowFlagEnum taskStatusEnum : values) {
if (taskStatusEnum.value.equals(value)) {
return taskStatusEnum.name;
}
}
return null;
}
}
@@ -12227,9 +12227,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOList) {
//流程状态
String flowStatus = "";
if("design".equals(flowFlag)){
if(FlowFlagEnum.DESIGN.getValue().equals(flowFlag)){//流程标识点击设计符合性流程状态跳转
flowStatus = projectLawsInventoryEO.getDesignFlowStatus();
}else{
}else if(FlowFlagEnum.VERIFY.getValue().equals(flowFlag)){//流程标识点击验证符合性流程状态跳转
flowStatus = projectLawsInventoryEO.getVerifyFlowStatus();
}
if (StringUtils.isNotEmpty(flowStatus)) {