hanfucheng 9 月之前
父节点
当前提交
1afc1d5647

+ 2 - 2
data-ui/src/views/data/housingconstruction/realnameuser/index.vue

@@ -1,9 +1,9 @@
 <template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
-      <el-form-item label="开户企业" prop="enterpriseId">
+      <el-form-item label="开户企业" prop="deptName">
         <el-input
-          v-model="queryParams.enterpriseId"
+          v-model="queryParams.deptName"
           placeholder="请输入开户企业"
           clearable
           size="small"

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

@@ -36,6 +36,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="enterpriseId != null  and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if>
+            <if test="deptName != null  and deptName != ''"> and a.dept_name like concat('%', #{deptName}, '%')</if>
             <if test="enterpriseUserType != null  and enterpriseUserType != ''"> and enterprise_user_type = #{enterpriseUserType}</if>
             ${params.dataScope}
         </where>