|
@@ -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) {
|