Commit 44558264 authored by wzp's avatar wzp

修改bug

parent 9776428d
......@@ -149,7 +149,7 @@ public class TBoxOperationController extends BaseController {
//设置数据权限
String areaId = user.getAreaId();
try {
tBoxOperationList = tBoxOperationService.getList(status,areaId);
tBoxOperationList = tBoxOperationService.getList(status,getAreaId(areaId));
return getResult(tBoxOperationList);
} catch (Exception e) {
e.printStackTrace();
......@@ -211,11 +211,10 @@ public class TBoxOperationController extends BaseController {
public String getAreaId(String areaId){
if ("00".equals(areaId.substring(4))) {
areaId = areaId.substring(0, 4);
}
if ("0000".equals(areaId.substring(2))) {
areaId = areaId.substring(0, 2);
}else if ("00".equals(areaId.substring(4))) {
areaId = areaId.substring(0, 4);
}
return areaId;
}
......
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