@@ -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}
wf.field_code in (select code_number from sys_organization_auth where role_id = #{roleId} and code_type = 'field')
@@ -56,7 +56,7 @@
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 id="selectByCodeNumber" parameterType="java.lang.String" resultType="com.energy.manage.common.po.windrelation.WindRelationPO">