Commit b7e201ae0cf63962ee70fc4e75c7c241c97ef262

Authored by guzijian
1 parent 57e106cc

fix: resolve sql query error

ruoyi-admin/src/main/resources/mapper/equipment/EquipmentMapper.xml
@@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
54 </select> 54 </select>
55 <select id="querySignListByJobCode" resultType="com.ruoyi.pojo.domain.EquipmentDriverExpand"> 55 <select id="querySignListByJobCode" resultType="com.ruoyi.pojo.domain.EquipmentDriverExpand">
56 select driver_face_device_id.* from driver_face_device_id,equipment 56 select driver_face_device_id.* from driver_face_device_id,equipment
57 - where 1=1 and equipment.status = 1 57 + where driver_face_device_id.device_id = equipment.device_id and equipment.status = 1
58 <if test="drivers != null and drivers.size() > 0"> 58 <if test="drivers != null and drivers.size() > 0">
59 and job_code in 59 and job_code in
60 <foreach collection="drivers" item="item" open="(" separator="," close=")"> 60 <foreach collection="drivers" item="item" open="(" separator="," close=")">