|
@@ -5,4 +5,12 @@
|
|
|
<select id="getCameraNameByCameraCode" resultType="java.lang.String" parameterType="java.lang.String">
|
|
|
select railway_name railwayName from base_railway_management where railway_code = #{cameraCode}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="listRailway" resultType="com.ozs.service.entity.BaseRailwayManagement">
|
|
|
+ select a.dept_id, a.dept_name, c.* from
|
|
|
+ (select dept_id, dept_name from sys_dept) a JOIN
|
|
|
+ (select dept_id, railway_code from base_camera_management) b on a.dept_id = b.dept_id join
|
|
|
+ (select * from base_railway_management) c on b.railway_code = c.railway_code
|
|
|
+ group by c.railway_code, a.dept_id
|
|
|
+ </select>
|
|
|
</mapper>
|