Commit a2a48d3d authored by tianbo's avatar tianbo

隐患修改

parent eae33010
...@@ -241,7 +241,8 @@ public class LatentDangerController extends BaseController { ...@@ -241,7 +241,8 @@ public class LatentDangerController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
public ResponseModel listDanger(@ApiParam(value = "查询条件", required = true) @RequestBody PageParam pageParam) throws Exception { public ResponseModel listDanger(@ApiParam(value = "查询条件", required = true) @RequestBody PageParam pageParam) throws Exception {
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
pageParam.put("orgCode", reginParams.getCompany().getOrgCode()); String loginOrgCode = getOrgCode(reginParams);
pageParam.put("orgCode", loginOrgCode);
IPage<LatentDanger> result = iLatentDangerService.pageListDanger(pageParam); IPage<LatentDanger> result = iLatentDangerService.pageListDanger(pageParam);
return ResponseHelper.buildResponse(result); return ResponseHelper.buildResponse(result);
} }
...@@ -297,7 +298,8 @@ public class LatentDangerController extends BaseController { ...@@ -297,7 +298,8 @@ public class LatentDangerController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
public ResponseModel<List<LatentDanger>> listAllDanger(@RequestBody LatentDangerListParam searchParam) { public ResponseModel<List<LatentDanger>> listAllDanger(@RequestBody LatentDangerListParam searchParam) {
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
searchParam.setOrgCode(reginParams.getCompany().getOrgCode()); String loginOrgCode = getOrgCode(reginParams);
searchParam.setOrgCode(loginOrgCode);
return ResponseHelper.buildResponse(iLatentDangerService.listAllDanger(searchParam)); return ResponseHelper.buildResponse(iLatentDangerService.listAllDanger(searchParam));
} }
...@@ -341,7 +343,8 @@ public class LatentDangerController extends BaseController { ...@@ -341,7 +343,8 @@ public class LatentDangerController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
public ResponseModel reviewListDanger(@ApiParam(value = "查询条件", required = true) @RequestBody PageParam pageParam) throws Exception { public ResponseModel reviewListDanger(@ApiParam(value = "查询条件", required = true) @RequestBody PageParam pageParam) throws Exception {
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
pageParam.put("orgCode", reginParams.getCompany().getOrgCode()); String loginOrgCode = getOrgCode(reginParams);
pageParam.put("orgCode", loginOrgCode);
IPage<LatentDanger> result = iLatentDangerService.reviewListDanger(pageParam); IPage<LatentDanger> result = iLatentDangerService.reviewListDanger(pageParam);
return ResponseHelper.buildResponse(result); return ResponseHelper.buildResponse(result);
} }
......
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