1.技术监督试运行bug修改和全景问题接口调整

This commit is contained in:
wr
2024-07-09 13:55:07 +08:00
parent 1af8fcc72f
commit 075205d4b9
17 changed files with 182 additions and 20 deletions

View File

@@ -1,8 +1,12 @@
package com.njcn.supervision.mapper.device;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.common.pojo.param.StatisticsBizBaseParam;
import org.apache.ibatis.annotations.Param;
import com.njcn.supervision.pojo.po.device.TempLineRunTestWarning;
import java.util.List;
/**
* @author web2023
* @description 针对表【supervision_temp_line_run_test_warning】的数据库操作Mapper
@@ -11,6 +15,8 @@ import com.njcn.supervision.pojo.po.device.TempLineRunTestWarning;
*/
public interface TempLineRunTestWarningMapper extends BaseMapper<TempLineRunTestWarning> {
List<String> selectWarningsIds(@Param("orgIds") List<String> orgIds,
@Param("param") StatisticsBizBaseParam param);
}

View File

@@ -5,4 +5,21 @@
<mapper namespace="com.njcn.supervision.mapper.device.TempLineRunTestWarningMapper">
<select id="selectWarningsIds" resultType="java.lang.String">
SELECT
c.id
FROM
supervision_temp_line_report a
INNER JOIN supervision_temp_line_run_test b ON a.id = b.id
INNER JOIN supervision_temp_line_run_test_warning c ON c.line_run_id = b.id
<where>
c.create_time BETWEEN #{param.startTime} AND #{param.endTime}
<if test="orgIds != null and orgIds.size() > 0">
AND a.org_id IN
<foreach collection="orgIds" item="orgId" separator="," open="(" close=")">
#{orgId}
</foreach>
</if>
</where>
</select>
</mapper>