危化品全生命周期管理后端
“djh”
2025-10-16 65ca50935315a89e219b7c974caf95dc28895ffc
hazmat-system/src/main/resources/mapper/system/HzHazmatMapper.xml
@@ -157,7 +157,7 @@
        LEFT JOIN hz_hazmat_flow hhf2 on hh2.id = hhf2.hazmat_id
        LEFT JOIN sys_user sy on hhf2.create_id =  sy.id
        LEFT JOIN sys_dept sd on sy.depart_id = sd.id
        where hh2.create_time >= #{startTime} and hh2.create_time <= #{endTime} and hh2.state =3 and hhf2.state = 4
        where hhf2.create_time >= #{startTime} and hhf2.create_time <= #{endTime} and hh2.state =3 and hhf2.state = 4
        <if test="companyId!=null">
            and hh2.company_id=#{companyId}
        </if>