shiyue il y a 1 an
Parent
commit
12d9bc46ce

+ 2 - 2
energy-manage-service/src/main/resources/mybatis/windfield/WindFieldMapper.xml

@@ -52,7 +52,7 @@
         </if>
         and
         wf.create_by = #{item.userId}
-        or
+        and
         wf.field_code in (select code_number from sys_organization_auth where role_id =#{item.roleId} and code_type = 'field')
     </select>
 
@@ -66,7 +66,7 @@
         and wf.del_state = 0
         and wf.state = 1
         and wf.create_by = #{userId}
-        or
+        and
         wf.field_code in (select code_number from sys_organization_auth where role_id = #{roleId} and code_type = 'field')
     </select>
 

+ 1 - 1
energy-manage-service/src/main/resources/mybatis/windrelation/WindRelationMapper.xml

@@ -56,7 +56,7 @@
         </if>
         and wc.del_state = 0
         and wc.company_code in (select code_number from sys_organization_auth where role_id =#{roleId} and code_type = 'company')
-        or wc.create_by = #{userId}
+        and wc.create_by = #{userId}
     </select>
 
     <select id="selectByCodeNumber" parameterType="java.lang.String" resultType="com.energy.manage.common.po.windrelation.WindRelationPO">