修改数据查询

This commit is contained in:
haozq 2024-04-20 16:20:59 +08:00
parent 13946e3bdc
commit 738e329eb3
1 changed files with 1 additions and 1 deletions

View File

@ -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>