|
@@ -206,17 +206,24 @@
|
|
|
<select id="getOrderIds" parameterType="cn.iocoder.yudao.module.pms.controller.admin.iotopeationfill.vo.IotOpeationFillRespVO"
|
|
|
resultType="cn.iocoder.yudao.module.pms.dal.dataobject.iotopeationfill.IotOpeationFillDO">
|
|
|
select
|
|
|
- distinct order_id
|
|
|
- from rq_iot_opeation_fill
|
|
|
+ distinct a.order_id
|
|
|
+ from
|
|
|
+ rq_iot_opeation_fill a,
|
|
|
+ rq_iot_opeation_fill_order b
|
|
|
where
|
|
|
- deleted = 0
|
|
|
+ a.order_id = b.id
|
|
|
+ and
|
|
|
+ a.deleted = 0
|
|
|
and
|
|
|
- order_id is not null
|
|
|
+ b.deleted = 0
|
|
|
+ and
|
|
|
+ a.order_id is not null
|
|
|
and(
|
|
|
<if test="orgName != null and orgName != ''">
|
|
|
(
|
|
|
- device_name LIKE CONCAT('%', #{orgName}, '%')
|
|
|
- OR device_code LIKE CONCAT('%', #{orgName}, '%')
|
|
|
+ a.device_name LIKE CONCAT('%', #{orgName}, '%')
|
|
|
+ OR a.device_code LIKE CONCAT('%', #{orgName}, '%')
|
|
|
+ or b.user_name LIKE CONCAT('%', #{orgName}, '%')
|
|
|
)
|
|
|
</if>
|
|
|
<if test="orgName == null or orgName == ''">
|