<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.inspect.simulator.mapper.ResultAnalysisMapper">
|
|
|
|
<select id="selectChannelImgByPatrolPointCode" parameterType="string" resultType="string">
|
|
SELECT
|
|
patrol_point_code
|
|
FROM
|
|
basedata_patrolpoint
|
|
WHERE patrol_point_id =#{patrolPointId}
|
|
</select>
|
|
<select id="selectChannelImgByPatrolPointId" parameterType="string" resultType="string">
|
|
select result_content from result_analysis
|
|
where objectId = #{patrolPointId} order by line_id limit 1;
|
|
</select>
|
|
|
|
<select id="selectImgByPatrolPointId" parameterType="string" resultType="string">
|
|
SELECT
|
|
a.result_content
|
|
FROM
|
|
basedata_patrolpoint as b
|
|
left JOIN
|
|
result_analysis as a ON a.objectId = b.patrol_point_id
|
|
WHERE
|
|
b.patrol_point_code LIKE CONCAT('%', #{patrolPointId})
|
|
ORDER BY
|
|
a.line_id
|
|
LIMIT 1;
|
|
</select>
|
|
|
|
|
|
<insert id="addDmtModelInfo" parameterType="java.util.List">
|
|
INSERT INTO result_analysis
|
|
(result_type, description, res_status, filter, objectId, task_patrol_id, business_id,alg_type)
|
|
VALUES
|
|
<foreach collection="list" item="item" separator=",">
|
|
(
|
|
#{item.isDefectValue},
|
|
#{item.info},
|
|
#{item.defectType},
|
|
#{item.filter},
|
|
#{item.objectId},
|
|
#{item.taskPatrolId},
|
|
#{item.businessId},
|
|
#{item.useType}
|
|
)
|
|
</foreach>
|
|
</insert>
|
|
|
|
</mapper>
|