Bläddra i källkod

运行记录优化

yuanchao 1 månad sedan
förälder
incheckning
56113ea4a7

+ 7 - 2
yudao-module-pms/yudao-module-pms-biz/src/main/resources/mapper/static/IotOpeationFillMapper.xml

@@ -398,9 +398,14 @@
     <select id="getFillList" parameterType="cn.iocoder.yudao.module.pms.controller.admin.iotopeationfill.vo.IotOpeationFillRespVO"
             resultType="cn.iocoder.yudao.module.pms.controller.admin.iotopeationfill.vo.IotOpeationFillRespVO">
         select distinct b.* from
-            rq_iot_opeation_fill b
+            rq_iot_opeation_fill b,
+            rq_iot_opeation_fill_order c
         where
-            b.order_id = #{orderId}
+            c.id = #{orderId}
+          and
+            b.dept_id = c.dept_id
+          and
+            b.order_id = c.id
           and
             DATE(b.create_time)=DATE(#{createTime})
         order by b.create_time desc