diff --git a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/PersonnelControlMapper.xml b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/PersonnelControlMapper.xml index 89f8ac0..716cc4f 100644 --- a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/PersonnelControlMapper.xml +++ b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/PersonnelControlMapper.xml @@ -127,7 +127,7 @@ 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_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 AND DATE_FORMAT(his.create_time,'%Y-%m-%d') = #{month}