hanfucheng 9 tháng trước cách đây
mục cha
commit
557092426d

+ 4 - 4
src/main/resources/mapper/housingconstruction/CenterdataTHousingconstructionCarMapper.xml

@@ -165,10 +165,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         left join centerdata_t_housingconstruction_delivery_personnel b on a.escort_id = b.id
         left join ${database_system}.sys_dept d on a.dept_id = d.dept_id
         <where>
-            <if test="enterpriseId != null  and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if>
-            <if test="enterpriseName != null  and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
-            <if test="carNumber != null  and carNumber != ''"> and car_number = #{carNumber}</if>
-            <if test="escortName != null  and escortName != ''"> and escort_name = #{escortName}</if>
+            <if test="enterpriseId != null  and enterpriseId != ''"> and a.enterprise_id = #{enterpriseId}</if>
+            <if test="enterpriseName != null  and enterpriseName != ''"> and a.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
+            <if test="carNumber != null  and carNumber != ''"> and a.car_number = #{carNumber}</if>
+            <if test="escortName != null  and escortName != ''"> and a.escort_name = #{escortName}</if>
             ${params.dataScope}
         </where>
     </select>