wenhongquan 2 năm trước cách đây
mục cha
commit
ca5fd3bf52

+ 4 - 4
ruoyi-system/src/main/resources/mapper/system/TableDetectionMapper.xml

@@ -43,14 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="ext2 != null  and ext2 != ''"> and ext2 = #{ext2}</if>
 
             <if test="params.facilities_unit != null and params.facilities_unit != ''"><!-- 结束时间检索 -->
-                and ext1.'$.facilities_unit' =  #{params.facilities_unit}
+                and ext1->'$.facilities_unit' =  #{params.facilities_unit}
             </if>
-            <if test="params.searchkey != null  and params.searchkey != ''"> and  ( ext1.'$.facilities_road' like  concat('%', #{params.searchkey}, '%') or ext1.'$.facilities_name' like concat('%', #{params.searchkey}, '%') )</if>
+            <if test="params.searchkey != null  and params.searchkey != ''"> and  ( ext1->'$.facilities_road' like  concat('%', #{params.searchkey}, '%') or ext1->'$.facilities_name' like concat('%', #{params.searchkey}, '%') )</if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
-                and date_format(ext1.'$.task.datestart','%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
+                and date_format(ext1->'$.task.datestart','%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
             </if>
             <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
-                and date_format(ext1.'$.task.dateend','%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
+                and date_format(ext1->'$.task.dateend','%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
             </if>
 
             <if test="params.userId != null and params.userId != ''"><!-- 派发用户自己的或自己填报的或自己处理的 -->

+ 4 - 4
ruoyi-system/src/main/resources/mapper/system/TblMaintainMapper.xml

@@ -45,14 +45,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="facilitiesId != null "> and facilities_id = #{facilitiesId}</if>
 
             <if test="params.facilities_unit != null and params.facilities_unit != ''"><!-- 结束时间检索 -->
-                and ext1.'$.facilities_unit' =  #{params.facilities_unit}
+                and ext1->'$.facilities_unit' =  #{params.facilities_unit}
             </if>
-            <if test="params.searchkey != null  and params.searchkey != ''"> and  ( ext1.'$.facilities_road' like  concat('%', #{params.searchkey}, '%') or ext1.'$.facilities_name' like concat('%', #{params.searchkey}, '%') )</if>
+            <if test="params.searchkey != null  and params.searchkey != ''"> and  ( ext1->'$.facilities_road' like  concat('%', #{params.searchkey}, '%') or ext1->'$.facilities_name' like concat('%', #{params.searchkey}, '%') )</if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
-                and date_format(ext1.'$.task.datestart','%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
+                and date_format(ext1->'$.task.datestart','%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
             </if>
             <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
-                and date_format(ext1.'$.task.dateend','%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
+                and date_format(ext1->'$.task.dateend','%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
             </if>
             <if test="params.userId != null and params.userId != ''"><!-- 派发用户自己的或自己填报的或自己处理的 -->
                 <![CDATA[