Forráskód Böngészése

git-svn-id: https://192.168.57.71/svn/jsgkj@1561 931142cf-59ea-a443-aa0e-51397b428577

ld_zhangdong 8 éve
szülő
commit
4692136857
1 módosított fájl, 8 hozzáadás és 6 törlés
  1. 8 6
      gkjsjy/trunk/src/com/xt/jygl/common/BaseWebCtl.java

+ 8 - 6
gkjsjy/trunk/src/com/xt/jygl/common/BaseWebCtl.java

@@ -16,6 +16,8 @@ import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
 import javax.xml.ws.WebServiceContext;
 
+import net.sf.json.JsonConfig;
+
 import org.apache.commons.lang.StringUtils;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -29,6 +31,8 @@ import org.springframework.ui.Model;
 import org.springframework.web.bind.WebDataBinder;
 import org.springframework.web.bind.annotation.InitBinder;
 
+import rtx.RTXThread;
+
 import com.cxfws.config.utils.CxfwsUtils;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -54,9 +58,6 @@ import com.xtframe.sec.user.entity.UserEntity;
 import com.xtframe.sec.utils.SecUtils;
 import com.xtframe.util.DateTime;
 
-import net.sf.json.JsonConfig;
-import rtx.RTXSvrApi;
-
 public class BaseWebCtl extends BaseCtl {
 	/**
 	 * 安全服务接口
@@ -378,7 +379,6 @@ public class BaseWebCtl extends BaseCtl {
 
 	// rtx提醒
 	public void rtxSend(String userids, String role, String msg) {
-
 		if (StringUtils.isEmpty(userids)) {
 			List<RoleEntity> rolelist = securityMgr.roleService().findByCode(role);
 			RoleEntity roleEntity = new RoleEntity();
@@ -411,7 +411,9 @@ public class BaseWebCtl extends BaseCtl {
 		try {
 			UserEntity u = (UserEntity) securityMgr.userService().findById(userid);
 			if (u != null) {
-				try {
+				RTXThread thread = new RTXThread(u.getUname(),msg);
+				thread.start();
+				/*try {
 					String type = "0";
 					String delayTime = "0";
 					int iRet = -1;
@@ -427,7 +429,7 @@ public class BaseWebCtl extends BaseCtl {
 					RtxsvrapiObj.UnInit();
 				} catch (Throwable e) {
 					e.printStackTrace();
-				}
+				}*/
 
 			}
 		} catch (Throwable e) {