修改数据查询
This commit is contained in:
parent
13946e3bdc
commit
738e329eb3
|
|
@ -127,7 +127,7 @@
|
||||||
left join tb_device_detail tdd ON his.attribute_id = tdd.id
|
left join tb_device_detail tdd ON his.attribute_id = tdd.id
|
||||||
left join tb_bd_device tbd ON tbd.device_id = tdd.device_id
|
left join tb_bd_device tbd ON tbd.device_id = tdd.device_id
|
||||||
LEFT JOIN tb_pro_bd tpb ON tbd.bd_id = tpb.id
|
LEFT JOIN tb_pro_bd tpb ON tbd.bd_id = tpb.id
|
||||||
where his.val=#{bindUser} and tpb.bid_code = #{bidCode}
|
where his.val=#{bindUser} and tpb.bid_code = #{bidCode} and tbd.devic_type=1905
|
||||||
<if test="month != null and month != ''">
|
<if test="month != null and month != ''">
|
||||||
AND DATE_FORMAT(his.create_time,'%Y-%m-%d') = #{month}
|
AND DATE_FORMAT(his.create_time,'%Y-%m-%d') = #{month}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue