认证清单-获取流程状态列表接口。
This commit is contained in:
+7
@@ -200,4 +200,11 @@ public class ProjectCertificationInventoryEOController extends JeroController<Pr
|
||||
public Result<List<SysRole>> getRoleByUserId(@RequestParam Map<String,Object> params) {
|
||||
return this.projectCertificationInventoryEOService.getRoleByUserId(params);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-获取流程状态列表")
|
||||
@ApiOperation(value="项目库-认证清单表-获取流程状态列表", notes="项目库-认证清单表-获取流程状态列表")
|
||||
@GetMapping(value = "/getFlowStatusList")
|
||||
public Result<?> getFlowStatusList(@RequestParam("cut") String cut) {
|
||||
return this.projectCertificationInventoryEOService.getFlowStatusList(cut);
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -102,4 +102,6 @@ public interface IProjectCertificationInventoryEOService extends IService<Projec
|
||||
void addProcessInfoDetailEO(List<ProcessInfoDetailEO> processInfoDetailEOList, ProcessInfoEO processInfoEO);
|
||||
|
||||
Result<List<SysRole>> getRoleByUserId(Map<String, Object> params);
|
||||
|
||||
Result<?> getFlowStatusList(String cut);
|
||||
}
|
||||
|
||||
+17
@@ -528,4 +528,21 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<?> getFlowStatusList(String cut) {
|
||||
List<Map<String,Object>> result = new ArrayList<>();
|
||||
CertificationInventoryFlowStatusEnum[] values = CertificationInventoryFlowStatusEnum.values();
|
||||
for (CertificationInventoryFlowStatusEnum value : values) {
|
||||
Map<String,Object> flowStatusMap = new HashMap<>();
|
||||
String name = value.getCnName();
|
||||
if(StringUtils.equals(cut,CutEnum.EN.getValue())){
|
||||
name = value.getEnName();
|
||||
}
|
||||
flowStatusMap.put("name",name);
|
||||
flowStatusMap.put("value",value.getValue());
|
||||
result.add(flowStatusMap);
|
||||
}
|
||||
return Result.OK(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user