|
@@ -36,24 +36,25 @@
|
|
|
and
|
|
|
wf.field_name like CONCAT("%", #{item.fieldName} ,"%")
|
|
|
</if>
|
|
|
- <if test="item.fieldCode!=null">
|
|
|
- and
|
|
|
- wf.field_code = #{item.fieldCode}
|
|
|
- </if>
|
|
|
- <if test="item.companyCode!=null">
|
|
|
- and
|
|
|
- wf.company_code = #{item.companyCode}
|
|
|
- </if>
|
|
|
<if test="item.beginTime != null and item.beginTime != ''">
|
|
|
and wf.create_time <![CDATA[>= ]]> #{item.beginTime}
|
|
|
</if>
|
|
|
<if test="item.endTime != null and item.endTime != ''">
|
|
|
and wf.create_time <![CDATA[<= ]]> #{item.endTime}
|
|
|
</if>
|
|
|
- and
|
|
|
- wf.create_by = #{item.userId}
|
|
|
- and
|
|
|
- wf.field_code in (select code_number from sys_organization_auth where role_id =#{item.roleId} and code_type = 'field')
|
|
|
+ <if test="item.fieldName!=null or item.beginTime != null or item.endTime!=null">
|
|
|
+ and
|
|
|
+ wf.create_by = #{item.userId}
|
|
|
+ and
|
|
|
+ wf.field_code in (select code_number from sys_organization_auth where role_id =#{item.roleId} and code_type = 'field')
|
|
|
+ </if>
|
|
|
+ <if test="item.fieldName == null and item.beginTime == null and item.beginTime == null">
|
|
|
+ and
|
|
|
+ wf.create_by = #{item.userId}
|
|
|
+ or
|
|
|
+ wf.field_code in (select code_number from sys_organization_auth where role_id =#{item.roleId} and code_type = 'field')
|
|
|
+ </if>
|
|
|
+ order by id desc
|
|
|
</select>
|
|
|
|
|
|
|
|
@@ -66,8 +67,7 @@
|
|
|
and wf.del_state = 0
|
|
|
and wf.state = 1
|
|
|
and wf.create_by = #{userId}
|
|
|
- and
|
|
|
- wf.field_code in (select code_number from sys_organization_auth where role_id = #{roleId} and code_type = 'field')
|
|
|
+ or wf.field_code in (select code_number from sys_organization_auth where role_id = #{roleId} and code_type = 'field')
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByCodeNumber" parameterType="java.lang.String" resultType="com.energy.manage.service.domain.vo.windfield.WindFieldVo">
|