heheng
2026-03-31 c96bf95e947f7c5c22f98de0418976640a318ac6
gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml
@@ -66,6 +66,9 @@
<!--        <if test="researchGroup != null ">-->
<!--            and a.research_group = #{researchGroup}-->
<!--        </if>-->
        <if test="createById != null ">
            and a.create_by_id = #{createById}
        </if>
        <if test="checkType != null ">
            and a.check_type = #{checkType}
        </if>
@@ -114,4 +117,16 @@
          and a.dept_id = #{deptId}
          and date_format(b.check_date, '%Y%m') = date_format(now(), '%Y%m')
    </select>
    <select id="getCheckCountList" parameterType="java.util.List" resultType="int">
        select count(*)
        from daily_safety_inspection_dept a
                 inner join daily_safety_inspection b on a.daily_safety_inspection_id = b.id
        where b.del_flag = 0
        and a.dept_id in
        <foreach collection="list" item="deptId" open="(" separator="," close=")">
            #{deptId}
        </foreach>
          and date_format(b.check_date, '%Y%m') = date_format(now(), '%Y%m')
    </select>
</mapper>