hanfucheng 9 月之前
父节点
当前提交
e425fda0a1

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

@@ -167,8 +167,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <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 like concat('%', #{carNumber}, '%')</if>
-            <if test="escortName != null  and escortName != ''"> and escort_name like concat('%', #{escortName}, '%')</if>
+            <if test="carNumber != null  and carNumber != ''"> and car_number = #{carNumber}</if>
+            <if test="escortName != null  and escortName != ''"> and escort_name = #{escortName}</if>
             ${params.dataScope}
         </where>
     </select>

+ 1 - 1
src/main/resources/mapper/housingconstruction/CenterdataTHousingconstructionEnterpriseMapper.xml

@@ -167,7 +167,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 LEFT JOIN ${database_system}.sys_dept d ON a.dept_id = d.dept_id
      <where>
          <if test="id != null  and id != ''"> and a.id = #{id}</if>
-         <if test="enterpriseName != null  and enterpriseName != ''"> and a.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
+         <if test="enterpriseName != null  and enterpriseName != ''"> and a.enterprise_name = #{enterpriseName}</if>
          ${params.dataScope}
      </where>
     </select>

+ 1 - 1
src/main/resources/mapper/housingconstruction/CenterdataTHousingconstructionRealnameuserMapper.xml

@@ -156,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             b.dict_type = 'enterprise_user_type'
             and a.longitude is not null
             <if test="enterpriseId != null  and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if>
-            <if test="userName != null  and userName != ''"> and a.user_name like concat('%', #{userName}, '%')</if>
+            <if test="userName != null  and userName != ''"> and a.user_name = #{userName}</if>
             ${params.dataScope}
         </where>
         <if test="radius != null">having distance &lt; #{radius}</if>