hanfucheng 11 月之前
父節點
當前提交
67ceb98099

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

@@ -146,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             b.dict_type = 'enterprise_user_type'
             <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>
+            ${params.dataScope}
         </where>
     </select>
 

+ 2 - 0
src/main/resources/mapper/housingconstruction/CenterdataTHousingconstructionSteelcylinderLogMapper.xml

@@ -35,9 +35,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select a.id, a.steelcylinder_id, a.steelcylinder_name, a.join_warehouse_time, a.filling_medium, a.filling_time, a.operator_id, a.operator_name, a.car_id,b.enterprise_name,
         a.car_number, a.delivery_time, a.delivery_id, a.delivery_name, a.sign_time, a.join_house_id, a.join_house_name, a.recycling_name, a.recycling_time from centerdata_t_housingconstruction_steelcylinder_log a
         left join centerdata_t_housingconstruction_steelcylinder b on a.steelcylinder_id = b.id
+        left  join ${database_system}.sys_dept d on b.dept_id = d.dept_id
         <where>
             <if test="steelcylinderId != null  and steelcylinderId != ''"> and a.steelcylinder_id = #{steelcylinderId}</if>
             <if test="steelcylinderName != null  and steelcylinderName != ''"> and a.steelcylinder_name like concat('%', #{steelcylinderName}, '%')</if>
+            ${params.dataScope}
         </where>
     </select>