hazmat-system/src/main/resources/mapper/system/HzWarningMapper.xml
@@ -63,7 +63,10 @@ </select> <select id="selectWarningCount" resultType="java.lang.Integer" parameterType="java.lang.Long"> select count(1) from hz_warning where company_id=#{companyId} and state=0 select count(1) from hz_warning where state=0 <if test="companyId != null"> and company_id=#{companyId} </if> </select>