Преглед изворни кода

[task-1521] 【首页】系统指引

Li Yuan пре 2 година
родитељ
комит
8f3e2219fe

+ 18 - 6
ibps-provider-root/modules/provider-bpmn/src/main/java/com/lc/ibps/office/provider/BpmInitiatedProvider.java

@@ -1463,13 +1463,11 @@ public class BpmInitiatedProvider extends GenericProvider implements IBpmInitiat
 
 			//========== 我的办结
 			StopWatchUtil.stopAndStartNewLocal(localId, step, "my completed count");
+			ICommonDao<?> commonDao = AppUtil.getBean(ICommonDao.class);
+			String currentUserId = ContextUtil.getCurrentUserId();
 			try {
 //				final Infobox infobox = new Infobox();
 //				myCompleted(multiTaskType, name, executor, workerWrappers, list, infobox);
-
-				ICommonDao<?> commonDao = AppUtil.getBean(ICommonDao.class);
-				String currentUserId = ContextUtil.getCurrentUserId();
-
 				Infobox infobox2 = new Infobox();
 				infobox2.setIcon("ibps-icon-file-o");
 				infobox2.setColor(Infobox.COLOR_BLUE2);
@@ -1516,8 +1514,22 @@ public class BpmInitiatedProvider extends GenericProvider implements IBpmInitiat
 			//========== 新建流程
 			StopWatchUtil.initAndStartLocal(localId, Level.DEBUG, step, "new process count");
 			try {
-				final Infobox infobox = new Infobox();
-				newProcess(multiTaskType, name, executor, workerWrappers, list, infobox);
+//				final Infobox infobox = new Infobox();
+//				newProcess(multiTaskType, name, executor, workerWrappers, list, infobox);
+				Infobox infobox2 = new Infobox();
+				infobox2.setIcon("ibps-icon-file-o");
+				infobox2.setColor(Infobox.COLOR_GREEN2);
+				infobox2.setDataContent("系统指引");
+				infobox2.setUrl("mySysGuide");
+				infobox2.setAlias("mySysGuide");
+				infobox2.setDataText("-1");
+				infobox2.setAccessToken(ContextUtil.getCurrentAccessToken());
+				List<Map<String,Object>> object3 =
+						(List<Map<String, Object>>) commonDao.query(" SELECT COUNT(DISTINCT a.id_) AS total FROM ibps_party_user_role r, t_bdbhpzb a " +
+								" WHERE a.sn_ + 0 > 0  AND r.user_id_=#{p0} AND (FIND_IN_SET(r.role_id_,a.bian_zhi_jiao_se_) OR FIND_IN_SET(r.role_id_,a.shen_he_jiao_se_) " +
+								" OR r.role_id_ =(SELECT id_ FROM ibps_party_role WHERE role_alias_='xtgljs'))" , new String[]{currentUserId});
+				infobox2.setDataText(object3.get(0).get("total").toString());
+				list.add(infobox2);
 			} catch (Exception e) {
 				logger.error(e.getMessage(), e);
 			}