| | |
| | | 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> |
| | | <if test="userId!=null"> |
| | | and hh2f.create_id = #{userId} |
| | | and hhf2.create_id = #{userId} |
| | | </if> |
| | | <if test="departId!=null"> |
| | | and sd.id = #{departId} |