Commit 31e4eee8 authored by 廖旭伟's avatar 廖旭伟

测试问题修改

parent 5d826e84
This diff is collapsed.
...@@ -74,7 +74,7 @@ public class AuthUserInterceptor extends BaseInterceptor { ...@@ -74,7 +74,7 @@ public class AuthUserInterceptor extends BaseInterceptor {
if (ObjectUtils.isEmpty(loginUser)) { if (ObjectUtils.isEmpty(loginUser)) {
ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT))); ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT)));
return false; return false;
} else if (loginUser.isAdmin() || loginUser.getUserType() == 1) { } else if (loginUser.isAdmin() || loginUser.getUserType() == 1 || loginUser.getUserType() == 2) {
return super.preHandle(request, response, handler); return super.preHandle(request, response, handler);
} else { } else {
ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_USER_OPERATION, ERROR_USER_OPERATION_CONTENT))); ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_USER_OPERATION, ERROR_USER_OPERATION_CONTENT)));
......
...@@ -881,7 +881,7 @@ public class UserQuery extends UserEntity { ...@@ -881,7 +881,7 @@ public class UserQuery extends UserEntity {
* @param areaCodes * @param areaCodes
*/ */
public UserQuery areaCodes(String areaCodes){ public UserQuery areaCodes(String areaCodes){
setAreaCodes(areaCodes); //setAreaCodes(areaCodes);
return this; return this;
} }
......
...@@ -74,7 +74,7 @@ public class AuthUserInterceptor extends BaseInterceptor { ...@@ -74,7 +74,7 @@ public class AuthUserInterceptor extends BaseInterceptor {
if (ObjectUtils.isEmpty(loginUser)) { if (ObjectUtils.isEmpty(loginUser)) {
ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT))); ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT)));
return false; return false;
} else if (loginUser.isAdmin() || loginUser.getUserType() == 1) { } else if (loginUser.isAdmin() || loginUser.getUserType() == 1 || loginUser.getUserType() == 2) {
return super.preHandle(request, response, handler); return super.preHandle(request, response, handler);
} else { } else {
ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_USER_OPERATION, ERROR_USER_OPERATION_CONTENT))); ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_USER_OPERATION, ERROR_USER_OPERATION_CONTENT)));
......
...@@ -881,7 +881,7 @@ public class UserQuery extends UserEntity { ...@@ -881,7 +881,7 @@ public class UserQuery extends UserEntity {
* @param areaCodes * @param areaCodes
*/ */
public UserQuery areaCodes(String areaCodes){ public UserQuery areaCodes(String areaCodes){
setAreaCodes(areaCodes); //setAreaCodes(areaCodes);
return this; return this;
} }
......
...@@ -106,8 +106,8 @@ public class SyncGovMatterDetailThread implements Runnable { ...@@ -106,8 +106,8 @@ public class SyncGovMatterDetailThread implements Runnable {
matterService.update(matterEntity, context); matterService.update(matterEntity, context);
}); });
} }
log.info("同步站点主题事项开始....."); // log.info("同步站点主题事项开始.....");
//
//判断站点区域乡镇情况 //判断站点区域乡镇情况
// if (areaEntity.getAreaLevel() <= 3) { // if (areaEntity.getAreaLevel() <= 3) {
// //省,市,区 // //省,市,区
......
package com.mortals.xhx.daemon.applicationservice; package com.mortals.xhx.daemon.applicationservice;
import com.mortals.framework.util.ThreadPool;
import com.mortals.xhx.common.utils.SendTaskThreadPool;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.mortals.framework.springcloud.service.IApplicationService; import com.mortals.framework.springcloud.service.IApplicationService;
...@@ -21,11 +24,16 @@ import com.mortals.framework.springcloud.service.IApplicationService; ...@@ -21,11 +24,16 @@ import com.mortals.framework.springcloud.service.IApplicationService;
*/ */
@Component @Component
public class DemoStartService implements IApplicationService { public class DemoStartService implements IApplicationService {
private static Log logger = LogFactory.getLog(DemoStartService.class); private static Log logger = LogFactory.getLog(DemoStartService.class);
@Autowired
private SendTaskThreadPool sendTaskThreadPool;
@Override @Override
public void start() { public void start() {
ThreadPool.getInstance().init(10);
sendTaskThreadPool.init(10);
logger.info("开始服务..[配置已加载完成,但部分框架还未初始化,比如:Kafka]"); logger.info("开始服务..[配置已加载完成,但部分框架还未初始化,比如:Kafka]");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment