| | |
| | | return selectCount(MesDvMachineryDO::getMachineryTypeId, machineryTypeId); |
| | | } |
| | | |
| | | /** |
| | | * 按数采设备编号查询设备(MQTT devId) |
| | | */ |
| | | default MesDvMachineryDO selectByCollectDeviceCode(String collectDeviceCode) { |
| | | return selectOne(MesDvMachineryDO::getCollectDeviceCode, collectDeviceCode); |
| | | } |
| | | |
| | | /** |
| | | * 查询所有已配置数采设备编号的设备 |
| | | */ |
| | | default java.util.List<MesDvMachineryDO> selectListWithCollectDeviceCode() { |
| | | return selectList(new LambdaQueryWrapperX<MesDvMachineryDO>() |
| | | .isNotNull(MesDvMachineryDO::getCollectDeviceCode) |
| | | .orderByAsc(MesDvMachineryDO::getId)); |
| | | } |
| | | |
| | | } |