Browse Source

根据文档修改增加属性查询

shiyue 4 tháng trước cách đây
mục cha
commit
cc3f244136

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

@@ -59,12 +59,12 @@
         <if test="item.endTime != null and item.endTime != ''">
             and wf.create_time <![CDATA[<= ]]> #{item.endTime}
         </if>
-        <if test="item.fieldName!=null or item.beginTime != null or item.endTime!=null">
+        <if test="item.fieldName!=null or item.beginTime != null or item.endTime!=null or item.companyName != null or item.provinceId != null  ">
             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">
+        <if test="item.fieldName == null and item.beginTime == null and item.beginTime == null and item.companyName == null and item.provinceId == null ">
             and
             wf.create_by = #{item.userId}
             or