设备点巡检sql

master
马雪伟 3 days ago
parent 2c39c5732f
commit 2ec37fbf8a

@ -80,5 +80,5 @@ public interface DmsInspectInstanceDetailProjectMapper
* */
List<DmsInspectInstanceDetailProject> selectDmsInspectInstanceDetailProjectByInspectInstanceId(@Param("inspectInstanceId") Long inspectInstanceId, @Param("lineStep") Long lineStep);
Long selectProjectByStandardId(String inspectStandard);
Long selectProjectByStandardId(@Param("inspectStandard") String inspectStandard);
}

@ -162,5 +162,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectStationIdByCode" resultType="java.lang.Long" parameterType="java.lang.String">
SELECT x.maint_station_id FROM `hwjy-cloud`.dms_base_maint_station x where x.maint_station_code = #{maintStationCode}
</select>
<select id="selectStandardId" resultType="java.lang.Long" parameterType="java.lang.Long">
select
dbms.maint_standard_id
from
`hwjy-cloud`.dms_base_maint_station x left join dms_base_maint_standard dbms on x.protocol_code = dbms.maint_standard_code
where
x.maint_station_id = #{stationId}
</select>
</mapper>

Loading…
Cancel
Save