Просмотр исходного кода

Merge remote-tracking branch 'origin/master'

lipenghui 1 неделя назад
Родитель
Сommit
c6a4ef4cf7

+ 2 - 2
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/job/IotOperationPlanJob.java

@@ -323,7 +323,7 @@ public class IotOperationPlanJob implements JobHandler {
 
 
 
-        /*//发送钉钉通知
+        //发送钉钉通知
         pmsThreadPoolTaskExecutor.execute(()->{
             try{
                 for (IotOpeationFillOrderDO order:orderList1) {
@@ -332,7 +332,7 @@ public class IotOperationPlanJob implements JobHandler {
             }catch (Exception e){
                 e.printStackTrace();
             }
-        });*/
+        });
 
 
         //正常工单设备

+ 10 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/resources/mapper/static/IotMainWorkOrderMapper.xml

@@ -44,6 +44,16 @@
         <if test="reqVO.result != null">
             AND mwo.result = #{reqVO.result}
         </if>
+        <if test="reqVO.createTime != null and reqVO.createTime.length > 0">
+            <!-- 处理“开始时间”(数组第1位,如 createTime[0] = 2024-01-01 00:00:00) -->
+            <if test="reqVO.createTime[0] != null">
+                AND mwo.create_time &gt;= #{reqVO.createTime[0]}
+            </if>
+            <!-- 处理“结束时间”(数组第2位,如 createTime[1] = 2024-01-31 23:59:59) -->
+            <if test="reqVO.createTime.length > 1 and reqVO.createTime[1] != null">
+                AND mwo.create_time &lt;= #{reqVO.createTime[1]}
+            </if>
+        </if>
         ORDER BY
         <if test="alarmWorkOrderIds != null and alarmWorkOrderIds.size &gt; 0">
             CASE WHEN mwo.id IN