Merge branch 'apps_dev_ydq_portal_person' into apps_dev
This commit is contained in:
		
						commit
						e14fd572be
					
				| @ -0,0 +1,14 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.constant; | ||||
| 
 | ||||
| import com.actionsoft.sdk.local.SDK; | ||||
| 
 | ||||
| /** | ||||
|  * @author wym | ||||
|  * @date 2023-04-17 11:00 | ||||
|  * @description | ||||
|  */ | ||||
| public class Constants { | ||||
|     public static final String APP_ID = "com.awspaas.user.apps.nqms.portal.view.person"; | ||||
| 
 | ||||
|     public static final String PROCESS_GROUP_ID = "obj_893ec85d8219468bb6df6a19fab4f7c9"; | ||||
| } | ||||
| @ -0,0 +1,37 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.constant; | ||||
| 
 | ||||
| /** | ||||
|  * 建模分类 | ||||
|  */ | ||||
| public enum PalCategoryEnum { | ||||
|     //资产文件类型 | ||||
|     EPC("EPC", "process.epc"),//过程链图 | ||||
|     FLOWCHART("FLOWCHART", "process.flowchart"),//泳道图 | ||||
|     FORM("FORM", "data.form"),//表单图 | ||||
|     POLICY("POLICY", "control.policy"); | ||||
| 
 | ||||
|     public String key; | ||||
|     public String value; | ||||
| 
 | ||||
|     PalCategoryEnum(String key, String value) { | ||||
|         this.key = key; | ||||
|         this.value = value; | ||||
|     } | ||||
| 
 | ||||
|     public String getKey() { | ||||
|         return key; | ||||
|     } | ||||
| 
 | ||||
|     public void setKey(String key) { | ||||
|         this.key = key; | ||||
|     } | ||||
| 
 | ||||
|     public String getValue() { | ||||
|         return value; | ||||
|     } | ||||
| 
 | ||||
|     public void setValue(String value) { | ||||
|         this.value = value; | ||||
|     } | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,115 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.controller; | ||||
| 
 | ||||
| import com.actionsoft.bpms.commons.htmlframework.HtmlPageTemplate; | ||||
| import com.actionsoft.bpms.server.UserContext; | ||||
| import com.actionsoft.bpms.server.bind.annotation.Controller; | ||||
| import com.actionsoft.bpms.server.bind.annotation.Mapping; | ||||
| import com.actionsoft.sdk.local.SDK; | ||||
| import com.alibaba.fastjson.JSON; | ||||
| import com.awspaas.user.apps.nqms.portal.view.person.service.PersonService; | ||||
| 
 | ||||
| import java.util.HashMap; | ||||
| 
 | ||||
| /** | ||||
|  * @author wym | ||||
|  * @date 2023-04-25 15:22 | ||||
|  * @description | ||||
|  */ | ||||
| @Controller | ||||
| public class PersonController { | ||||
|     /** | ||||
|      * 页面入口 | ||||
|      * | ||||
|      * @param ux | ||||
|      * @return | ||||
|      */ | ||||
|     @Mapping("com.awspaas.user.apps.nqms.portal.view.person_toPage") | ||||
|     public String toHomePage(UserContext ux) { | ||||
|         HashMap<String, Object> macroLibraries = new HashMap<>(); | ||||
|         macroLibraries.put("sid", ux.getSessionId()); | ||||
|         macroLibraries.put("uid", ux.getUID()); | ||||
|         macroLibraries.put("settingParam", JSON.toJSON(macroLibraries)); | ||||
|         return HtmlPageTemplate.merge("com.awspaas.user.apps.nqms.portal.view.person", "main.html", macroLibraries); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 当前登陆人信息 | ||||
|      * | ||||
|      * @return | ||||
|      */ | ||||
|     @Mapping("com.awspaas.user.apps.nqms.portal.view.person_userInfo") | ||||
|     public String getUserInfo(UserContext ux) { | ||||
|         SDK.getLogAPI().consoleInfo("接口:[com.awspaas.user.apps.nqms.portal.view.person_userInfo]" + | ||||
|                 " 查询人:" + ux.getUID()); | ||||
|         return PersonService.getInstance().getUserInfo(ux); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 相关要素 | ||||
|      * | ||||
|      * @param ux | ||||
|      * @return | ||||
|      */ | ||||
|     @Mapping("com.awspaas.user.apps.nqms.portal.view.person_initMyFiles") | ||||
|     public String getMyFiles(UserContext ux) { | ||||
|         SDK.getLogAPI().consoleInfo("接口:[com.awspaas.user.apps.nqms.portal.view.person_initMyFiles]" + | ||||
|                 " 查询人:" + ux.getUID()); | ||||
|         return PersonService.getInstance().getMyFilesData(ux); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 获取流程中心数据 | ||||
|      * | ||||
|      * @param ux | ||||
|      * @param type | ||||
|      * @return | ||||
|      */ | ||||
|     @Mapping("com.awspaas.user.apps.nqms.portal.view.person_workbench") | ||||
|     public String getWorkbenchData(UserContext ux, String type, int page, int size) { | ||||
|         SDK.getLogAPI().consoleInfo("接口:[com.awspaas.user.apps.nqms.portal.view.person_workbench]" + | ||||
|                 " 查询人:" + ux.getUID() + ",查询条件为 type:" + type + ",page:" + page + ",size:" + size); | ||||
|         return PersonService.getInstance().getWorkbench(ux, type, page, size); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 获取待阅、已阅数据 | ||||
|      * | ||||
|      * @param ux | ||||
|      * @param type | ||||
|      * @return | ||||
|      */ | ||||
|     @Mapping("com.awspaas.user.apps.nqms.portal.view.person_getReadPage") | ||||
|     public String getReadPage(UserContext ux, String type, int page, int size) { | ||||
|         SDK.getLogAPI().consoleInfo("接口:[com.awspaas.user.apps.nqms.portal.view.person_getReadPage]" + | ||||
|                 " 查询人:" + ux.getUID() + ",查询条件为 type:" + type); | ||||
|         return PersonService.getInstance().getReadPage(ux, type, page, size); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 获取iframe信息 | ||||
|      * | ||||
|      * @param ux 用户上下文 | ||||
|      * @return iframe信息 | ||||
|      */ | ||||
|     @Mapping("com.awspaas.user.apps.nqms.portal.view.person_iframe_msg") | ||||
|     public String getIframeMsg(UserContext ux) { | ||||
|         SDK.getLogAPI().consoleInfo("接口:[com.awspaas.user.apps.nqms.portal.view.person_iframe_msg]" + | ||||
|                 " 查询人:" + ux.getUID()); | ||||
|         return PersonService.getInstance().getIframeMsg(ux); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 查询各类文件 | ||||
|      * | ||||
|      * @param ux | ||||
|      * @return | ||||
|      */ | ||||
|     @Mapping("com.awspaas.user.apps.nqms.portal.view.person_queryMyFilesByType") | ||||
| 
 | ||||
|     public String getMyFilesByType(UserContext ux, String type, String queryParams, int page, int size) { | ||||
|         SDK.getLogAPI().consoleInfo("接口:[com.awspaas.user.apps.nqms.portal.view.person_queryMyFilesByType]" + | ||||
|                 " 查询人:" + ux.getUID() + ",查询条件为 type:" + type + ",page:" + page + ",size:" + size + "queryParams" + queryParams); | ||||
| 
 | ||||
|         return PersonService.getInstance().getMyFilesByType(ux, type, queryParams, page, size); | ||||
|     } | ||||
| } | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -0,0 +1,223 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.vo; | ||||
| 
 | ||||
| import com.actionsoft.bpms.bo.engine.BO; | ||||
| 
 | ||||
| /** | ||||
|  * Created with IntelliJ IDEA. | ||||
|  * | ||||
|  * @Author: yuandongqiang | ||||
|  * @Date: 2025/9/5 | ||||
|  * @Description: | ||||
|  */ | ||||
| public class ActivitiesVO { | ||||
|     private String id; | ||||
|     /** | ||||
|      * 节点ID | ||||
|      */ | ||||
|     private String nodeId; | ||||
|     /** | ||||
|      * 节点名称 | ||||
|      */ | ||||
|     private String nodeName; | ||||
|     /** | ||||
|      * 节点标题 | ||||
|      */ | ||||
|     private String nodeTitle; | ||||
|     /** | ||||
|      * 节点类型 | ||||
|      */ | ||||
|     private String nodeType; | ||||
|     /** | ||||
|      * 文件ID | ||||
|      */ | ||||
|     private String plId; | ||||
|     /** | ||||
|      * 文件名称 | ||||
|      */ | ||||
|     private String plName; | ||||
|     /** | ||||
|      * 文件类型 | ||||
|      */ | ||||
|     private String nodeCategory; | ||||
|     /** | ||||
|      * 信息系统 | ||||
|      */ | ||||
|     private String itsysval; | ||||
|     /** | ||||
|      * 活动序号 | ||||
|      */ | ||||
|     private String activityNumber; | ||||
|     /** | ||||
|      * 活动描述 | ||||
|      */ | ||||
|     private String activityDesc; | ||||
|     /** | ||||
|      * 角色(角色包含岗位) | ||||
|      */ | ||||
|     private String role; | ||||
|     /** | ||||
|      * 角色名称(角色岗位文本) | ||||
|      */ | ||||
|     private String roleName; | ||||
|     /** | ||||
|      * 岗位 | ||||
|      */ | ||||
|     private String post; | ||||
|     /** | ||||
|      * 岗位名称 | ||||
|      */ | ||||
|     private String postName; | ||||
|     /** | ||||
|      * 最后修改时间 | ||||
|      */ | ||||
|     private String modifyDateTime; | ||||
| 
 | ||||
|     public String getId() { | ||||
|         return id; | ||||
|     } | ||||
| 
 | ||||
|     public void setId(String id) { | ||||
|         this.id = id; | ||||
|     } | ||||
| 
 | ||||
|     public String getNodeId() { | ||||
|         return nodeId; | ||||
|     } | ||||
| 
 | ||||
|     public void setNodeId(String nodeId) { | ||||
|         this.nodeId = nodeId; | ||||
|     } | ||||
| 
 | ||||
|     public String getNodeName() { | ||||
|         return nodeName; | ||||
|     } | ||||
| 
 | ||||
|     public void setNodeName(String nodeName) { | ||||
|         this.nodeName = nodeName; | ||||
|     } | ||||
| 
 | ||||
|     public String getNodeTitle() { | ||||
|         return nodeTitle; | ||||
|     } | ||||
| 
 | ||||
|     public void setNodeTitle(String nodeTitle) { | ||||
|         this.nodeTitle = nodeTitle; | ||||
|     } | ||||
| 
 | ||||
|     public String getNodeType() { | ||||
|         return nodeType; | ||||
|     } | ||||
| 
 | ||||
|     public void setNodeType(String nodeType) { | ||||
|         this.nodeType = nodeType; | ||||
|     } | ||||
| 
 | ||||
|     public String getPlId() { | ||||
|         return plId; | ||||
|     } | ||||
| 
 | ||||
|     public void setPlId(String plId) { | ||||
|         this.plId = plId; | ||||
|     } | ||||
| 
 | ||||
|     public String getPlName() { | ||||
|         return plName; | ||||
|     } | ||||
| 
 | ||||
|     public void setPlName(String plName) { | ||||
|         this.plName = plName; | ||||
|     } | ||||
| 
 | ||||
|     public String getNodeCategory() { | ||||
|         return nodeCategory; | ||||
|     } | ||||
| 
 | ||||
|     public void setNodeCategory(String nodeCategory) { | ||||
|         this.nodeCategory = nodeCategory; | ||||
|     } | ||||
| 
 | ||||
|     public String getItsysval() { | ||||
|         return itsysval; | ||||
|     } | ||||
| 
 | ||||
|     public void setItsysval(String itsysval) { | ||||
|         this.itsysval = itsysval; | ||||
|     } | ||||
| 
 | ||||
|     public String getActivityNumber() { | ||||
|         return activityNumber; | ||||
|     } | ||||
| 
 | ||||
|     public void setActivityNumber(String activityNumber) { | ||||
|         this.activityNumber = activityNumber; | ||||
|     } | ||||
| 
 | ||||
|     public String getActivityDesc() { | ||||
|         return activityDesc; | ||||
|     } | ||||
| 
 | ||||
|     public void setActivityDesc(String activityDesc) { | ||||
|         this.activityDesc = activityDesc; | ||||
|     } | ||||
| 
 | ||||
|     public String getRole() { | ||||
|         return role; | ||||
|     } | ||||
| 
 | ||||
|     public void setRole(String role) { | ||||
|         this.role = role; | ||||
|     } | ||||
| 
 | ||||
|     public String getRoleName() { | ||||
|         return roleName; | ||||
|     } | ||||
| 
 | ||||
|     public void setRoleName(String roleName) { | ||||
|         this.roleName = roleName; | ||||
|     } | ||||
| 
 | ||||
|     public String getPost() { | ||||
|         return post; | ||||
|     } | ||||
| 
 | ||||
|     public void setPost(String post) { | ||||
|         this.post = post; | ||||
|     } | ||||
| 
 | ||||
|     public String getPostName() { | ||||
|         return postName; | ||||
|     } | ||||
| 
 | ||||
|     public void setPostName(String postName) { | ||||
|         this.postName = postName; | ||||
|     } | ||||
| 
 | ||||
|     public String getModifyDateTime() { | ||||
|         return modifyDateTime; | ||||
|     } | ||||
| 
 | ||||
|     public void setModifyDateTime(String modifyDateTime) { | ||||
|         this.modifyDateTime = modifyDateTime; | ||||
|     } | ||||
| 
 | ||||
|     public static ActivitiesVO boToActivitiesVO(BO bo) { | ||||
|         ActivitiesVO vo = new ActivitiesVO(); | ||||
|         vo.setId(bo.getId()); | ||||
|         vo.setNodeId(bo.getString("NODEID")); | ||||
|         vo.setNodeName(bo.getString("NODENAME")); | ||||
|         vo.setNodeTitle(bo.getString("NODETITLE")); | ||||
|         vo.setNodeType(bo.getString("NODETYPE")); | ||||
|         vo.setPlId(bo.getString("PLID")); | ||||
|         vo.setPlName(bo.getString("PLNAME")); | ||||
|         vo.setNodeCategory(bo.getString("NODECATEGORY")); | ||||
|         vo.setItsysval(bo.getString("ITSYSVAL")); | ||||
|         vo.setActivityNumber(bo.getString("ACTIVITYNUMBER")); | ||||
|         vo.setActivityDesc(bo.getString("ACTIVITYDESC")); | ||||
|         vo.setRole(bo.getString("ROLE")); | ||||
|         vo.setRoleName(bo.getString("ROLENAME")); | ||||
|         vo.setPost(bo.getString("POST")); | ||||
|         vo.setPostName(bo.getString("POSTNAME")); | ||||
|         vo.setModifyDateTime(bo.getString("MODIFYDATETIME")); | ||||
|         return vo; | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,162 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.vo; | ||||
| 
 | ||||
| import com.actionsoft.bpms.bo.engine.BO; | ||||
| 
 | ||||
| /** | ||||
|  * Created with IntelliJ IDEA. | ||||
|  * | ||||
|  * @Author: yuandongqiang | ||||
|  * @Date: 2025/8/29 | ||||
|  * @Description: | ||||
|  */ | ||||
| public class IframeMsgVO { | ||||
|     /** | ||||
|      * id | ||||
|      */ | ||||
|     private String id; | ||||
|     /** | ||||
|      * iframe名称 | ||||
|      */ | ||||
|     private String iframName; | ||||
|     /** | ||||
|      * iframe地址 | ||||
|      */ | ||||
|     private String iframeUrl; | ||||
|     /** | ||||
|      * 所在行 | ||||
|      */ | ||||
|     private int row; | ||||
|     /** | ||||
|      * 列 | ||||
|      */ | ||||
|     private int column; | ||||
|     /** | ||||
|      * 宽度 | ||||
|      */ | ||||
|     private int width; | ||||
|     /** | ||||
|      * 更多按钮链接 | ||||
|      */ | ||||
|     private String moreUrl; | ||||
|     /** | ||||
|      * 按钮位置 | ||||
|      */ | ||||
|     private String buttonPosition; | ||||
|     /** | ||||
|      * 是否展示更多按钮 | ||||
|      */ | ||||
|     private boolean showMore; | ||||
| 
 | ||||
|     public String getId() { | ||||
|         return id; | ||||
|     } | ||||
| 
 | ||||
|     public void setId(String id) { | ||||
|         this.id = id; | ||||
|     } | ||||
| 
 | ||||
|     public String getIframName() { | ||||
|         return iframName; | ||||
|     } | ||||
| 
 | ||||
|     public void setIframName(String iframName) { | ||||
|         this.iframName = iframName; | ||||
|     } | ||||
| 
 | ||||
|     public String getIframeUrl() { | ||||
|         return iframeUrl; | ||||
|     } | ||||
| 
 | ||||
|     public void setIframeUrl(String iframeUrl) { | ||||
|         this.iframeUrl = iframeUrl; | ||||
|     } | ||||
| 
 | ||||
|     public int getRow() { | ||||
|         return row; | ||||
|     } | ||||
| 
 | ||||
|     public void setRow(int row) { | ||||
|         this.row = row; | ||||
|     } | ||||
| 
 | ||||
|     public int getColumn() { | ||||
|         return column; | ||||
|     } | ||||
| 
 | ||||
|     public void setColumn(int column) { | ||||
|         this.column = column; | ||||
|     } | ||||
| 
 | ||||
|     public int getWidth() { | ||||
|         return width; | ||||
|     } | ||||
| 
 | ||||
|     public void setWidth(int width) { | ||||
|         this.width = width; | ||||
|     } | ||||
| 
 | ||||
|     public String getMoreUrl() { | ||||
|         return moreUrl; | ||||
|     } | ||||
| 
 | ||||
|     public void setMoreUrl(String moreUrl) { | ||||
|         this.moreUrl = moreUrl; | ||||
|     } | ||||
| 
 | ||||
|     public String getButtonPosition() { | ||||
|         return buttonPosition; | ||||
|     } | ||||
| 
 | ||||
|     public void setButtonPosition(String buttonPosition) { | ||||
|         this.buttonPosition = buttonPosition; | ||||
|     } | ||||
| 
 | ||||
|     public boolean isShowMore() { | ||||
|         return showMore; | ||||
|     } | ||||
| 
 | ||||
|     public void setShowMore(boolean showMore) { | ||||
|         this.showMore = showMore; | ||||
|     } | ||||
| 
 | ||||
|     public static IframeMsgVO boToVo(BO bo) { | ||||
|         IframeMsgVO vo = new IframeMsgVO(); | ||||
|         vo.setId(bo.getId()); | ||||
|         vo.setIframName(bo.getString("IFRAME_NAME")); | ||||
|         vo.setIframeUrl(bo.getString("IFRAME_URL")); | ||||
|         vo.setRow(bo.get("IFRAME_ROW", Integer.class)); | ||||
|         vo.setColumn(bo.get("IFRAME_COLUMN", Integer.class)); | ||||
|         vo.setWidth(bo.get("IFRAME_WIDTH", Integer.class)); | ||||
|         vo.setMoreUrl(bo.getString("IFRAME_MORE_URL")); | ||||
|         vo.setShowMore(bo.get("SHOWMORE", Boolean.class)); | ||||
|         if (vo.isShowMore()) { | ||||
|             int column = vo.getColumn(); | ||||
|             int width = vo.getWidth(); | ||||
|             switch (column) { | ||||
|                 case 1: | ||||
|                     if (width == 8) { | ||||
|                         vo.setButtonPosition("68.5%"); | ||||
|                     } else if (width == 16) { | ||||
|                         vo.setButtonPosition("35%"); | ||||
|                     } else { | ||||
|                         vo.setButtonPosition("2%"); | ||||
|                     } | ||||
|                     break; | ||||
|                 case 2: | ||||
|                     if (width == 8) { | ||||
|                         vo.setButtonPosition("35%"); | ||||
|                     } else { | ||||
|                         vo.setButtonPosition("2%"); | ||||
|                     } | ||||
|                     break; | ||||
|                 case 3: | ||||
|                     vo.setButtonPosition("2%"); | ||||
|                     break; | ||||
|                 default: | ||||
|                     vo.setButtonPosition("2%"); | ||||
|                     break; | ||||
|             } | ||||
|         } | ||||
|         return vo; | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,129 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.vo; | ||||
| 
 | ||||
| /** | ||||
|  * @author wym | ||||
|  * @date 2023-04-27 11:04 | ||||
|  * @description | ||||
|  */ | ||||
| public class MyFilesVO { | ||||
|     /** | ||||
|      * 主责流程 | ||||
|      */ | ||||
|     private int dutyProcess; | ||||
|     /** | ||||
|      * 相关流程 | ||||
|      */ | ||||
|     private int relatedProcess; | ||||
|     /** | ||||
|      * 审批活动 | ||||
|      */ | ||||
|     private int approvalActivities; | ||||
|     /** | ||||
|      * 参与活动 | ||||
|      */ | ||||
|     private int participateActivities; | ||||
|     /** | ||||
|      * 我的角色 | ||||
|      */ | ||||
|     private int roles; | ||||
|     /** | ||||
|      * 相关制度 | ||||
|      */ | ||||
|     private int regime; | ||||
|     /** | ||||
|      * 相关风险 | ||||
|      */ | ||||
|     private int risk; | ||||
|     /** | ||||
|      * 相关表单 | ||||
|      */ | ||||
|     private int form; | ||||
|     /** | ||||
|      * 相关绩效 | ||||
|      */ | ||||
|     private int kpi; | ||||
| 
 | ||||
|     public MyFilesVO(int dutyProcess, int relatedProcess, int approvalActivities, int participateActivities, int roles, int regime, int risk, int form, int kpi) { | ||||
|         this.dutyProcess = dutyProcess; | ||||
|         this.relatedProcess = relatedProcess; | ||||
|         this.approvalActivities = approvalActivities; | ||||
|         this.participateActivities = participateActivities; | ||||
|         this.roles = roles; | ||||
|         this.regime = regime; | ||||
|         this.risk = risk; | ||||
|         this.form = form; | ||||
|         this.kpi = kpi; | ||||
|     } | ||||
| 
 | ||||
|     public int getDutyProcess() { | ||||
|         return dutyProcess; | ||||
|     } | ||||
| 
 | ||||
|     public void setDutyProcess(int dutyProcess) { | ||||
|         this.dutyProcess = dutyProcess; | ||||
|     } | ||||
| 
 | ||||
|     public int getRelatedProcess() { | ||||
|         return relatedProcess; | ||||
|     } | ||||
| 
 | ||||
|     public void setRelatedProcess(int relatedProcess) { | ||||
|         this.relatedProcess = relatedProcess; | ||||
|     } | ||||
| 
 | ||||
|     public int getApprovalActivities() { | ||||
|         return approvalActivities; | ||||
|     } | ||||
| 
 | ||||
|     public void setApprovalActivities(int approvalActivities) { | ||||
|         this.approvalActivities = approvalActivities; | ||||
|     } | ||||
| 
 | ||||
|     public int getParticipateActivities() { | ||||
|         return participateActivities; | ||||
|     } | ||||
| 
 | ||||
|     public void setParticipateActivities(int participateActivities) { | ||||
|         this.participateActivities = participateActivities; | ||||
|     } | ||||
| 
 | ||||
|     public int getRoles() { | ||||
|         return roles; | ||||
|     } | ||||
| 
 | ||||
|     public void setRoles(int roles) { | ||||
|         this.roles = roles; | ||||
|     } | ||||
| 
 | ||||
|     public int getRegime() { | ||||
|         return regime; | ||||
|     } | ||||
| 
 | ||||
|     public void setRegime(int regime) { | ||||
|         this.regime = regime; | ||||
|     } | ||||
| 
 | ||||
|     public int getRisk() { | ||||
|         return risk; | ||||
|     } | ||||
| 
 | ||||
|     public void setRisk(int risk) { | ||||
|         this.risk = risk; | ||||
|     } | ||||
| 
 | ||||
|     public int getForm() { | ||||
|         return form; | ||||
|     } | ||||
| 
 | ||||
|     public void setForm(int form) { | ||||
|         this.form = form; | ||||
|     } | ||||
| 
 | ||||
|     public int getKpi() { | ||||
|         return kpi; | ||||
|     } | ||||
| 
 | ||||
|     public void setKpi(int kpi) { | ||||
|         this.kpi = kpi; | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,68 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.vo; | ||||
| 
 | ||||
| import com.actionsoft.bpms.bo.engine.BO; | ||||
| import com.actionsoft.bpms.commons.database.RowMap; | ||||
| 
 | ||||
| /** | ||||
|  * Created with IntelliJ IDEA. | ||||
|  * | ||||
|  * @Author: yuandongqiang | ||||
|  * @Date: 2025/9/5 | ||||
|  * @Description: | ||||
|  */ | ||||
| public class ProcessVO { | ||||
|     private String id; | ||||
|     /** | ||||
|      * 文件名 | ||||
|      */ | ||||
|     private String fileName; | ||||
|     /** | ||||
|      * 流程发布编号 | ||||
|      */ | ||||
|     private String publishNumber; | ||||
|     /** | ||||
|      * 文件类型 | ||||
|      */ | ||||
|     private String fileType; | ||||
| 
 | ||||
|     public String getId() { | ||||
|         return id; | ||||
|     } | ||||
| 
 | ||||
|     public void setId(String id) { | ||||
|         this.id = id; | ||||
|     } | ||||
| 
 | ||||
|     public String getFileName() { | ||||
|         return fileName; | ||||
|     } | ||||
| 
 | ||||
|     public void setFileName(String fileName) { | ||||
|         this.fileName = fileName; | ||||
|     } | ||||
| 
 | ||||
|     public String getPublishNumber() { | ||||
|         return publishNumber; | ||||
|     } | ||||
| 
 | ||||
|     public void setPublishNumber(String publishNumber) { | ||||
|         this.publishNumber = publishNumber; | ||||
|     } | ||||
| 
 | ||||
|     public String getFileType() { | ||||
|         return fileType; | ||||
|     } | ||||
| 
 | ||||
|     public void setFileType(String fileType) { | ||||
|         this.fileType = fileType; | ||||
|     } | ||||
| 
 | ||||
|     public static ProcessVO boToDutyProcessVO(RowMap bo) { | ||||
|         ProcessVO vo = new ProcessVO(); | ||||
|         vo.setId(bo.getString("ID")); | ||||
|         vo.setFileName(bo.getString("PUBLISHFILENAME")); | ||||
|         vo.setPublishNumber(bo.getString("PUBLISH_NUMBER")); | ||||
|         vo.setFileType(bo.getString("FILETYPE")); | ||||
|         return vo; | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,168 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.vo; | ||||
| 
 | ||||
| import com.actionsoft.bpms.bo.engine.BO; | ||||
| 
 | ||||
| import java.util.ArrayList; | ||||
| import java.util.List; | ||||
| 
 | ||||
| /** | ||||
|  * Created with IntelliJ IDEA. | ||||
|  * | ||||
|  * @Author: yuandongqiang | ||||
|  * @Date: 2025/9/5 | ||||
|  * @Description: | ||||
|  */ | ||||
| public class RiskVO { | ||||
|     private String id; | ||||
|     private String l1; | ||||
|     private String l2; | ||||
|     private String l3; | ||||
|     /** | ||||
|      * 文件名称 | ||||
|      */ | ||||
|     private String fileName; | ||||
|     /** | ||||
|      * 关键控制点 | ||||
|      */ | ||||
|     private String criticalControlPoint; | ||||
|     /** | ||||
|      * 控制描述 | ||||
|      */ | ||||
|     private String controlDesc; | ||||
|     /** | ||||
|      * 对应风险描述 | ||||
|      */ | ||||
|     private String mappingRiskDescription; | ||||
|     /** | ||||
|      * 角色/岗位 | ||||
|      */ | ||||
|     private String roleOrPost; | ||||
|     /** | ||||
|      * 模型状态 | ||||
|      */ | ||||
|     private String modelStatus; | ||||
|     /** | ||||
|      * 发布部门 | ||||
|      */ | ||||
|     private String issuingDepartment; | ||||
|     /** | ||||
|      * 形状块ID | ||||
|      */ | ||||
|     private String shapeId; | ||||
| 
 | ||||
|     public String getId() { | ||||
|         return id; | ||||
|     } | ||||
| 
 | ||||
|     public void setId(String id) { | ||||
|         this.id = id; | ||||
|     } | ||||
| 
 | ||||
|     public String getL1() { | ||||
|         return l1; | ||||
|     } | ||||
| 
 | ||||
|     public void setL1(String l1) { | ||||
|         this.l1 = l1; | ||||
|     } | ||||
| 
 | ||||
|     public String getL2() { | ||||
|         return l2; | ||||
|     } | ||||
| 
 | ||||
|     public void setL2(String l2) { | ||||
|         this.l2 = l2; | ||||
|     } | ||||
| 
 | ||||
|     public String getL3() { | ||||
|         return l3; | ||||
|     } | ||||
| 
 | ||||
|     public void setL3(String l3) { | ||||
|         this.l3 = l3; | ||||
|     } | ||||
| 
 | ||||
|     public String getFileName() { | ||||
|         return fileName; | ||||
|     } | ||||
| 
 | ||||
|     public void setFileName(String fileName) { | ||||
|         this.fileName = fileName; | ||||
|     } | ||||
| 
 | ||||
|     public String getCriticalControlPoint() { | ||||
|         return criticalControlPoint; | ||||
|     } | ||||
| 
 | ||||
|     public void setCriticalControlPoint(String criticalControlPoint) { | ||||
|         this.criticalControlPoint = criticalControlPoint; | ||||
|     } | ||||
| 
 | ||||
|     public String getControlDesc() { | ||||
|         return controlDesc; | ||||
|     } | ||||
| 
 | ||||
|     public void setControlDesc(String controlDesc) { | ||||
|         this.controlDesc = controlDesc; | ||||
|     } | ||||
| 
 | ||||
|     public String getMappingRiskDescription() { | ||||
|         return mappingRiskDescription; | ||||
|     } | ||||
| 
 | ||||
|     public void setMappingRiskDescription(String mappingRiskDescription) { | ||||
|         this.mappingRiskDescription = mappingRiskDescription; | ||||
|     } | ||||
| 
 | ||||
|     public String getRoleOrPost() { | ||||
|         return roleOrPost; | ||||
|     } | ||||
| 
 | ||||
|     public void setRoleOrPost(String roleOrPost) { | ||||
|         this.roleOrPost = roleOrPost; | ||||
|     } | ||||
| 
 | ||||
|     public String getModelStatus() { | ||||
|         return modelStatus; | ||||
|     } | ||||
| 
 | ||||
|     public void setModelStatus(String modelStatus) { | ||||
|         this.modelStatus = modelStatus; | ||||
|     } | ||||
| 
 | ||||
|     public String getIssuingDepartment() { | ||||
|         return issuingDepartment; | ||||
|     } | ||||
| 
 | ||||
|     public void setIssuingDepartment(String issuingDepartment) { | ||||
|         this.issuingDepartment = issuingDepartment; | ||||
|     } | ||||
| 
 | ||||
|     public String getShapeId() { | ||||
|         return shapeId; | ||||
|     } | ||||
| 
 | ||||
|     public void setShapeId(String shapeId) { | ||||
|         this.shapeId = shapeId; | ||||
|     } | ||||
|     public static List<RiskVO> boToRiskVO(List<BO> bos){ | ||||
|         List<RiskVO> vos = new ArrayList<>(); | ||||
|         for (BO bo : bos){ | ||||
|             RiskVO vo = new RiskVO(); | ||||
|             vo.setId(bo.getId()); | ||||
|             vo.setL1(bo.getString("L1_NAME")); | ||||
|             vo.setL2(bo.getString("L2_NAME")); | ||||
|             vo.setL3(bo.getString("L3_NAME")); | ||||
|             vo.setFileName(bo.getString("FILENAME")); | ||||
|             vo.setCriticalControlPoint(bo.getString("CRITICALCONTROLPOINT")); | ||||
|             vo.setControlDesc(bo.getString("CONTROLDESC")); | ||||
|             vo.setMappingRiskDescription(bo.getString("MAPPINGRISKDESCRIPTION")); | ||||
|             vo.setRoleOrPost(bo.getString("ROLEORPOST")); | ||||
|             vo.setModelStatus(bo.getString("MODELSTATUS")); | ||||
|             vo.setIssuingDepartment(bo.getString("PUBLISHDEPT")); | ||||
|             vo.setShapeId(bo.getString("SHAPEID")); | ||||
|             vos.add( vo); | ||||
|         } | ||||
|         return vos; | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,118 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.vo; | ||||
| 
 | ||||
| import com.actionsoft.bpms.bo.engine.BO; | ||||
| 
 | ||||
| /** | ||||
|  * Created with IntelliJ IDEA. | ||||
|  * | ||||
|  * @Author: yuandongqiang | ||||
|  * @Date: 2025/9/5 | ||||
|  * @Description: | ||||
|  */ | ||||
| public class RoleVO { | ||||
|     private String id; | ||||
|     /** | ||||
|      * 文件名称 | ||||
|      */ | ||||
|     private String fileName; | ||||
|     /** | ||||
|      * 文件ID | ||||
|      */ | ||||
|     private String fileId; | ||||
|     /** | ||||
|      * 岗位名称 | ||||
|      */ | ||||
|     private String postName; | ||||
|     /** | ||||
|      * 角色编码 | ||||
|      */ | ||||
|     private String roleNum; | ||||
|     /** | ||||
|      * 角色名称 | ||||
|      */ | ||||
|     private String roleName; | ||||
|     /** | ||||
|      * 角色ID | ||||
|      */ | ||||
|     private String roleId; | ||||
|     /** | ||||
|      * 岗位ID | ||||
|      */ | ||||
|     private String postId; | ||||
| 
 | ||||
|     public String getId() { | ||||
|         return id; | ||||
|     } | ||||
| 
 | ||||
|     public void setId(String id) { | ||||
|         this.id = id; | ||||
|     } | ||||
| 
 | ||||
|     public String getFileName() { | ||||
|         return fileName; | ||||
|     } | ||||
| 
 | ||||
|     public void setFileName(String fileName) { | ||||
|         this.fileName = fileName; | ||||
|     } | ||||
| 
 | ||||
|     public String getFileId() { | ||||
|         return fileId; | ||||
|     } | ||||
| 
 | ||||
|     public void setFileId(String fileId) { | ||||
|         this.fileId = fileId; | ||||
|     } | ||||
| 
 | ||||
|     public String getPostName() { | ||||
|         return postName; | ||||
|     } | ||||
| 
 | ||||
|     public void setPostName(String postName) { | ||||
|         this.postName = postName; | ||||
|     } | ||||
| 
 | ||||
|     public String getRoleNum() { | ||||
|         return roleNum; | ||||
|     } | ||||
| 
 | ||||
|     public void setRoleNum(String roleNum) { | ||||
|         this.roleNum = roleNum; | ||||
|     } | ||||
| 
 | ||||
|     public String getRoleName() { | ||||
|         return roleName; | ||||
|     } | ||||
| 
 | ||||
|     public void setRoleName(String roleName) { | ||||
|         this.roleName = roleName; | ||||
|     } | ||||
| 
 | ||||
|     public String getRoleId() { | ||||
|         return roleId; | ||||
|     } | ||||
| 
 | ||||
|     public void setRoleId(String roleId) { | ||||
|         this.roleId = roleId; | ||||
|     } | ||||
| 
 | ||||
|     public String getPostId() { | ||||
|         return postId; | ||||
|     } | ||||
| 
 | ||||
|     public void setPostId(String postId) { | ||||
|         this.postId = postId; | ||||
|     } | ||||
|     public static RoleVO boToRoleVO(BO bo) { | ||||
|         RoleVO vo = new RoleVO(); | ||||
|         vo.setId(bo.getId()); | ||||
|         vo.setFileName(bo.getString("FILE_NAME")); | ||||
|         vo.setFileId(bo.getString("FILE_ID")); | ||||
|         vo.setPostName(bo.getString("POST_NAME")); | ||||
|         vo.setRoleNum(bo.getString("ROLE_NUM")); | ||||
|         vo.setRoleName(bo.getString("ROLE_NAME")); | ||||
|         vo.setRoleId(bo.getString("ROLE_ID")); | ||||
|         vo.setPostId(bo.getString("POST_ID")); | ||||
|         return vo; | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,125 @@ | ||||
| package com.awspaas.user.apps.nqms.portal.view.person.vo; | ||||
| 
 | ||||
| /** | ||||
|  * @author ydq | ||||
|  * @date 2025-08-18 14:07 | ||||
|  * @description | ||||
|  */ | ||||
| public class WorkBenchVO { | ||||
| 
 | ||||
|     private String isRead; | ||||
|     private String processRemindTimes;// | ||||
|     /** | ||||
|      * 标题 | ||||
|      */ | ||||
|     private String title; | ||||
|     /** | ||||
|      * 接收时间 | ||||
|      */ | ||||
|     private String beginTime; | ||||
|     /** | ||||
|      * 来自 | ||||
|      */ | ||||
|     private String ownerName; | ||||
|     /** | ||||
|      * 流程实例id | ||||
|      */ | ||||
|     private String processInstId; | ||||
|     /** | ||||
|      * 任务实例id | ||||
|      */ | ||||
|     private String taskInstId; | ||||
|     /** | ||||
|      * 打开类型 | ||||
|      */ | ||||
|     private int openState; | ||||
|     /** | ||||
|      * 优先级 0:低 1:无 2:中 3:高 | ||||
|      */ | ||||
|     private int priority; | ||||
|     /** | ||||
|      * 流程链接 | ||||
|      */ | ||||
|     private String url; | ||||
| 
 | ||||
|     public String getIsRead() { | ||||
|         return isRead; | ||||
|     } | ||||
| 
 | ||||
|     public void setIsRead(String isRead) { | ||||
|         this.isRead = isRead; | ||||
|     } | ||||
| 
 | ||||
|     public String getProcessRemindTimes() { | ||||
|         return processRemindTimes; | ||||
|     } | ||||
| 
 | ||||
|     public void setProcessRemindTimes(String processRemindTimes) { | ||||
|         this.processRemindTimes = processRemindTimes; | ||||
|     } | ||||
| 
 | ||||
|     public String getTitle() { | ||||
|         return title; | ||||
|     } | ||||
| 
 | ||||
|     public void setTitle(String title) { | ||||
|         this.title = title; | ||||
|     } | ||||
| 
 | ||||
|     public String getBeginTime() { | ||||
|         return beginTime; | ||||
|     } | ||||
| 
 | ||||
|     public void setBeginTime(String beginTime) { | ||||
|         this.beginTime = beginTime; | ||||
|     } | ||||
| 
 | ||||
|     public String getOwnerName() { | ||||
|         return ownerName; | ||||
|     } | ||||
| 
 | ||||
|     public void setOwnerName(String ownerName) { | ||||
|         this.ownerName = ownerName; | ||||
|     } | ||||
| 
 | ||||
|     public String getProcessInstId() { | ||||
|         return processInstId; | ||||
|     } | ||||
| 
 | ||||
|     public void setProcessInstId(String processInstId) { | ||||
|         this.processInstId = processInstId; | ||||
|     } | ||||
| 
 | ||||
|     public String getTaskInstId() { | ||||
|         return taskInstId; | ||||
|     } | ||||
| 
 | ||||
|     public void setTaskInstId(String taskInstId) { | ||||
|         this.taskInstId = taskInstId; | ||||
|     } | ||||
| 
 | ||||
|     public int getOpenState() { | ||||
|         return openState; | ||||
|     } | ||||
| 
 | ||||
|     public void setOpenState(int openState) { | ||||
|         this.openState = openState; | ||||
|     } | ||||
| 
 | ||||
|     public int getPriority() { | ||||
|         return priority; | ||||
|     } | ||||
| 
 | ||||
|     public void setPriority(int priority) { | ||||
|         this.priority = priority; | ||||
|     } | ||||
| 
 | ||||
|     public String getUrl() { | ||||
|         return url; | ||||
|     } | ||||
| 
 | ||||
|     public void setUrl(String url) { | ||||
|         this.url = url; | ||||
|     } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 袁东强
						袁东强