Browse Source

共享实施,追加提醒快捷入口

胡杰 1 year ago
parent
commit
976e6d9eed

+ 15 - 0
cn.com.taiji.system/src/main/java/cn/com/taiji/zhongxiao/service/DbdcUserService.java

@@ -930,6 +930,21 @@ public class DbdcUserService {
 				if(ty.get("ZS")!=null&&!"0".equals(String.valueOf(ty.get("ZS"))))
 				infolist.add(resultMapa);
 	        }
+
+			String menuUrl = "/tshareApply/tshareApply_ssFindList";
+			hasPerssion = jdbcTemplate.queryForList("select m.menu_id from role_user p,ROLE_MENU q,menu m where p.user_id=? and p.ROLE_ID=q.role_id and m.menu_id=q.menu_id and m.MENU_URL=?", new Object[]{userInfo.getUserId(), menuUrl});
+			if(hasPerssion!=null&&hasPerssion.size()>0) {
+
+				Map ty = jdbcTemplate.queryForMap("SELECT count(1) ZS FROM t_shareapply tshareappl0_ INNER JOIN t_infoclass tinfoclass1_ ON tshareappl0_.tinfoclassid=tinfoclass1_.id WHERE tinfoclass1_.id IS NOT NULL AND tshareappl0_.state=2 AND tshareappl0_.actualize=0 AND tshareappl0_.isrevoke IS NULL");
+				Map resultMapa = new HashMap<String, Object>();
+				resultMapa.put("info", "您有<font color=\"red\">" + ty.get("ZS")
+						+ "</font>个共享实施任务,请到<a href-name=\"共享实施\" href-url=\"" + menuUrl + "\"> <font color=\"green\">数据目录管理->共享实施</font></a> 功能模块进行操作。");
+				resultMapa.put("message", ty.get("ZS") + "个共享实施任务");
+				resultMapa.put("count", ty.get("ZS"));
+				if(ty.get("ZS")!=null&&!"0".equals(String.valueOf(ty.get("ZS"))))
+					infolist.add(resultMapa);
+			}
+
 			List<String> paramList = new ArrayList<String>();
 			StringBuffer sqlBuffer = new StringBuffer(
 					"select count(1)zs from t_service_applyinfo p where p.knowstate='1' and p.inprocess!='4'");