Commit 268d9fb5 authored by tangwei's avatar tangwei

增加线路接口

parent 7b65b85e
......@@ -101,7 +101,22 @@ public class RouteController extends AbstractBaseController {
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "查询当前登录公司的的所有巡检路线", notes = "查询当前登录公司的的所有巡检路线")
@GetMapping(value = "/AllNew", produces = "application/json;charset=UTF-8")
public CommonResponse queryAllRouteNew() {
try {
ReginParams reginParams = getSelectedOrgInfo();
String orgCode =reginParams.getPersonIdentity().getCompanyBizOrgCode();
//2.查询
List<Route> routeList = routeService.queryRouteList(orgCode);
return CommonResponseUtil.success(routeList);
} catch (Exception e) {
log.error(e.getMessage(), e);
return CommonResponseUtil.failure("查询巡检路线信息失败");
}
}
/**
* 修改保存巡检路线
......@@ -161,9 +176,6 @@ public class RouteController extends AbstractBaseController {
}
/**
* 删除巡检路线
*
......
......@@ -402,6 +402,6 @@
</select>
<select id="queryRoutesByOrgCode" resultType="com.yeejoin.amos.patrol.dao.entity.Route">
SELECT * FROM p_route r where r.is_delete = 0 and r.org_code = #{orgCode}
SELECT * FROM p_route r where r.is_delete = 0 and r.biz_org_code = #{orgCode}
</select>
</mapper>
\ No newline at end of file
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