zhangjian
2023-06-01 8e76389b026bc7d7d0aa0bc049e6832e855d2dbd
ard-work/src/main/resources/mapper/inspect/ArdVideoInspectRecordMapper.xml
@@ -29,6 +29,18 @@
            <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
        </where>
    </select>
    <!--按日期查询-->
    <select id="selectArdVideoInspectRecordListByStartTime" parameterType="ArdVideoInspectRecord" resultType="java.util.HashMap">
        select r.*,s.well_id,w.well_id as well_name from ard_video_inspect_record r ,ard_video_inspect_task_step
        s,ard_alarmpoints_well w where start_time like ('${startTime}%') and r.step_id = s.id and s.well_id = w.id
    </select>
    <!--按月份统计文件数量-->
    <select id="selectArdVideoInspectRecordCountByStartMonth" parameterType="String" resultType="java.util.HashMap">
        select f.start_date,count(*) from
        (select substring(r.start_time,0,11)as start_date,* from ard_video_inspect_record r
        where r.start_time like '${startMonth}%') as f
        group by f.start_date
    </select>
    
    <select id="selectArdVideoInspectRecordById" parameterType="String" resultMap="ArdVideoInspectRecordResult">
        <include refid="selectArdVideoInspectRecordVo"/>