|
@@ -187,9 +187,9 @@
|
|
|
)
|
|
|
AND (
|
|
|
<if test="orderId != null and orderId != ''">
|
|
|
- a.order_id = #{orderId} AND
|
|
|
+ a.order_id = #{orderId}
|
|
|
</if>
|
|
|
- <if test="orgName != null and orgName != ''">
|
|
|
+ <!--<if test="orgName != null and orgName != ''">
|
|
|
(
|
|
|
a.device_name LIKE CONCAT('%', #{orgName}, '%')
|
|
|
OR a.device_code LIKE CONCAT('%', #{orgName}, '%')
|
|
@@ -198,10 +198,32 @@
|
|
|
</if>
|
|
|
<if test="orgName == null or orgName == ''">
|
|
|
1=1
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
)
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
+ <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
|
|
|
+ where
|
|
|
+ deleted = 0
|
|
|
+ and
|
|
|
+ order_id is not null
|
|
|
+ and(
|
|
|
+ <if test="orgName != null and orgName != ''">
|
|
|
+ (
|
|
|
+ device_name LIKE CONCAT('%', #{orgName}, '%')
|
|
|
+ OR device_code LIKE CONCAT('%', #{orgName}, '%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="orgName == null or orgName == ''">
|
|
|
+ 1=1
|
|
|
+ </if>)
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="fillListByDeptId" parameterType="cn.iocoder.yudao.module.pms.controller.admin.iotopeationfill.vo.IotOpeationFillRespVO"
|
|
|
resultType="cn.iocoder.yudao.module.pms.dal.dataobject.iotopeationfill.IotOpeationFillDO">
|
|
|
select
|